Class: FlutterRb::PluginPubspecNameCheck

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

Overview

Check Flutter plugin name in podspec 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:



37
38
39
40
41
42
43
44
45
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 37

def check(project)
  pubspec = project.pubspec
  CheckReport.new(
    name,
    pubspec.pubspec_info.name.nil? ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL,
    description,
    pubspec.path
  )
end

#descriptionString

Returns:

  • (String)


31
32
33
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 31

def description
  'Check plugin name in pubspec file'
end

#pubspec_parameterString

Returns:

  • (String)


26
27
28
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 26

def pubspec_parameter
  'name'
end