commit
91f980208e
@ -36,18 +36,21 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def rubocop_args
|
def rubocop_args
|
||||||
fix? ? autocorrect_args : default_args
|
fix? ? autocorrect_args : normal_args
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_args
|
def default_args
|
||||||
[
|
[
|
||||||
"--require", "rubocop-cask",
|
"--require", "rubocop-cask",
|
||||||
"--force-default-config",
|
"--force-default-config",
|
||||||
"--format", "simple",
|
"--format", "simple"
|
||||||
"--parallel"
|
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def normal_args
|
||||||
|
default_args + ["--parallel"]
|
||||||
|
end
|
||||||
|
|
||||||
def autocorrect_args
|
def autocorrect_args
|
||||||
default_args + ["--auto-correct"]
|
default_args + ["--auto-correct"]
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user