summaryrefslogtreecommitdiff
path: root/autoload
AgeCommit message (Collapse)Author
2021-04-07apple-swift-format: linter and fixer with config swiftpm support (#3671)bosr
2021-03-26Add support for V: "v" (compiler) and "vfmt" fixer. (#3622)fiatjaf
* v: add "v fmt" fixer. * v: add "v" (build) linter. * v: fix vlint complaints and add documentation. * v: add tests. * v: use ale#Pad().
2021-03-24Add nixfmt as a Nix fixer. (#3651)David Houston
* Add nixfmt fixer. * Replace manual options pad with ale#Pad()
2021-03-23Switch to using buildifier's -path option (#3640)Jon Parise
Buildifier offers a -path command line option: > Buildifier's reformatting depends in part on the path to the file > relative to the workspace directory. Normally buildifier deduces > that path from the file names given, but the path can be given > explicitly with the -path argument. This is especially useful when > reformatting standard input, or in scripts that reformat a temporary > copy of a file. This lets us drop our `-type`-guessing logic. For the moment, we rely on the buffer filename being "relative to the workspace directory", which it generally is, but in a future change, we should introduce logic that will locate the WORKSPACE file and adjusts the filename relative to that directory. This could be complicated based on the working directory in which `buildifier` is executed, so a little more research is necessary to implement that logic correctly.
2021-03-23Add support for `ptop` fixer (#3652)BarrOff
* Add support for `ptop` fixer * add test file for ptop tests * called wrong fixer in assertion test * use ' %s %t' instead of ' %t %t'
2021-03-21#3633 - Move linter tests into test/linterw0rp
2021-03-20add support for svelte via svelteserver language server (#3644)fiatjaf
* add support for svelte via svelteserver language server * svelte: fix Vint error and add a `svelteserver` simple test. Co-authored-by: Joakim Repomaa <mail@j.repomaa.com> Co-authored-by: Joakim Repomaa <mail@jreinert.com>
2021-03-15#3632 Add ale#util#MapMatchesw0rp
2021-03-15Fix ale#path#Dirname on Windowsw0rp
2021-03-14Close #2102 - Add support for the Angular language serverw0rp
2021-03-01Add borders for floating windows in Neovim (#3603)Yen3
* Add borders for floating windows in Neovim * Add docs for floating window border setting Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2021-03-01#3599 - Use ale_root instead of ale_lsp_rootw0rp
The `ale_lsp_root` setting is now deprecated, and `ale_root` should be used instead. The setting will be used for both setting the root easily for LSP linters, and for running other linters over whole projects.
2021-03-01Close #2281 - Separate cwd commands from commandsw0rp
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
2021-02-28Add support for `erlfmt` fixer (#3602)Antoine Gagné
* Add support for `erlfmt` * Add missing entry to table of contents * Fix warnings * Add missing tools to supported tools
2021-02-21Add a buildifier fixer for Bazel files (#3499)Jon Parise
This fixer enables buildifier's formatting and "lint fix" modes. Additional options can be provided via `bazel_buildifier_options`. It also implements some basic logic for guessing the file's type. buildifier itself usually does this based on the filenames provided on the command line, but because we're piping our buffer via stdin, we need to do this manually.
2021-02-20Fixes to code actions (cursor moving, tests, EOL/EOF corner cases) (#3478)Tomáš Janoušek
* code_action: Don't move cursor when change covers entire file * code_action: Refactor/simplify ApplyChanges * code_action: Fix EOL at EOF corner cases while performing no changes * code_action: Fix column around EOL corner cases * code_action: Handle positions out of bounds * code_action: Add instructions for verifying corner case tests against vscode
2021-02-20Support going to type definition with tsserver (#3545)Alex LaFroscia
2021-02-18Added ocamllsp (#3595)Risto Stevcev
* Added ocamllsp * Update ordering in docs to be alphabetical * Updated expected result in test
2021-02-18add support for prettier-ruby to prettier fixer (#3593)David Buchan-Swanson
it _does_ need an additional plugin, but when it has the plugin, it works as expected.
2021-02-14Allow clangformat to use a local style file (#3587)Mukund Mauji
* Allow clangformat to use a local style file. * Add tests. * Fix Vint issue. * Improve explanation of feature in documentation. * Fix failing test. The test was checking the wrong directory.
2021-02-11Bump the ALE version to v3.1.0w0rp
2021-02-06Bugfix: ParseCFlagsFromMakeOutput was never being called (#3574)Hugo Gualandi
Previously, the make output was never being parsed, even when the `c_parse_makefile` option was set.
2021-02-06Merge pull request #3575 from hugomg/gnumakefileHoracio Sanson
Have c_parse_makefile look for GNUmakefile as well
2021-02-05Merge pull request #3576 from cyyever/fish_indentHoracio Sanson
Fish indent
2021-02-03Have c_parse_makefile look for GNUmakefile as wellHugo Musso Gualandi
Makefiles using GNU-make features might be called "GNUmakefile" instead of "Makefile". This commit teaches the `c_parse_makefile` feature to look for a GNUmakefile file if a Makefile is not present.
2021-01-31Allow duplicate LSP completions for autoimport (#3473)Jerko Steiner
Similarly to TS completions, this allows the user to pick the package to autoimport when both the package and method name are the same.
2021-01-273560 add vim 8.2 and nvim 0.4 to ci tests (#3561)Horacio Sanson
* Add vim82 and neovim04 to CI tests. * Fix test_sign_column_hightlighting test. In vim82 with verbose=1 the output of highlight command changes breaking the ale#sign#SetUpDefaultColumnWithoutErrorsHighlight(). This commit forces verbose=0 when the method starts and restores the previous value before exiting. * No return values in vim82 returns a numeric value instead of a empty string. * Fix test_reek_handler test The FuzzyJSONDecode() method catches E474 when it fails to parse the input as JSON but Vim8.2 throws E491 instead. This commit modifies the function to catch both E474 or E491. * Fix perl6 handler test. Perl6 handler catches json parse errors using the E474 error but in Vim82 it changed to E491. This commit modifies the handler so both errors are considered. * Fix list opening tests. In Vim 8.2 the call `range(1, bufnr('$'))` always returns quickfix buffers no matter if they are closed or not. Using `ls` does not show them but the above range will always include them. This new behavior breaks the ale#list#IsQuickfixOpen() method that in turn breaks many other things. This commit fixes this by using the getqflist() and getloclist() methods instead. * Fix test updates loclist test. For some reason in Vim 8.2 the sign offset seems to not reset between tests causing the sign_id to not match in the Assert. When the test is run individually it passes but when run as part of the whole suite the sign_id is off by one. Forcing the offset in the test setup seems to fix the issue. * Fix omnifunc completion test. For unknown reasons the SetCompletionResponse tests fail in Neovim 0.2 and 0.4. Unfortunatelly the only solution I found is to disable them for neovim. * Fix linter warnings * Fix smoker test. Add vim 8.2 to the list of versions that need some retires due to randomly failing tests. * Add docker image build job. Trying some clever trick to build the docker image if not available locally or in Docker hub. It uses the Dockerfile md5 checksum as tag so only when changes on that file occur will the image be downloaded or build. * Add labels to Docker image * Remove tests for middle versions 8.1 and 0.3.5 * Use same vader commit as appveyor * Implement image push to Docker Hub Co-authored-by: Horacio Sanson <horacio@allm.inc>
2021-01-26Feature: Add support for named-pipe sockets for LSPs (#3509)Kevin Svetlitski
* Add support for using named pipes for lsp 'socket' servers; documentation updated accordingly * Add tests for connecting to named pipe sockets
2021-01-23Merge pull request #3547 from ↵Horacio Sanson
hsanson/3546-fix-E928-when-using-javac-linter-on-non-maven-projects Fix 3546 - check empty executable string.
2021-01-23Merge pull request #3521 from hsanson/3498-change-standardrb-fixer-to-use-stdinHoracio Sanson
3498 change standardrb fixer to use stdin
2021-01-23Merge pull request #3424 from maxice8/atoolsHoracio Sanson
Add support for Alpine Linux APKBUILD
2021-01-23add spectral handlertatsuya
2021-01-22feat: Add Deno lsp supportMohammed Chelouti
2021-01-22feat: Add Deno fmt fixerMohammed Chelouti
2021-01-22Make apkbuild_lint and secfixes_check default for apkbuild filetypeLeo
2021-01-22Add handler for the output of atoolsLeo
atools is a collection of tools written in ash shell and Lua that provide linting for Alpine Linux's APKBUILD. APKBUILDs are build recipes used by Alpine Linux's build system, abuild, an equivalent would be Arch Linux's PKGBUILD and Gentoo's ebuild.
2021-01-23Fix 3546 - check empty executable string.Horacio Sanson
At some point VIM/NVIM started throwing errors if the input string is empty for some functions such as execute() and fnamemodify(). This commit checks if the executable string is empty before passing it to the executable() function. Resources: - https://github.com/vim/vim/issues/7465 - https://github.com/vim/vim/releases/tag/v8.2.2117
2021-01-22xo: refactor to functionCharles B Johnson
2021-01-22xo: inline filetype handlingCharles B Johnson
2021-01-22fixers/xo: remove unnecessary directory crawlCharles B Johnson
2021-01-22fixers/xo: support monoreposCharles B Johnson
2021-01-22fixers/xo: support stdin relative to the fixed fileCharles B Johnson
2021-01-22fixers/xo: support typescript optionsCharles B Johnson
2021-01-22fixers/xo: refactor to handlersCharles B Johnson
2021-01-22fixers/xo: add testsCharles B Johnson
2021-01-22linters/xo: consolidate xo lintersCharles B Johnson
2021-01-22Add yamllint and prettier to openapi.Horacio Sanson
This commit enables yamllint and prettier on openapi files.
2021-01-22Fix 3498 - Change standardrb fixer to read from stdin.Horacio Sanson
Seems standardrb fails to properly use the --config option when using temporary files but works fine when reading from stdin. This commit changes the fixer so it uses stdin instead of temporary files.
2021-01-20Merge pull request #3261 from toastal/dhallHoracio Sanson
Enhanced Dhall fixer support
2021-01-20Merge pull request #3430 from mbrunnen/mbn/fix-macros-include-c-flagHoracio Sanson
Add -imacros to C flags