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