Class: FlutterRb::PluginPubspecDescriptionCheck

Inherits:
PluginPubspecCheck show all
Defined in:
lib/flutter_rb/checks/plugin_pubspec_check.rb

Overview

Check Flutter plugin description in pubspec file. Exists or not

Constant Summary

Constants inherited from Check

Check::UNIMPLEMENTED_ERROR

Instance Method Summary collapse

Methods inherited from PluginPubspecCheck

#name, #summary

Methods inherited from Check

#name, #summary

Instance Method Details

#check(project) ⇒ CheckReport

Parameters:

Returns:



62
63
64
65
66
67
68
69
70
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 62

def check(project)
  pubspec = project.pubspec
  CheckReport.new(
    name,
    pubspec.pubspec_info.description.nil? ? CheckReportStatus::WARNING : CheckReportStatus::NORMAL,
    description,
    pubspec.path
  )
end

#descriptionString

Returns:

  • (String)


56
57
58
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 56

def description
  'Check plugin description in pubspec file'
end

#pubspec_parameterString

Returns:

  • (String)


51
52
53
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 51

def pubspec_parameter
  'description'
end