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



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

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

#descriptionString



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

def description
  'Check plugin description in pubspec file'
end

#pubspec_parameterString



53
54
55
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 53

def pubspec_parameter
  'description'
end