summaryrefslogtreecommitdiff
path: root/ale_linters/javascript/eslint.vim
diff options
context:
space:
mode:
authorEric Lehner <ericj@buffalo.edu>2016-12-16 05:41:21 -0500
committerw0rp <w0rp@users.noreply.github.com>2016-12-16 10:41:21 +0000
commitbda6df61a08e9582f43dd419b3fc18a15a714c5b (patch)
tree0b8c35aa81293407434ed1f13eff1f2f125c03be /ale_linters/javascript/eslint.vim
parent8cb9b2ba4eda0144dcdb2045c5d3036231e8faa3 (diff)
downloadale-bda6df61a08e9582f43dd419b3fc18a15a714c5b.zip
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 '-'
Diffstat (limited to 'ale_linters/javascript/eslint.vim')
0 files changed, 0 insertions, 0 deletions