Class: FlutterRb::PluginPubspecAuthorCheck
Overview
Check Flutter plugin author 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
89
90
91
92
93
94
95
96
97
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 89
def check(project)
pubspec = project.pubspec
CheckReport.new(
name,
pubspec.pubspec_info.author.nil? ? CheckReportStatus::NORMAL : CheckReportStatus::WARNING,
description,
pubspec.path
)
end
|
#description ⇒ Object
99
100
101
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 99
def description
'Check plugin author in pubspec'
end
|
#pubspec_parameter ⇒ Object
85
86
87
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 85
def pubspec_parameter
'author'
end
|