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
112
113
114
115
116
117
118
119
120
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 112
def check(project)
pubspec = project.pubspec
CheckReport.new(
name,
pubspec.pubspec_info.author.nil? ? CheckReportStatus::NORMAL : CheckReportStatus::WARNING,
description,
pubspec.path
)
end
|
#description ⇒ String
106
107
108
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 106
def description
'Check plugin author in pubspec'
end
|
#pubspec_parameter ⇒ String
101
102
103
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 101
def pubspec_parameter
'author'
end
|