summaryrefslogtreecommitdiff
path: root/ale_linters
AgeCommit message (Collapse)Author
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-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-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-10Complain about binary operators on the ends of linesw0rp
2019-02-08Support pylama for python (#2266)Kevin Locke
* Add pylama for python * Consolidate python traceback handling
2019-02-08Merge pull request #2284 from jqno/masterw0rp
Fixes javalsp linter
2019-02-07Fix #2276 - Replace a potentially infinite loop for hiew0rp
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-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-27Set lint_file for the ameba linterw0rp
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-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-27SugarSS support from PR 1967 (#2219)Niclas Åhdén
* sugarss support + bonus naming Sass correctly * cleanup + alphabetic ordering
2019-01-27Merge pull request #2207 from pmacosta/masterw0rp
Fixed parsing of pydocstyle errors
2019-01-27Merge pull request #2215 from irwand/masterw0rp
support older flake8 output, still used by hacking module from openstack style guide
2019-01-27Merge pull request #2235 from erydo/stack-ghc-optionsw0rp
Add g:haskell_stack_ghc_options like …_cabal_ghc_…
2019-01-27Add VHDL Support & Newer Verilog Linters (#2229)John Gentile
* Added VHDL file support with ghdl compiler * Update ghdl.vim * Create vcom.vim * Create xvhdl.vim * Update xvlog.vim * Added documentation for VHDL & Verilog linters * Added tests to VHDL & Verilog linters
2019-01-26Merge pull request #2250 from m-pilia/banditw0rp
Add bandit linter for Python
2019-01-26#2132 Unify temporary file management in command.vimw0rp
2019-01-26Add bandit linter for PythonMartino Pilia
2019-01-22Add haskell_stack_ghc_options like …_cabal_ghc_…Robert Estelle
Adds new option `g:haskell_stack_ghc_options` which passes options to `stack ghc`. This is implemented similiarly to `g:haskell_cabal_ghc_options`.
2019-01-20Add support for pyls configuration optionsyut23
Resolves #1443. Heavily inspired by the analogous support added for elixir-ls.
2019-01-20Add ktlint fixer support.Michael Phillips
2019-01-19Pass --compiler flag to elm-test when linting 0.19 testsRafał Cieślak
This makes elm make linter work when elm is not installed globally.
2019-01-16support older flake8 output, still used by hacking module from open style guideIrwan Djajadi
2019-01-14Fixed parsing of pydocstyle errorsPablo Acosta-Serafini
ale#Escape function seems to prepend and append ' to the file name, which are not present in the pydocstyle output. Having the parsing regexp match the file name was overkill anyway, since there is an obvious 1:1 correspondence between the buffer number and the (potential) errors reported by pydocstyle.
2019-01-14Racket linting using raco (#2146)Anthony Quizon
2019-01-12Support textlint for reStructuredText (#1978)hokorobi
* Support textlint for reStructuredText * Add linter test for textlint rst
2019-01-12#2132 Remove the need for the hidden add_newline option by tweaking the flow ↵w0rp
command
2019-01-10Add textlint for Asciidoc and add it to Fixers (#2193)TANIGUCHI Masaya
* Add textlint for asciidoc * Add textlint --fix
2019-01-05Add support for bingo (#2165)Jerko Steiner
* Add support for https://github.com/saibing/bingo * Add docs for ale-go-bingo * Use go.mod when found * Add test for bingo FindProjectRoot * Simplify ale_linters#go#bingo#GetCommand
2019-01-04fallback to elm if elm-tests isn’t availableAryeh Leib Taurog
2019-01-04fix: don’t use regex matchAryeh Leib Taurog
windows paths have backslashes, which are special in regex patterns
2019-01-04support tests/ with elm 0.19.0Aryeh Leib Taurog
With earlier elm versions, a separate package file is maintained for tests, which when properly configured enabled the compiler to find what it needed to compile the tests. Under elm 0.19, test dependencies are managed in the top-level package file, so `elm make` will fail on the tests. `elm-test make` is required in this case. See https://github.com/elm-explorations/test/issues/64
2018-12-20Merge pull request #2150 from mvgrimes/perl-linter-data-fixw0rp
Update the perl-linter's l:pattern to catch missing errors
2018-12-18changed gqlint to lint the file on diskJeff Willette
- added a cd into the direcotry containing the file in the buffer in order to properly check for a config file - added command_callback tests for graphql
2018-12-16Use non-greedy matching instead of looking for the commaMark Grimes
2018-12-16Merge pull request #2136 from ↵w0rp
hsanson/368-chktex-latex-report-errors-from-wrong-file Fix 368 - Lacheck reports errors from input{} files.
2018-12-14Update the perl-linter's l:pattern to catch missing errorsMark Grimes
In some situations, errors reported by `perl -c` can have multiple listings of "at <file> line <number>". If the l:pattern is changed to use non-greedy matching it will also match these. For example: ``` use strict; use DateTime; $asdf=1; ``` Results in: ``` Global symbol "$asdf" requires explicit package name (did you forget to declare "my $asdf"?) at /Users/mgrimes/t.pl line 3, <DATA> line 1. /Users/mgrimes/t.pl had compilation errors. ``` I am not 100% sure why `perl -c` generates errors with the extra "file line <num>". It only happens in some versions of perl when certain modules are used.
2018-12-11Add tests to lacheck linterHoracio Sanson
2018-12-10Adds standardrb linter (#2133)Justin Searls
See: https://github.com/testdouble/standard StandardRB is to RuboCop what StandardJS is to ESLint. This commit naively copies the RuboCop linter and fixer to point at the standardrb executable. Any other adjustments are very minor (the only I can think of is that standardrb takes a `--fix` option instead of `--auto-correct`). This raises a confusing point to me as both developer and a user: since ale enables all linters by default, won't this run both RuboCop and StandardRB (the results of which will almost always be in conflict with one another)? How does ale already solve for this for the similar case of StandardJS and ESLint?
2018-12-10Fix 368 - Lacheck reports errors from input{} files.Horacio Sanson
This PR adds additional check to lacheck linter to exclude any warnings related to sourced files via latex \input{} command. Closes: #368