summaryrefslogtreecommitdiff
path: root/autoload
AgeCommit message (Collapse)Author
2020-05-31Add support for rename (documentChanges)Jerko Steiner
2020-05-31Fix completion with langserver (autoimport in go)Jerko Steiner
2020-05-25Fixes govet linter for go 1.13+, with testsmostfunkyduck
2020-05-20Fixes #3092 - Implement loading `@file` c argumentsStephen Robinson
2020-05-08Use a function to define shellcheck linters and vars needed, fixes testsIan2020
2020-04-30fix: don't append newline when buffer is noeol and nofixeolJames C. Davis
2020-04-28Fix linting issue - indentation incorrectIan2020
2020-04-28Moved common code to ale handlers, updated bats docIan2020
2020-04-18ccls: Detect build dir and set compilationDatabaseDirectoryTomas Janousek
Fixes #2621
2020-04-18Broken message in pycodestyle (or any other Linters whose name include ↵Yuto
'code') (#3114) * Swap substitution order for echoed message This prevents 'code' string in liter_name to be substituted by accident. Linters including pycodestyle have been affected by this problem. * Add test for linter whose name contains 'code' Test for c525db8cb4088d02448c5ddcf4a80ffa028c3181
2020-04-18Fix 2269 - use ktlint stdin.Horacio Sanson
Use stdin flag instead of temporary files. This allows ktlint to work with .editorconfig files.
2020-04-17Merge pull request #2823 from jeremija/do-not-save-on-autoimportw0rp
Do not save after ALERename and ALEOrganizeImports
2020-04-17Merge pull request #3050 from StarryLeo/fix-vim-sign-priority-patch-checkHoracio Sanson
Fix vim sign priority patch check
2020-04-15Closes #3019 - Implement default navigationw0rp
Default navigation for commands that jump to new locations has been implemented with the `ale_default_navigation` variable, and all commands that jump to locations now support `-tab`, `-split`, or `-vsplit` arguments for overriding the default navigation behavior.
2020-04-15Fix tslint fixer not working issue (temporary file not found)Dalius Dobravolskas
2020-03-26Issue 2598: Addtional ^M characters on WindowsJohn Gehrig
Windows may insert carriage return line endings, which ALE does not handle well. These characters should not be displayed. Adds a line to remove these characters for all messages.
2020-03-15Fix vim sign priority patch checkStarryLeo
With Vim 8.2 released, the previous check method is not accurate enough.
2020-03-12Fix 2816 - Standard fix does not work.Horacio Sanson
The standard linter --fix fails if the file being input is not relative to the project root (https://github.com/standard/standard/issues/1384). This MR attempts to fix this by changing the command so the input file is relative to the project root and the output is to a temporary file. Preliminary tests with toy javascript projects seem to indicate this works fine.
2020-03-11Fixes #2982 - Implement g:ale_exclude_highlightsw0rp
Particular highlights can now be excluded by providing Lists of regular expressions.
2020-03-04Refactor the "s:LoadArgCount()" function (#3025)w0rp
* Refactor the "s:LoadArgCount()" function Previously, this function would always set "v:errmsg" on the first call with a given function. This is because autoloaded functions are not defined on the first call. A number of improvements have been made: - a useless local function ("l:Function") is removed - the "execute()" builtin captures the output, instead of ":redir" - a ":try" block handles the case where a function is not defined - a useless ":if" is removed since ":redir" always defines the var - confusing quoting is re-written (remove double "'" chars) Fixes: #3021
2020-02-16Alias ps1 filetype to powershellKevin Locke
Rather than requiring users to alias ps1 to powershell themselves, include it in s:default_ale_linter_aliases. Since [vim-ps1] is a popular (the only?) PowerShell ftplugin and there do not appear to be any other uses of ft=ps1 on vim.org, this seems like a safe and reasonable default. [vim-ps1]: http://www.vim.org/scripts/script.php?script_id=1327 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2020-01-28misc: change email address for @ndrewtlAndrew Lee
This is kind of a peculiar reason for a PR, but I no longer control the email listed. I want to change it to avoid people getting the wrong email for me. Also, I still control the domain, but if at any point I don't, I want to put down in writing that if you get an email from this, it's not from me.
2020-01-01Add TypeScript autoimport support for deoplete (#2779)Jerko Steiner
* Add autoimport support for deoplete * Fix test_deoplete_source.py * Use callback instead of is_async for deoplete Shuogo, the author of Deoplete, does not recommend using the `is_async` option: > I think is_async is not recommended. It is not so useful and broken. > You should use callback system instead. Link: https://github.com/Shougo/deoplete.nvim/issues/1006#issuecomment-526797857 Incidentally, the same thread mentiones an issue started by w0rp: https://github.com/Shougo/deoplete.nvim/issues/976 The deoplete docs also say is_async is deprecated: > is_async (Bool) > If the gather is asynchronous, the source must set > it to "True". A typical strategy for an asynchronous > gather_candidates method to use this flag is to > set is_async flag to True while results are being > produced in the background (optionally, returning them > as they become ready). Once background processing > has completed, is_async flag should be set to False > indicating that this is the last portion of the > candidates. > > Note: The feature is deprecated and not recommended. > You should use callback system by > |deoplete#auto_complete()| instead. Link: https://github.com/Shougo/deoplete.nvim/blob/master/doc/deoplete.txt Co-authored-by: w0rp <w0rp@users.noreply.github.com>
2020-01-01Merge pull request #2942 from PsiPhire/masterw0rp
Allow popup to be used instead of preview in completeopt
2020-01-01Merge pull request #2937 from kevinoid/eslint-run-from-project-rootw0rp
Run ESLint from project root dir where possible
2020-01-01Merge pull request #2828 from akhilman/hover-to-previeww0rp
Add option to show hover messages in preview.
2019-12-29Add old check for bufline apiJerko Steiner
2019-12-22Allow popup to be used instead of preview in completeoptZander Lee
2019-12-17Run ESLint from project root dir where possibleKevin Locke
ESLint 6 loads all plugins/configs/parsers relative to the project root which, by default, is the directory in which ESLint is invoked, as described in [ESLint RFC 2018-simplified-package-loading]. Therefore, ALE should run ESLint from the project root, when possible, so that dependencies will load. This commit does so. [ESLint RFC 2018-simplified-package-loading]: https://github.com/eslint/rfcs/blob/master/designs/2018-simplified-package-loading/README.md Fixes: #2787 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-12-04Fix prettier_standard to respect the configuration fileConrad Irwin
Before this change, prettier_standard would run and ignore any .prettierrc, now it will respect the configuration of the file being linted. This change relies on prettier-standard 16.1.0 for the --stdin-filepath flag, but is backward compatible: older versions of prettier-standard will ignore the unknown flag and continue to run with no configuration file.
2019-11-26Fix 2891 - eslint not showing errors.Horacio Sanson
ESLint errors are contained in an array that can contain different stuff other than JSON error messages. This patch iterates over the whole array ignoring any non-json data.
2019-11-23ShellDetect: fall back to filetype if no hashbangEddie Lebow
Some files lack a hashbang line but still have an unambiguous filetype. For example, the file `.zshrc` has the filetype `zsh`. Augment ale#handlers#sh#GetShellType to fall back to the filetype if no hashbang line can be found.
2019-11-15Merge pull request #2847 from DonnieWest/allowUserToCustomizeItemsw0rp
Allow user to customize items
2019-11-14Clean up the nimpretty codew0rp
2019-11-14Merge pull request #2660 from YPCrumble/masterw0rp
Add StandardJS linter for TypeScript
2019-11-09add nimpretty fixerBùi Thành Nhân
2019-11-08Switch variables to dictionary keyDonnie West
2019-11-08Add scriptencoding to `completion.vim`Donnie West
2019-11-08Allow the user to set their own completion valuesDonnie West
2019-11-08Check kind safelyDonnie West
2019-11-08Allow the user to remove warnings from completionsDonnie West
2019-11-07Switch from style to transformers (#2838)Thibault Vatter
* Switch to transformers for styler * Adapt unit test too
2019-10-29Merge pull request #2690 from iclanzan/purtyw0rp
Add purty fixer for PureScript
2019-10-28Fix the test issues with html-beautifyw0rp
2019-10-28Add support for html-beautify (#2788)Hugo Osvaldo Barrera
* Add support for html-beautify * Add html-beautify to the list of supported tools * Update docs
2019-10-28fixers/stylelint: enhance `stylelint` fixer (#2745)Charlie Johnson
* Refactor stylelint fixer test * Support additional stylelint fixer options * Support changing working directory for stylelint fixer * Force css syntax for stylelint fixer
2019-10-22Merge branch 'master' into do-not-save-on-autoimportJerko Steiner
2019-10-22Rename ale#fix#SetBufferContents to ale#util#SetBufferContentsJerko Steiner
2019-10-21Allow the use of StandardX for StandardJS linting and fixing.Ian Campbell
See https://github.com/standard/standardx
2019-10-21Remove standardts fixer in favor of allowing standard.vim fixer to handle ↵Ian Campbell
JavaScript or TypeScript options.