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:



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

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)


133
134
135
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 133

def description
  'Check plugin homepage in pubspec'
end

#pubspec_parameterString

Returns:

  • (String)


128
129
130
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 128

def pubspec_parameter
  'homepage'
end