Class: FlutterRb::PluginPubspecNameCheck
- Inherits:
-
PluginPubspecCheck
- Object
- Check
- PluginPubspecCheck
- FlutterRb::PluginPubspecNameCheck
- Defined in:
- lib/flutter_rb/checks/plugin_pubspec_check.rb
Overview
This class represents a check for Flutter plugin’s pubspec.yaml file for ‘name’ parameter. It inherits from PluginPubspecCheck class.
Constant Summary
Constants inherited from Check
Instance Method Summary collapse
-
#check(project) ⇒ CheckReport
Performs the check for the ‘name’ parameter in the pubspec.yaml file.
-
#pubspec_parameter ⇒ String
Returns the parameter to be checked in the pubspec.yaml file.
Methods inherited from PluginPubspecCheck
Methods inherited from Check
Instance Method Details
#check(project) ⇒ CheckReport
Performs the check for the ‘name’ parameter in the pubspec.yaml file. It creates a CheckReport object with the result of the check.
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 52 def check(project) pubspec = project.pubspec CheckReport.new( name, pubspec.pubspec_info.name.nil? ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL, description, pubspec.path ) end |
#pubspec_parameter ⇒ String
Returns the parameter to be checked in the pubspec.yaml file. In this case, it returns ‘name’.
43 44 45 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 43 def pubspec_parameter 'name' end |