summaryrefslogtreecommitdiff
path: root/ale_linters/elm
AgeCommit message (Collapse)Author
2019-03-21Add support for elm-lspAntew
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
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-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-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-08-02Simplify the code for most linters and tests with closuresw0rp
2018-07-25Switch to v:t_ variables for type checksw0rp
2018-07-12Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIRw0rp
2018-05-25Fix multiline indentationHéctor Ramón Jiménez
2018-05-15Make Elm linter backwards compatible with Elm 0.18Héctor Ramón Jiménez
2018-05-12Show Elm.Kernel as location when `report.path` is `null` in a general problemHéctor Ramón Jiménez
2018-05-12Use `message` as `text` instead of `title`Héctor Ramón Jiménez
`title` does not contain much information which forces to use :ALEDetail most of the time
2018-05-11Update ale-elm docHéctor Ramón Jiménez
2018-05-11Test global problems and imported module errorsHéctor Ramón Jiménez
2018-05-11Upgrade Elm linter to support 0.19 error reportsHéctor Ramón Jiménez
2018-04-09Close #542 - Add an option for disabling running locally installed ↵w0rp
executables by default
2017-10-06Fix Elm linter for Windows (resolves #980)Keith Pinson
Looks like elm-make only respects /dev/null, even on Windows. The person who wrote this linter maybe did not test it on Windows, and wrote the code in the way you would expect to be solid by using NUL on Windows. However it seems elm-make is not actually making use of /dev/null but rather using it as a form of flag. Ironically this seems to be what is already described in the comments; I added some clarification.
2017-09-10Elm local install support (#915)Clément DOUIN
* Add Elm support for npm local installation
2017-08-11Ban !=# and !=? from the codebasew0rp
2017-08-08Ban use of ==# or ==? in the codebase, and prefer is# or is? insteadw0rp
2017-06-27Elm linter shows full error rangesJasper Woudenberg
2017-06-25Improve elm linter (#637)Jasper Woudenberg
* Improve elm linter Some types of errors do not return nice JSON. Show them on the first line instead of showing nothing. * Remove unnecessary properties from elm linter * Add a vader test for elm-make linter * Test non-JSON elm-make errors are shown
2017-05-12#549 Temporarily revert shell escaping changes, just for Windowsw0rp
2017-05-08#540 Fix shell escaping pretty much everywherew0rp
2017-04-17Move path functions to their own filew0rp
2017-04-15Fix #257 in preparation for #427, standardise options with fallbacks, and ↵w0rp
make it so every value can be computed dynamically
2017-03-01Add support for error detailsJasper Woudenberg
Some review needed.
2017-02-26Copy all loclist items returned from handlers, and set up defaults for ↵w0rp
convenience
2017-02-11Replace every stdin-wrapper script with the new %t formatting supportw0rp
2017-01-22Add a script for custom checks to enforce using the abort flag for functions ↵w0rp
and trailing whitespace, and fix existing issues.
2016-12-16Elm file filter & Windows bug fixes (#223)Eric Lehner
* 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-13Add Elm linting via elm-make (#213)Eric Lehner
* 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.