All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('ruby', 'reek')
5 call ale#assert#TearDownLinterTest()
7 Execute(The reek callbacks should return the correct default values):
8 GivenCommandOutput ['reek 5.0.0']
10 \ ale#Escape('reek') . ' --version',
11 \ ale#Escape('reek') . ' -f json --no-progress --no-color --force-exclusion --stdin-filename %s',
14 " Try with older versions.
15 call ale#semver#ResetVersionCache()
17 GivenCommandOutput ['reek 4.8.2']
18 AssertLinter 'reek', [
19 \ ale#Escape('reek') . ' --version',
20 \ ale#Escape('reek') . ' -f json --no-progress --no-color --force-exclusion',
23 Execute(Setting bundle appends 'exec reek'):
24 let g:ale_ruby_reek_executable = 'bundle'
26 GivenCommandOutput ['reek 5.0.0']
27 AssertLinter 'bundle', ale#Escape('bundle')
29 \ . ' -f json --no-progress --no-color --force-exclusion --stdin-filename %s',
31 " Try with older versions.
32 call ale#semver#ResetVersionCache()
34 GivenCommandOutput ['reek 4.8.2']
35 AssertLinter 'bundle', ale#Escape('bundle')
37 \ . ' -f json --no-progress --no-color --force-exclusion'
39 Execute(The reek version check should be cached):
40 GivenCommandOutput ['reek 5.0.0']
41 AssertLinter 'reek', [
42 \ ale#Escape('reek') . ' --version',
43 \ ale#Escape('reek') . ' -f json --no-progress --no-color --force-exclusion --stdin-filename %s',
47 AssertLinter 'reek', [
48 \ ale#Escape('reek') . ' -f json --no-progress --no-color --force-exclusion --stdin-filename %s',