summaryrefslogtreecommitdiff
path: root/test/command_callback
AgeCommit message (Collapse)Author
2018-11-04Clean up a buffer variable in a test filew0rp
2018-11-04Merge pull request #2044 from Steap/bug/1388w0rp
PHP linter: make the path to the executable configurable
2018-11-01PHP linter: make the path to the executable configurableCyril Roelandt
Fixes #1388
2018-10-31Add configuration dictionary support to elixir-lsJon Parise
This adds generic configuration dictionary support to the elixir-ls linter. This is useful for disabling its built-in Dialyzer support, for example, which can improve startup time. The configuration dictionary is a little verbose. I considered reducing the user configuration to only the nested settings dictionary (and having the linter implementation wrap it in the top-level `elixirLS` dictionary), but leaving it fully configurable simplifies the code and removes any assumptions about current or future ElixirLS behavior.
2018-10-31Fix the Windows testsw0rp
2018-10-31Add a `lsp_config_callback` linter optionJon Parise
This is the callback-based variant of the existing `lsp_config` linter option. It serves the same purpose but can be used when more complicated processing is needed. `lsp_config` and `lsp_config_callback` are mutually exclusive options; if both an given, a linter preprocessing error will be raised. The runtime logic has been wrapped in `ale#lsp_linter#GetConfig` for convenience, similar to `ale#lsp_linter#GetOptions`. This also adds documentation and an `AssertLSPConfig` test function for completeness.
2018-10-31Merge pull request #2040 from leamingrad/jshint_filenamew0rp
Pass the filename of the current file into jshint
2018-10-31Add some basic callback tests for jshintJames Owen
2018-10-30Do not enable all clang-tidy checks by defaultAndreas Hollmann
2018-10-28Fix clazy testsAndreas Hollmann
2018-10-26Add the dockerfile_lint linter for Dockerfiles (#1971)Alexander "Ananace" Olofsson
* Add the dockerfile_lint linter for Dockerfiles
2018-10-25Respect configured excluded_pathsSteven Harman
2018-10-25Merge pull request #1958 from Garland-g/perl6w0rp
Add Perl6 support via 'perl6 -c'
2018-10-25Only run stack if a stack.yaml config is found (#1752)Anthony Poon
* Only run stack if a stack.yaml config is found It is necessary to check for a stack.yaml file to distinguish between cabal-only projects or stack projects (which are also cabal projects since stack is built on top of cabal). * Test that stack is called if stack.yaml exists
2018-10-25Merge pull request #2018 from muglug/patch-1w0rp
Update Psalm to use LSP
2018-10-23ale#path#CdString include ale#Escapepaihu
2018-10-22fix testcasepaihu
2018-10-22Add support for `cargo clippy` (#2001)Linda_pp
* Add support for `cargo clippy` * Add tests for cargo-clippy support * Add an example to doc for how to configure ale_rust_cargo_use_clippy
2018-10-19Add tests for updated Psalm pluginMatt Brown
2018-10-18Merge pull request #1991 from alskdj21/ruby_solargraph_init_optionsw0rp
Expose ruby-solargraph's initialization options
2018-10-18Allow custom executable for ansible linters (#1977)ix5
* Allow custom executable for ansible linters * Add ansible-lint tests * ansible-lint: simplify linter command * Rename linter "ansible" to "ansible_lint" * Add ansible-lint options to documentation * Add alias ansible-lint for ansible_lint
2018-10-17New linter: dls (#1992)Auri
* New linter: dls
2018-10-12Rename solargraph initialization option variableKim Joseph S. Sadomia
2018-10-12Expose ruby-solargraph initialization optionsKim Joseph S. Sadomia
2018-10-11Add elixir-ls language server supportJon Parise
ElixirLS (https://github.com/JakeBecker/elixir-ls) is an LSP server for Elixir. It's distributed as a release package that can be downloaded from https://github.com/JakeBecker/elixir-ls/releases or built locally. The easiest way to start it is via Unix- and Win32-specific helper scripts, so that's the basis of this command integration. Alternatively, we could implement the contents of those platform-specific scripts in the linter's command callback in a language-neutral way, but there isn't any benefit to doing that aside from eliminating the platform check, and that could prove to be too tight of a coupling going forward.
2018-10-10FIX: use mix from the project root directory (#1954)Matteo Centenaro
* FIX: use mix from the project root directory * Move find root project function to autoloaded handlers * add tests for #ale#handlers#elixr#FindMixProjectRoot
2018-09-28Add Perl6 support via 'perl6 -c'Travis Gibson
2018-09-28Remove test vars that cover bugEvan Rutledge Borden
These test vars were covering up a bug in the hlint linter implementation. Without these vars we can see the behavior that is exhibited in `vim` proper.
2018-09-28Add better support for Haskell stack compiler tools (#1851)Evan Borden
* Add better support for Haskell stack compiler tools This commit adds support for `stack` as the executable of a tool. This follows a pattern that has been implemented for `bundler`'s tool chain. * Move hlint command to linter file * Add vader test for stack exec handling * Update ghc-mod to support stack execution `ghc-mod` was previously broken into 2 linters. 1. ghc_mod 2. stack_ghc_mod This additional linter is not necessary with proper support for executable variables and `stack exec` handling. * Support stack exec in hfmt * Support stack in hdevtools
2018-09-28Merge pull request #1950 from yejingchen/cclsw0rp
Add ccls support for C/C++/ObjC
2018-09-27Merge pull request #1917 from jpsouzasilva/fix-stylelint-scssw0rp
Support options when using Stylelint with SCSS
2018-09-27Add psalm linter for PHP (#1893)Richard Marmorstein
2018-09-26Add missing files for ccls testYe Jingchen
2018-09-26Add ccls testsYe Jingchen
2018-09-26Merge pull request #1908 from KtorZ/masterw0rp
Allow extra options to be passed to haskell:hlint
2018-09-19Merge pull request #1719 from elebow/auto-pipenv-option-for-python-lintersw0rp
Add python_[linter]_auto_pipenv options for python linters (fixes #1656)
2018-09-19Add fixer for Go modules (#1873)Martin Tournoij
* Add fixer for Go modules
2018-09-19Support both old (<0.7) and new Julia versionsDaniel Wennberg
Closes #1931
2018-09-18Solargraph stdioDevon Meunier
2018-09-18Add command_callback tests to cover hlint config variablesKtorZ
2018-09-17Merge pull request #1927 from jparise/thrift-includes-defaultw0rp
thrift: default thrift_thrift_includes to ['.']
2018-09-17Fix the Julia languagserver linter for Julia 0.7w0rp
2018-09-16thrift: default thrift_thrift_includes to ['.']Jon Parise
In a lint context, it's useful to assume that included files sit next to the current file by default. Users can still further customize this configuration variable to add more include paths.
2018-09-15Add python_[linter]_auto_pipenv options for python linters (fixes #1656)Eddie Lebow
When set to true, and the buffer is currently inside a pipenv, GetExecutable will return "pipenv", which will trigger the existing functionality to append the correct pipenv arguments to run each linter. Defaults to false. I was going to implement ale#python#PipenvPresent by invoking `pipenv --venv` or `pipenv --where`, but it seemed to be abominably slow, even to the point where the test suite wasn't even finishing ("Tried to run tests 3 times"). The diff is: diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim index 7baae079..8c100d41 100644 --- a/autoload/ale/python.vim +++ b/autoload/ale/python.vim @@ -106,5 +106,9 @@ endfunction " Detects whether a pipenv environment is present. function! ale#python#PipenvPresent(buffer) abort - return findfile('Pipfile.lock', expand('#' . a:buffer . ':p:h') . ';') isnot# '' + let l:cd_string = ale#path#BufferCdString(a:buffer) + let l:output = systemlist(l:cd_string . 'pipenv --where')[0] + " `pipenv --where` returns the path to the dir containing the Pipfile + " if in a pipenv, or some error text otherwise. + return strpart(l:output, 0, 18) !=# "No Pipfile present" endfunction Using vim's `findfile` is much faster, behaves correctly in the majority of situations, and also works reliably when the `pipenv` command doesn't exist.
2018-09-14Add tests for assuring the SCSS stylelint options workjpsouzasilva
2018-09-14Merge pull request #1850 from rrosenblum/ruby_lintersw0rp
Update all Ruby linters to work consistently with bundler
2018-09-14Test for bundle paths with spaces againw0rp
2018-09-14Return only the unescaped executables from executable callbacksw0rp
2018-09-14Adapt testsSascha Grunert
2018-09-12Update all Ruby linters to work consistently with bundlerRyan Rosenblum