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
137
138
139
140
141
142
143
144
145
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 137
def check(project)
pubspec = project.pubspec
CheckReport.new(
name,
pubspec.pubspec_info.homepage.nil? ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL,
description,
pubspec.path
)
end
|
#description ⇒ String
131
132
133
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 131
def description
'Check plugin homepage in pubspec'
end
|
#pubspec_parameter ⇒ String
126
127
128
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 126
def pubspec_parameter
'homepage'
end
|