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
This commit is contained in:
Magnus
2017-01-22 14:42:18 +01:00
committed by w0rp
parent 23f8e7ddc5
commit cae153b3ac
3 changed files with 103 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ CONTENTS *ale-contents*
4.22. rustc...........................|ale-linter-options-rustc|
4.23. python-mypy.....................|ale-linter-options-python-mypy|
4.24. python-pylint...................|ale-linter-options-python-pylint|
4.25. erlang..........................|ale-linter-options-erlang|
5. Linter Integration Notes.............|ale-linter-integration|
5.1. merlin..........................|ale-linter-integration-ocaml-merlin|
5.2. rust.............................|ale-integration-rust|
@@ -78,6 +79,7 @@ The following languages and tools are supported.
* D: 'dmd'
* Elixir: 'credo'
* Elm: 'elm-make'
* Erlang: 'erlc'
* Fortran: 'gcc'
* Go: 'gofmt -e', 'go vet', 'golint', 'go build'
* Haskell: 'ghc', 'hlint'
@@ -827,6 +829,17 @@ g:ale_python_pylint_options *g:ale_python_pylint_options*
after making sure it's installed for the appropriate Python versions (e.g.
`python3 -m pip install --user pylint`).
------------------------------------------------------------------------------
4.25. erlang *ale-linter-options-erlang*
g:ale_erlang_erlc_flags *g:ale_erlang_erlc_flags*
Type: |String|
Default: '`''`'
This variable controls additional parameters passed to `erlc`, such as `-I`
or `-pa`.
===============================================================================
5. Linter Integration Notes *ale-linter-integration*