Class: FlutterRb::PluginPubspecDescriptionCheck
- Inherits:
-
PluginPubspecCheck
- Object
- Check
- PluginPubspecCheck
- FlutterRb::PluginPubspecDescriptionCheck
- Defined in:
- lib/flutter_rb/checks/plugin_pubspec_check.rb
Overview
This class represents a check for Flutter plugin’s pubspec.yaml file for ‘description’ parameter. It inherits from PluginPubspecCheck class.
Constant Summary
Constants inherited from Check
Instance Method Summary collapse
-
#check(project) ⇒ CheckReport
Performs the check for the ‘description’ 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 ‘description’ parameter in the pubspec.yaml file. It creates a CheckReport object with the result of the check.
80 81 82 83 84 85 86 87 88 89 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 80 def check(project) pubspec = project.pubspec CheckReport.new( name, pubspec.pubspec_info.description.nil? ? CheckReportStatus::WARNING : 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 ‘description’.
71 72 73 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 71 def pubspec_parameter 'description' end |