Class: Danger::DangerAdLicenselint
- Inherits:
-
Plugin
- Object
- Plugin
- Danger::DangerAdLicenselint
- Defined in:
- lib/ad_licenselint/plugin.rb
Overview
Lint license from pods in your Podfile This is done using the gem ad_licenselint
You should replace these comments with a public description of your library.
Instance Attribute Summary collapse
-
#verbose ⇒ Boolean
Provides additional logging diagnostic information.
Instance Method Summary collapse
-
#lint_licenses(inline_mode: false) ⇒ void
Lints licenses from pods in Podfile.
Instance Attribute Details
#verbose ⇒ Boolean
Provides additional logging diagnostic information
22 23 24 |
# File 'lib/ad_licenselint/plugin.rb', line 22 def verbose @verbose end |
Instance Method Details
#lint_licenses(inline_mode: false) ⇒ void
This method returns an undefined value.
Lints licenses from pods in Podfile. Generates a ‘markdown` list of warnings either inline or globally.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/ad_licenselint/plugin.rb', line 32 def lint_licenses(inline_mode: false) return if podfile_path.nil? || lockfile_path.nil? runner = ADLicenseLint::Runner.new({ format: ADLicenseLint::Constant::MARKDOWN_FORMAT_OPTION, path: ".", all: false, only: get_modified_pods_from_diff }) report = runner.create_report if inline_mode (report) else (runner.format(report)) end end |