Age | Commit message (Collapse) | Author |
|
When using `--stdin`, Rubocop requires that you also pass the associated
file name. ALE was previously passing `_` as the filename. By passing
the actual relative path to the file and enabling the
`--force-exclusion` option, we can get Rubocop to respect excluded files
in the configuration.
Closes #197
|
|
and trailing whitespace, and fix existing issues.
|
|
codebase. Make the options match the new standard.
|
|
* Add erlc lint for Erlang (#248)
* Ignore certain errors in Erlang .hrl files (#248)
A .hrl file does not need to have a -module definition. Additionally, it
is common to have unused elements in such a file, as the entities will
be used in a file including the header.
* Address change requests to Erlang linter
|
|
|
|
and disable the rust linters for now, re #256"
This reverts commit f412b4f96fa49f4ed856db25c10bdf4b9c2e4cec.
Conflicts:
doc/ale.txt
|
|
Fix SwiftLint
|
|
|
|
1. Should be defined for 'swift' files, not 'swiftlint'.
2. Use `--use-stdin` option instead of the stdin-wrapper.
|
|
|
|
Add python mypy support
|
|
|
|
Add options for pylint linter
|
|
* Support netcore project linting.
* Support check on the fly.
* Remove debug.
* Rename csc.vim to mcs.vim as it should be.
* Update README.
* Update doc.
* Using `=~#` instead of `=~`.
|
|
* improve-verilator-support
* fix for linter
|
|
|
|
disable the rust linters for now, re #256
|
|
|
|
|
|
* Add rustc checker for rust files
* Add documentation for rustc
* Use a nice helper function
* Add cargo as linter
* Complete the doc for rust linters
* Put l: in front of every local variable
* Apply the requested stylistic changes
|
|
Add eslint option to pass in more options
|
|
|
|
* added hack linter
* updated docs for hack (hh_client)
* naming
|
|
Fix typo in perlcritic linter dictionary
|
|
Pass file name to flake8
|
|
The linter validation logic was checking for `stdout`, `stderr`, or
`both`, resulting in an exception being thrown when loading the
perlcritic linter.
|
|
This adds support for the official optional python typechecker.
|
|
|
|
This makes php output more specific error messages. The format is the normal one ALE expects, but on some systems ALE does not work with PHP unless the display_errors=1 option is used. Without that option php will only output a generic message without a line number like "Errors parsing index.php"
|
|
Added ability to reload compilation flags for c and c++
|
|
|
|
Named file file will be created after ALE, this can redirect the output to /dev/null if go build failed.
|
|
* add go build for build errors
* Add go build to doc and README
* Improvement for Go build
Go build works on package level, so copy over the other files
that belong to the same package to the temp folder as well.
* revert back to simple go build
* change gobuild script var name
|
|
* Add node_modules support for stylelint
* add node_modules support for htmlhint
* fix stdin
* update doc about stylelint & htmlhint
|
|
|
|
* Filters out unrelated errors in Elm linter
The function now filters out errors that are unrelated to the file,
those that were found in imported modules.
It does this by comparing the temp directory environment variable to the
file name in the elm output. If the file begins with the temp directory,
then it sould be included (it's from the buffer).
* Changing output to '/dev/null'
Turns out the compiler only accepts /dev/null as an ignorable name. It's
hard-coded here
https://github.com/elm-lang/elm-make/blob/master/src/Flags.hs
Changing this allows Windows linting to work. Otherwise the compiler
errors when using "nul"
* Fixes for Windows
Should now be able to successfully handle Windows.
Windows seemed to not handle the ";" properly, so I switched it to "&&",
which probably should've been done anyway to prevent false positives.
Oddly, matchend(l:error.file, l:temp_dir), and various other regex
solutions, couldn't properly match the two. Subsetting did though, hence
the new solution.
* Applying corrections
Made the file check case-insensitive for Windows, case-sensitive for
Unix/non-windows.
Added comment explaining hard coding of 'dev/null'
* Spelling correction
* Minor corrections
Actually uses the is_file_buffer variable now, added space between the
if statements, and added space between '-'
|
|
Improve formatting of ghc and hlint haskell linters
|
|
For ghc, it seemed that the conditional
```
if l:corrected_lines[-1] =~# ': error:$'
let l:line = substitute(l:line, '\v^\s+', ' ', '')
endif
```
was never being reached. It's actually better to unconditionally
collapse whitespace anyway and so I simply removed the conditional
check.
For hlint I added more information about the error. This changes the
reported error from `Error:` to something like:
` Error: Avoid lambda. Found: \ x -> foo x Why not: foo`
|
|
* Add support for swift with swiftlint
* Fix issue by adding '.swift' file extension
|
|
|
|
* Add support for Elm linting
* Adding documentation for Elm
* Adjusting spacing
* Addressing concerns listed in pull request
Removed the s:FindRootDirectory function as it does not make much sense
in this context. Adjusted the rest of the code to handle the removal of
that function, including using the ale#util function to find the nearest
file.
Ensured that when an empty filepath is found, the code does not attempt
to change directories.
Ensured that the linter would take from stdin using the wrapper.
|
|
|
|
|
|
* Add chktex linter
* Alias plaintex to tex
* Add lacheck linter
Closes #179
* Add the chktex warning code
This very useful to have when you want to suppress lint warnings with LaTeX
comments. chktex tends to be a bit noisy so this often needed.
* lacheck: Make regex less specific
To be more robust future changes in `stdin-wrapper`
|
|
* Add support for tslint.json file detection in tslint
* Fix tslint.json path building for tslint
|
|
|
|
|
|
* Add Proselint
- Markdown
- Tex
- Text
* Use ale#handler#HandleUnixFormatAsWarning
* Indentation
|
|
* Start adding Puppet linters
* Use the correct output stream for puppet parser
* Finish Puppet and puppet-lint linters
* Add Puppet information to documentation
|
|
* Add ocaml linter: merlin
* Add docs for ocaml-merlin integration.
* Remove annoying error message from ocaml merlin linter
* Update doc to list merlin linter
|