Commit Graph

388 Commits

Author SHA1 Message Date
Keith Smiley 4566bd65c9
Add python mypy support
This adds support for the official optional python typechecker.
2016-12-30 16:12:30 -08:00
w0rp 3e1486fc92 Merge pull request #233 from LubergAlexander/master
Fixed a typo scss -> sass
2016-12-26 16:47:02 +00:00
Alexander Luberg 14aff89fb2 Fixed a typo scss -> sass 2016-12-26 08:35:22 -08:00
w0rp fcfd8d5f56 Merge pull request #232 from grzebiel/master
Added ability to reload compilation flags for c and c++
2016-12-26 13:28:43 +00:00
w0rp 12e99489b2 Merge pull request #231 from fannheyward/master
Redirect go build output to /dev/null
2016-12-26 13:27:46 +00:00
grzebiel 9767fd8732 Added ability to reload compilation flags for c and c++ after loading plugin 2016-12-24 00:18:14 +01:00
Heyward Fann e46ef0ae19 Redirect go build output to /dev/null
Named file file will be created after ALE, this can redirect the output to /dev/null if go build failed.
2016-12-23 14:56:44 +08:00
dzhou121 55827a9493 add go build for build errors (#180)
* 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
2016-12-22 12:10:21 +00:00
diartyz 6c0996eb9c [enhancement] add node_modules support for stylelint & htmlhint (#226)
* Add node_modules support for stylelint

* add node_modules support for htmlhint

* fix stdin

* update doc about stylelint & htmlhint
2016-12-22 11:39:01 +00:00
w0rp cd6d8f2ab6 Fix #229 Disable text linters by default 2016-12-22 11:32:20 +00:00
w0rp 771bfe3b18 #193 Fix a parsing error for parsing errors with eslint 2016-12-22 11:16:22 +00:00
Eric Lehner bda6df61a0 Elm file filter & Windows bug fixes (#223)
* 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 '-'
2016-12-16 10:41:21 +00:00
w0rp 8cb9b2ba4e Make sign parsing testable, and add tests for it against various languages. 2016-12-16 10:01:28 +00:00
w0rp 7e6d5292f7 Merge pull request #224 from cympfh/master
Fix: sign pattern
2016-12-16 09:33:52 +00:00
cympfh 8df2444ec4 Fix: sign pattern 2016-12-15 13:57:26 +09:00
w0rp 4ad5c4757c Merge pull request #221 from rob-b/improve-formatting-of-haskell-linters
Improve formatting of ghc and hlint haskell linters
2016-12-14 19:13:19 +00:00
w0rp 54b55bb39c Merge pull request #222 from justinmk/fixfuncref
Nvim: pass functions as funcrefs
2016-12-14 19:09:56 +00:00
Justin M. Keyes 1ae851878a Nvim: pass functions as funcrefs
neovim/neovim#5529 merged support for Vim's partial functions, which
made nvim more strict about dictionary functions and callbacks, to
match Vim behavior.
2016-12-14 17:40:45 +01:00
Rob Berry 0ffef758ae 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`
2016-12-14 12:50:14 +00:00
David Mohundro 3418faf054 Add support for Swift with swiftlint (#214)
* Add support for swift with swiftlint

* Fix issue by adding '.swift' file extension
2016-12-13 15:28:20 +00:00
w0rp 10777d3421 Add tests to cover definitions for linters so far. 2016-12-13 13:33:19 +00:00
w0rp f950c29035 Implement command chaining. Tests and documentation to come. 2016-12-13 10:19:56 +00:00
w0rp 88f4598ea2 Fix the proeslint linter for plaintext files 2016-12-13 10:19:19 +00:00
w0rp 76a03b0709 Add a Batch stdin wrapper script 2016-12-13 10:00:40 +00:00
Eric Lehner 70e379cc46 Add Elm linting via elm-make (#213)
* 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.
2016-12-13 09:06:04 +00:00
w0rp 25f6445c50 Merge pull request #210 from apuignav/error-cpp
Catch g++ fatal error
2016-12-08 09:05:36 +00:00
Albert Puig b5013ba54b Catch g++ fatal error 2016-12-08 09:32:57 +01:00
w0rp 815be12649 Merge pull request #209 from apuignav/ignore-pylint
Skip I0011 messages in pylint.
2016-12-07 22:57:12 +00:00
Albert Puig 88c203b686 Skip I0011 messages in pylint.
Ignore 'Locally disabling %s' messages from pylint.
2016-12-07 23:54:41 +01:00
w0rp aee339f401 Document the new stylelint linter 2016-12-06 13:26:06 +00:00
w0rp d5c626667e Merge pull request #207 from diartyz/master
[new linter] add stylelint support
2016-12-06 13:22:47 +00:00
diartyz 725957de6e add stylelint support 2016-12-06 21:14:14 +08:00
w0rp 1a749a6b43 Merge pull request #201 from kyrisu/fix-proper_extension_handling_for_tslint
Fix proper extension handling for tslint
2016-12-05 11:14:08 +00:00
Krystian Paszkiewicz ff8f3673eb Fix proper extension handling for tslint 2016-12-05 08:42:00 +00:00
w0rp d77e5a9308 #200 Make systemverilog files use the verilog linters by default 2016-12-04 23:13:57 +00:00
Andrew Balmos 35307c0585 LaTeX Linters (#190)
* 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`
2016-12-04 22:19:06 +00:00
kyrisu bbdff82aee Add support for tslint.json file detection in tslint (#198)
* Add support for tslint.json file detection in tslint

* Fix tslint.json path building for tslint
2016-12-04 22:17:22 +00:00
w0rp 3a1caca907 Merge pull request #195 from mortonfox/rubocop-options
Add options variable for ruby-rubocop
2016-12-02 09:18:18 +00:00
Po Shan Cheah 5636626da1 Add options variable for ruby-rubocop 2016-12-01 12:28:27 -05:00
w0rp f5a4e11894 Add an FAQ section describing how to run linters when files are saved. 2016-12-01 09:52:43 +00:00
w0rp 66b183e1ba Fix #188: Revert to and older version of the Haskell linter, which works better 2016-11-28 09:53:07 +00:00
poohzrn 900b4cdff3 Add Proselint (#185)
* Add Proselint
- Markdown
- Tex
- Text

* Use ale#handler#HandleUnixFormatAsWarning

* Indentation
2016-11-28 09:36:11 +00:00
Alexander "Ace" Olofsson e03df80a09 Add puppet linters (#183)
* Start adding Puppet linters

* Use the correct output stream for puppet parser

* Finish Puppet and puppet-lint linters

* Add Puppet information to documentation
2016-11-25 12:00:07 +00:00
w0rp da37989960 Merge pull request #186 from poohzrn/patch-1
Fix links to handlers.vim
2016-11-25 11:53:26 +00:00
poohzrn 10bacf0996 Fix links to `handlers.vim` 2016-11-24 20:19:24 +01:00
Andrey Popp f7e6236fe8 Add ocaml linter: merlin (#177)
* Add ocaml linter: merlin

* Add docs for ocaml-merlin integration.

* Remove annoying error message from ocaml merlin linter

* Update doc to list merlin linter
2016-11-23 15:19:36 +00:00
Andrey Popp d700da8cb8 Flow linter improvements (#176)
* Fix flow linter to provide filename of the buffer

Related #173

* Fix flow linter not to fail on empty response

* Various improvement to message parsing
2016-11-21 09:53:18 +00:00
Marius Gedminas 713a6910d4 Add g:ale_python_flake8_executable (#174)
* Add g:ale_python_flake8_executable

Closes #172.

* Add g:ale_python_flake8_args

* Always add - to flake8 invocations
2016-11-14 17:52:31 +00:00
w0rp 498a9435de Document that typecheck is now supported 2016-11-10 16:24:17 +00:00
w0rp 7669550ae2 Merge pull request #170 from mkusher/typescript_typecheck_linter
Add typecheck linter for typescript
2016-11-10 16:20:28 +00:00