summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-10-26 10:21:33 +0100
committerGitHub <noreply@github.com>2018-10-26 10:21:33 +0100
commitadc914a67560242703a3d3e7b7865303e60774c2 (patch)
treea7f38fc64a50f302a4588f8199e60ec2ee925d6e
parentaa0203320b128d6a4b83c4c1dc3c72bd36eda7d1 (diff)
parent9c3daf3a66b00ce553191cb976ff5bb313048553 (diff)
downloadale-adc914a67560242703a3d3e7b7865303e60774c2.zip
Merge pull request #1999 from stevenharman/expand_filename_for_reek
Reek: --force-exclusion flag
-rw-r--r--ale_linters/ruby/reek.vim2
-rw-r--r--test/command_callback/test_reek_command_callback.vader12
2 files changed, 7 insertions, 7 deletions
diff --git a/ale_linters/ruby/reek.vim b/ale_linters/ruby/reek.vim
index eefc4ecf..53363d31 100644
--- a/ale_linters/ruby/reek.vim
+++ b/ale_linters/ruby/reek.vim
@@ -30,7 +30,7 @@ function! ale_linters#ruby#reek#GetCommand(buffer, version_output) abort
\ : ''
return ale#handlers#ruby#EscapeExecutable(l:executable, 'reek')
- \ . ' -f json --no-progress --no-color'
+ \ . ' -f json --no-progress --no-color --force-exclusion'
\ . l:display_name_args
endfunction
diff --git a/test/command_callback/test_reek_command_callback.vader b/test/command_callback/test_reek_command_callback.vader
index 963247aa..a7cb7fb9 100644
--- a/test/command_callback/test_reek_command_callback.vader
+++ b/test/command_callback/test_reek_command_callback.vader
@@ -8,7 +8,7 @@ Execute(The reek callbacks should return the correct default values):
WithChainResults ['reek 5.0.0']
AssertLinter 'reek', [
\ ale#Escape('reek') . ' --version',
- \ ale#Escape('reek') . ' -f json --no-progress --no-color --stdin-filename %s',
+ \ ale#Escape('reek') . ' -f json --no-progress --no-color --force-exclusion --stdin-filename %s',
\]
" Try with older versions.
@@ -17,7 +17,7 @@ Execute(The reek callbacks should return the correct default values):
WithChainResults ['reek 4.8.2']
AssertLinter 'reek', [
\ ale#Escape('reek') . ' --version',
- \ ale#Escape('reek') . ' -f json --no-progress --no-color',
+ \ ale#Escape('reek') . ' -f json --no-progress --no-color --force-exclusion',
\]
Execute(Setting bundle appends 'exec reek'):
@@ -26,7 +26,7 @@ Execute(Setting bundle appends 'exec reek'):
WithChainResults ['reek 5.0.0']
AssertLinter 'bundle', ale#Escape('bundle')
\ . ' exec reek'
- \ . ' -f json --no-progress --no-color --stdin-filename %s',
+ \ . ' -f json --no-progress --no-color --force-exclusion --stdin-filename %s',
" Try with older versions.
call ale#semver#ResetVersionCache()
@@ -34,17 +34,17 @@ Execute(Setting bundle appends 'exec reek'):
WithChainResults ['reek 4.8.2']
AssertLinter 'bundle', ale#Escape('bundle')
\ . ' exec reek'
- \ . ' -f json --no-progress --no-color'
+ \ . ' -f json --no-progress --no-color --force-exclusion'
Execute(The reek version check should be cached):
WithChainResults ['reek 5.0.0']
AssertLinter 'reek', [
\ ale#Escape('reek') . ' --version',
- \ ale#Escape('reek') . ' -f json --no-progress --no-color --stdin-filename %s',
+ \ ale#Escape('reek') . ' -f json --no-progress --no-color --force-exclusion --stdin-filename %s',
\]
WithChainResults []
AssertLinter 'reek', [
\ '',
- \ ale#Escape('reek') . ' -f json --no-progress --no-color --stdin-filename %s',
+ \ ale#Escape('reek') . ' -f json --no-progress --no-color --force-exclusion --stdin-filename %s',
\]