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) ⇒ CheckReport

Parameters:

Returns:



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

#descriptionString

Returns:

  • (String)


106
107
108
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 106

def description
  'Check plugin author in pubspec'
end

#pubspec_parameterString

Returns:

  • (String)


101
102
103
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 101

def pubspec_parameter
  'author'
end