Class: FlutterRb::PluginPubspecAuthorCheck

Inherits:
PluginPubspecCheck show all
Defined in:
lib/flutter_rb/checks/plugin_pubspec_check.rb

Overview

Check Flutter plugin author in pubspec file. Exists or not

Constant Summary

Constants inherited from Check

Check::UNIMPLEMENTED_ERROR

Instance Method Summary collapse

Methods inherited from PluginPubspecCheck

#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

#descriptionObject



99
100
101
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 99

def description
  'Check plugin author in pubspec'
end

#pubspec_parameterObject



85
86
87
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 85

def pubspec_parameter
  'author'
end