Class: FlutterRb::PluginPubspecHomepageCheck

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

Overview

Check Flutter plugin homepage 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:



137
138
139
140
141
142
143
144
145
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 137

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

#descriptionString

Returns:

  • (String)


131
132
133
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 131

def description
  'Check plugin homepage in pubspec'
end

#pubspec_parameterString

Returns:

  • (String)


126
127
128
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 126

def pubspec_parameter
  'homepage'
end