Class: Danger::DangerDartLinter

Inherits:
Plugin
  • Object
show all
Defined in:
lib/dart_linter/plugin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#only_modified_filesObject

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_pathObject

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