Class: FlutterRb::PluginPubspecHomepageCheck
Overview
Check Flutter plugin homepage in pubspec file. Exists or not
Constant Summary
Constants inherited
from Check
Check::UNIMPLEMENTED_ERROR
Instance Method Summary
collapse
#name, #summary
Methods inherited from Check
#name, #summary
Instance Method Details
#check(project) ⇒ Object
110
111
112
113
114
115
116
117
118
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 110
def check(project)
pubspec = project.pubspec
CheckReport.new(
name,
pubspec.pubspec_info.homepage.nil? ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL,
description,
pubspec.path
)
end
|
#description ⇒ Object
120
121
122
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 120
def description
'Check plugin homepage in pubspec'
end
|
#pubspec_parameter ⇒ Object
106
107
108
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 106
def pubspec_parameter
'homepage'
end
|