summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
2019-02-22#2132 - Implement project_root as a replacement for project_root_callbackw0rp
2019-02-22#2132 - Make most foo_callback options work as foow0rp
2019-02-21#2132 - Implement deferred command handling for lintersw0rp
2019-02-21Fix #2300 - Handle more URIs per RFC 3986w0rp
2019-02-20Merge pull request #2303 from kevinoid/bandit-use-configw0rp
python/bandit: Use .bandit configuration file
2019-02-17python/bandit: Use .bandit configuration fileKevin Locke
Bandit automatically [uses any .bandit file] within the directories on which it is invoked. Since ALE invokes bandit on stdin, it does not load a .bandit file automatically. Add support for automatically finding a .bandit file and passing it to bandit via the --ini option along with a variable to disable this behavior if desired. Note: This is useful for the skips and tests configuration options, but not exclude which would require invoking bandit using a file name, which may or may not be a good trade-off. [uses any .bandit file]: https://github.com/PyCQA/bandit/blob/1.5.1/bandit/cli/main.py#L70-L73 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-17python/pylint: Change directory to project rootKevin Locke
Pylint only [checks for pylintrc] (and .pylintrc) files in the packages aboves its current directory before falling back to user and global pylintrc. For projects with a src dir, running pylint from the directory containing the file will not use the project pylintrc. Adopt the convention used by many other Python linters of running from the project root, which solves this issue. Add pylintrc and .pylintrc to FindProjectRoot. Update docs. [checks for pylintrc]: https://github.com/PyCQA/pylint/blob/pylint-2.2.2/pylint/config.py#L106 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-15Try to get tests to pass on Windows againw0rp
2019-02-15#2295 Send an empty object for the initialized notification, per the specw0rp
2019-02-15Fix #2295 - Respond to initialize with an initialized messagew0rp
2019-02-14Simplify code for marking linters as activew0rp
2019-02-13Fix #2293 - Update linter option documentationw0rp
* The README now points to a valid helptag for linter options. * The now very, very large part of the table of contents for linter and fixer options has been moved into a section so the initial table is smaller. * Special linter or fixer options now lie beneath the general linter or fixer options.
2019-02-13Remove ProcessChain code we do not need noww0rp
2019-02-13Make it easier to remove command_chain support laterw0rp
2019-02-13#2132 Use an on-init callback for all LSP logicw0rp
2019-02-12Merge pull request #2291 from kevinoid/pylama-no-tempw0rp
pylama: Use %s instead of %t
2019-02-12#2132 - Implement deferred executable string handling for lintersw0rp
2019-02-12pylama: Use %s instead of %tKevin Locke
Although using %t to lint changes was desirable, many pylama checks use surrounding paths and file contents (e.g. C0103 module name, E0402 relative import beyond top, etc.) The more such errors I find during testing, the less %t seems like a good idea. Switch to %s. Also set `lint_file` to 1 and mark Pylama as a file linter in the docs. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-11Rewrite the supported tools lists in new filesw0rp
2019-02-11add project_root_callback for tsserver (#2290)Derek Sifford
* add project_root_callback for tsserver * add tests for tsserver project root * Update test/command_callback/test_javascript_tsserver_command_callback.vader
2019-02-10Merge pull request #2268 from m-pilia/alexw0rp
Add settings for the Alex linter
2019-02-10Merge pull request #2287 from kevinoid/vulture-optionsw0rp
Document and test ale_python_vulture_options
2019-02-10Support ale_sh_shellcheck_dialect to set dialectKevin Locke
As discussed in w0rp/ale#1051, there are cases where it would be useful to be able to specify the dialect explicitly. This commit allows users to do so using the ale_sh_shellcheck_dialect variable. Fixes: w0rp/ale#1051 Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-10Document and test ale_python_vulture_optionsKevin Locke
The vulture linter already supports ale_python_vulture_options, but it is not documented or tested. Since vulture only supports configuration via options, it is an important use case. Add docs and test. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-02-10Complain about binary operators on the ends of linesw0rp
2019-02-10Supporting filtered jump (#2279)Théo Cavignac
* Support filtered jump based on loclist item type (E or W for now) * Use flags to customize the behavior of ALENext and ALEPrevious * Update <plug> bindings with flags * Update documentation about ALENext and ALEPrevious * Use ale#args#Parse in JumpWrap
2019-02-08Support pylama for python (#2266)Kevin Locke
* Add pylama for python * Consolidate python traceback handling
2019-02-08Merge pull request #2262 from sectioneight/cd-for-blackw0rp
Respect python black fixer configuration file
2019-02-08Add `-relative` option to ALESymbolSearch (#2255)Alvin Chan
* Add `-relative` option to ALESymbolSearch * Document the `-relative` option for ALEFindReferences and ALESymbolSearch
2019-02-08Fix #2257 - Fix an off by 1 which broke completion for some serversw0rp
2019-02-08Merge pull request #2284 from jqno/masterw0rp
Fixes javalsp linter
2019-02-07Add a function for parsing command argsw0rp
2019-02-07Fixes javalsp linterJan Ouwens
2019-02-06Make Cypher linter dynamicFrancisco Lopes
2019-02-06Merge pull request #2270 from oblitum/add-cypher-lintw0rp
linter/cypher: add cypher-lint
2019-02-06#2132 - lint and fix with ale#command#Runw0rp
A new function is added here which will later be modified for public use in linter and fixer callbacks. All linting and fixing now goes through this new function, to prove that it works in all cases.
2019-02-06Update syntax checkingw0rp
* Line continuation characters should be on the same lines. * .vim file line indentation should be a multiple of 4.
2019-02-03linter/cypher: add cypher-lintFrancisco Lopes
2019-02-02Add settings for the Alex linterMartino Pilia
The executable for the Alex linter is currently hard-coded as 'alex', which is an issue given the fact that it conflicts with the Haskell lexer generator, whose executable is also called 'alex', has been around a dozen years before the linter, and is packaged in the official repositories of the major Linux distributions. This commit adds options to use a local executable for the alex linter (which is a node package), and an option to set a custom executable. As side changes: * The pattern in the alex handler is made more readable by turnig it into a very-magic regex. * Alex handles plain text, markdown, and HTML. Specific flags for HTML and markdown are provided when instantiating the linters for the respective filetypes, while before those formats were treated as plain text.
2019-02-01Fix #2263 - detailed Flow errors should show the original messagew0rp
2019-01-30Respect python black fixer configuration fileAiden Scandella
Similar to other linters/fixers, by default change to the directory of the file being fixed before invoking `black`, which allows the tool to read project-specific configuration (pyproject.toml) Fixes #2218
2019-01-27Add initial ameba (crystal linter) support (#2174)Harrison Bachrach
* Add initial ameba (crystal linter) support Note that this depends on saved file as `ameba` does not have STDIN support * Fix formatting of crystal linter documentation * Add tests for ameba executable customization
2019-01-27Merge pull request #2228 from Nomad145/ktlintw0rp
Add ktlint Fixer Support
2019-01-27Extend statusline interface (#2240)petpetpetpet
* Extended statusline.vim to provide an efficient way to access the first errors,warnings,stylerrors,stylewarnings,etc from the loclist. * Added documentation and help for the new API function.
2019-01-27Merge pull request #2225 from ravicious/masterw0rp
Pass --compiler flag to elm-test when linting 0.19 tests
2019-01-27Add textlint for tex (#2234)TANIGUCHI Masaya
2019-01-27Fix #2192 - Handle more ignore-pattern messages for ESLintw0rp
2019-01-27add cmake-format fixer support (#2244)Attila Maczak
2019-01-27SugarSS support from PR 1967 (#2219)Niclas Åhdén
* sugarss support + bonus naming Sass correctly * cleanup + alphabetic ordering