ale/ale_linters
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
..
ansible Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
c Add support for clang for c 2016-10-31 14:38:13 +09:00
chef Added support for foodcritic 2016-11-01 15:36:08 -05:00
coffee Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
cpp Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
css add stylelint support 2016-12-06 21:14:14 +08:00
d Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
elixir Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
elm Elm file filter & Windows bug fixes (#223) 2016-12-16 10:41:21 +00:00
fortran Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
go Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
haskell Improve formatting of ghc and hlint haskell linters 2016-12-14 12:50:14 +00:00
html Default stdin in htmlhint options 2016-10-28 12:42:55 +03:00
javascript Flow linter improvements (#176) 2016-11-21 09:53:18 +00:00
json Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
lua Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
markdown Add Proselint (#185) 2016-11-28 09:36:11 +00:00
matlab Add support for mlint, a MATLAB linter (#145) 2016-10-24 20:32:52 +01:00
ocaml Add ocaml linter: merlin (#177) 2016-11-23 15:19:36 +00:00
perl Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
php Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
pug Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
puppet Add puppet linters (#183) 2016-11-25 12:00:07 +00:00
pyrex Remove many redundant handlers 2016-10-11 09:22:47 -05:00
python Add g:ale_python_flake8_executable (#174) 2016-11-14 17:52:31 +00:00
ruby Add options variable for ruby-rubocop 2016-12-01 12:28:27 -05:00
sass add stylelint support 2016-12-06 21:14:14 +08:00
scala Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
scss add stylelint support 2016-12-06 21:14:14 +08:00
sh Choose shell dialect based on vim syntax 2016-10-27 18:46:58 -07:00
swift Add support for Swift with swiftlint (#214) 2016-12-13 15:28:20 +00:00
testft Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
tex LaTeX Linters (#190) 2016-12-04 22:19:06 +00:00
text Fix the proeslint linter for plaintext files 2016-12-13 10:19:19 +00:00
typescript Fix proper extension handling for tslint 2016-12-05 08:42:00 +00:00
verilog Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
vim Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00
yaml Add support for dot-seperate linters, improve linter tests 2016-10-21 21:02:20 -05:00