summaryrefslogtreecommitdiff
path: root/ale_linters/erlang
AgeCommit message (Collapse)Author
2021-11-12Add sub_type to Elvis output (#3976)Dmitri Vereshchagin
Elvis is Erlang style reviewer, thus all loclist objects should have sub_type set to style.
2021-07-17Update erlang format for OTP24 (#3823)Jose Maria Perez Ramos
Erlang's erlc error format includes the column in OTP24. See https://blog.erlang.org/My-OTP-24-Highlights/#column-number-in-warnings-and-errors
2021-01-23refactor(erlang/dialyzer): remove file placeholder from optionsPierre-Nicolas Clauss
Signed-off-by: Pierre-Nicolas Clauss <pinicarus@protonmail.com>
2021-01-23Merge remote-tracking branch 'upstream/master'Pierre-Nicolas Clauss
Signed-off-by: Pierre-Nicolas Clauss <pinicarus@protonmail.com>
2021-01-13Merge pull request #3531 from pinicarus/custom-erlc-executableHoracio Sanson
Custom erlc executable
2020-11-01Merge branch 'custom-erlc-executable'pinicarus
2020-10-28feat(erlang/erlc): add option for custom executablepinicarus
2020-10-03refactor(erlang/dialyzer): simplify option handlingpinicarus
2020-09-30feat(erlang/dialyzer): add custom options passingpinicarus
2020-09-06Add Elvis handler for ErlangDmitri Vereshchagin
[Elvis][1] is an Erlang style reviewer. [1]: https://github.com/inaka/elvis
2019-07-22Fix bug with detection of the PLTAntoine Gagné
Previously, it did not detect the PLT inside the `_build` directory and would always default to the default PLT or the one from the `kerl` tool.
2019-05-19Add support for Erlang dialyzer (#2509)Antoine Gagné
* Add support for Erlang dialyzer * Add an option to specify rebar3 profile In doing so, the use of the `**` wildcard becomes unnecessary.
2019-04-07#2132 - Replace command_chain and chain_with with ale#command#Runw0rp
2019-02-22#2132 - Replace all uses of foo_callback with foow0rp
2019-01-26#2132 Unify temporary file management in command.vimw0rp
2018-08-02Simplify the code for most linters and tests with closuresw0rp
2018-07-12Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIRw0rp
2017-11-03windows compatible warning match pattern for erlc (#1071)Antoine Reilles
* windows compatible warning match pattern for erlc
2017-08-19Syntaxerl linter feature check (#861)Dmitri Vereshchagin
* Add feature check for SyntaxErl linter * Escape SyntaxErl executable path in commands
2017-08-19#860 Only enable the new option for setting the original filename for ↵w0rp
SyntaxErl if an option is on in ALE
2017-08-19Add original filename to SyntaxErl commandDmitri Vereshchagin
2017-08-08Ban use of ==# or ==? in the codebase, and prefer is# or is? insteadw0rp
2017-07-16Add SyntaxErl linterDmitri Vereshchagin
These changes add [SyntaxErl][1] integration. SyntaxErl is a syntax checker tool for Erlang. [1]: https://github.com/ten0s/syntaxerl
2017-05-12#549 Temporarily revert shell escaping changes, just for Windowsw0rp
2017-05-08#540 Fix shell escaping pretty much everywherew0rp
2017-04-16#427 Implement buffer variable overrides for all linter optionsw0rp
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-30Remove 'col' from linters where it is hardcoded to 1 (#434)Adriaan Zonnenberg
* Remove 'col' from linters where it is hardcoded to 1 When 'col' is 1, the first column will get highlighted for no reason. It should be 0 (which is the default). In the scalac linter there was also a check about the outcome of `stridx`. It would set l:col to 0 if it was -1, and then it uses `'col': l:col + 1` to convert the outcome of `stridx` to the actual column number. This will make 'col' equals 1 when there is no match. We can remove the check because `-1 + 1 = 0`. * Remove outdated comments about vcol vcol was added as a default, and the loclists that follow these comments do not contain 'vcol' anymore
2017-03-11Use tempname() to create the temporary output fileJon Parise
Also, "manage" this filename so ALE can clean it up.
2017-03-10Write erlc output files to the temporary directoryJon Parise
In particular, if we're working with a leex (.xrl) or yecc (.yrl) source file, erlc would otherwise generate the corresponding .erl file in the current directory (often the project root), which is generally not what we want. Unconditionally writing erlc output to a temporary directory also matches Flycheck's behavior.
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-22Make the Erlang linter code match the style used in the rest of the ↵w0rp
codebase. Make the options match the new standard.
2017-01-22Add erlc lint for Erlang (#248) (#255)Magnus
* 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