summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-15Try to get tests to pass on Windows againw0rp
2019-02-15Fix #2299 - Make tsserver run 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-15Fix #2294 - Fix some syntax that broke LSPw0rp
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-13Better wordingw0rp
2019-02-13Explain what linting is in the first sentencew0rp
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-11Fixers are not disabled by defaultw0rp
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 #2277 from chaucerbao/feature/redraw-after-openw0rp
Center the result after `ale#util#Open` jumps
2019-02-10Merge pull request #2287 from kevinoid/vulture-optionsw0rp
Document and test ale_python_vulture_options
2019-02-10Merge pull request #2289 from kevinoid/shellcheck-dialectw0rp
Support ale_sh_shellcheck_dialect to set shellcheck dialect
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-08#2009 - Force Windows jobs to run in a CMD shellw0rp
2019-02-08Merge pull request #2262 from sectioneight/cd-for-blackw0rp
Respect python black fixer configuration file
2019-02-08Merge pull request #2272 from Rahlir/fix-c-compilecommandw0rp
Fix error when parsing compile_commands for c languages
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-08#2132 Implement deferred objects for ale#command#Runw0rp
2019-02-07Add a function for parsing command argsw0rp
2019-02-07Fix #2276 - Replace a potentially infinite loop for hiew0rp
2019-02-07Fixes javalsp linterJan Ouwens
2019-02-07Merge pull request #2278 from oblitum/improve-cypher-lintw0rp
linter/cypher: make Cypher linter dynamic
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-05Replace `normal` with `normal!`Alvin Chan
2019-02-05Remove the `redraw` since it's implicit with the `zz`Alvin Chan
2019-02-05Center the line within the viewport after a jumpAlvin Chan
2019-02-05Force Vim to `redraw` after `ale#util#Open`Alvin Chan
2019-02-04Fix error when parsing compile_commands for c langsTadeas Uhlir
This little error caused that when parsing compile_commands json, the filename was used to fetch entries in directory dictionary, hence, when adding new json commands, it never found anything in dir_lookup and instead rewrote the previous entry. Hence, the dir_lookup always contained list of only one compile_command per directory instead of all compile_commands for given directory.
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.