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



26
27
28
29
30
31
32
33
34
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 26

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

#descriptionObject



36
37
38
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 36

def description
  'Check plugin name in pubspec file'
end

#pubspec_parameterObject



22
23
24
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 22

def pubspec_parameter
  'name'
end