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) ⇒ Object



47
48
49
50
51
52
53
54
55
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 47

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

#descriptionObject



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

def description
  'Check plugin description in pubspec file'
end

#pubspec_parameterObject



43
44
45
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 43

def pubspec_parameter
  'description'
end