Pierre-Nicolas Clauss
105bc55695
refactor(erlang/dialyzer): remove file placeholder from options
...
Signed-off-by: Pierre-Nicolas Clauss <pinicarus@protonmail.com>
2021-01-23 19:07:26 +01:00
Pierre-Nicolas Clauss
0ac7595fe9
Merge remote-tracking branch 'upstream/master'
...
Signed-off-by: Pierre-Nicolas Clauss <pinicarus@protonmail.com>
2021-01-23 19:06:59 +01:00
Horacio Sanson
012348582c
Merge pull request #3531 from pinicarus/custom-erlc-executable
...
Custom erlc executable
2021-01-13 14:04:58 +09:00
pinicarus
db96b00720
Merge branch 'custom-erlc-executable'
2020-11-01 11:45:36 +01:00
pinicarus
15f44933c2
feat(erlang/erlc): add option for custom executable
2020-10-28 12:38:28 +01:00
pinicarus
d7557ef9be
refactor(erlang/dialyzer): simplify option handling
2020-10-03 10:16:04 +02:00
pinicarus
ac3c0c093a
feat(erlang/dialyzer): add custom options passing
2020-09-30 23:16:50 +02:00
Dmitri Vereshchagin
49718e0ec6
Add Elvis handler for Erlang
...
[Elvis][1] is an Erlang style reviewer.
[1]: https://github.com/inaka/elvis
2020-09-06 12:40:28 +03:00
Antoine Gagné
c675212ddd
Fix bug with detection of the PLT
...
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-07-22 09:50:16 -04:00
Antoine Gagné
3b7c86e401
Add support for Erlang dialyzer ( #2509 )
...
* Add support for Erlang dialyzer
* Add an option to specify rebar3 profile
In doing so, the use of the `**` wildcard becomes unnecessary.
2019-05-19 21:16:17 +01:00
w0rp
3bebcb5d48
#2132 - Replace command_chain and chain_with with ale#command#Run
2019-04-07 14:58:06 +01:00
w0rp
883978ece9
#2132 - Replace all uses of foo_callback with foo
2019-02-22 18:05:04 +00:00
w0rp
cf14d0aa53
#2132 Unify temporary file management in command.vim
2019-01-26 19:33:52 +00:00
w0rp
217284360d
Simplify the code for most linters and tests with closures
2018-08-02 23:44:12 +01:00
w0rp
ac0abc7c1f
Fix #1716 - Replace tempdir() with a wrapper to preserve TMPDIR
2018-07-12 13:05:59 +01:00
Antoine Reilles
54f44c2d0f
windows compatible warning match pattern for erlc ( #1071 )
...
* windows compatible warning match pattern for erlc
2017-11-03 18:56:34 +00:00
Dmitri Vereshchagin
b2d3764a18
Syntaxerl linter feature check ( #861 )
...
* Add feature check for SyntaxErl linter
* Escape SyntaxErl executable path in commands
2017-08-19 18:54:23 +01:00
w0rp
20e64fbae0
#860 Only enable the new option for setting the original filename for SyntaxErl if an option is on in ALE
2017-08-19 15:48:29 +01:00
Dmitri Vereshchagin
18cb9a725d
Add original filename to SyntaxErl command
2017-08-19 17:18:48 +03:00
w0rp
a535d07f28
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
2017-08-08 08:39:13 +01:00
Dmitri Vereshchagin
1aea6a34ff
Add SyntaxErl linter
...
These changes add [SyntaxErl][1] integration. SyntaxErl is a syntax
checker tool for Erlang.
[1]: https://github.com/ten0s/syntaxerl
2017-07-16 15:35:21 +03:00
w0rp
07b2542c0d
#549 Temporarily revert shell escaping changes, just for Windows
2017-05-12 09:20:16 +01:00
w0rp
6ea00af689
#540 Fix shell escaping pretty much everywhere
2017-05-08 22:59:25 +01:00
w0rp
e97dada261
#427 Implement buffer variable overrides for all linter options
2017-04-16 01:24:08 +01:00
w0rp
706dd050f2
Fix #257 in preparation for #427 , standardise options with fallbacks, and make it so every value can be computed dynamically
2017-04-15 13:36:16 +01:00
Adriaan Zonnenberg
4b0f3257dd
Remove 'col' from linters where it is hardcoded to 1 ( #434 )
...
* 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-30 23:33:38 +01:00
Jon Parise
f3eab445ee
Use tempname() to create the temporary output file
...
Also, "manage" this filename so ALE can clean it up.
2017-03-11 19:33:32 -08:00
Jon Parise
7d6b313065
Write erlc output files to the temporary directory
...
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-03-10 08:24:21 -08:00
w0rp
b2fe1b2567
Copy all loclist items returned from handlers, and set up defaults for convenience
2017-02-26 14:51:22 +00:00
w0rp
ecbb276805
Replace every stdin-wrapper script with the new %t formatting support
2017-02-11 19:40:57 +00:00
w0rp
e4a4fcd26b
Make the Erlang linter code match the style used in the rest of the codebase. Make the options match the new standard.
2017-01-22 13:51:57 +00:00
Magnus
cae153b3ac
Add erlc lint for Erlang ( #248 ) ( #255 )
...
* 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
2017-01-22 13:42:18 +00:00