Class: Danger::DangerDartLinter
- Inherits:
-
Plugin
- Object
- Plugin
- Danger::DangerDartLinter
- Defined in:
- lib/dart_linter/plugin.rb
Instance Attribute Summary collapse
-
#only_modified_files ⇒ Object
Enable only_modified_files Only show messages within changed files.
-
#report_path ⇒ Object
Report path You should set output from
dart analyzehere.
Instance Method Summary collapse
Instance Attribute Details
#only_modified_files ⇒ Object
Enable only_modified_files Only show messages within changed files.
7 8 9 |
# File 'lib/dart_linter/plugin.rb', line 7 def only_modified_files @only_modified_files end |
#report_path ⇒ Object
Report path
You should set output from dart analyze here
11 12 13 |
# File 'lib/dart_linter/plugin.rb', line 11 def report_path @report_path end |
Instance Method Details
#lint(inline_mode: false) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/dart_linter/plugin.rb', line 13 def lint(inline_mode: false) if dart_exists? lint_if_report_exists(inline_mode: inline_mode) else fail("Could not find `dart` inside current directory") end end |