-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Preemptively accept format results Before starting to change files in the scope of this branch * Remove dead code * Ease maintenance of .gitignore Only keep generated stuff + _* (e.g. for _build and _checkouts) * Add a CHANGELOG (even if it's just a reference to our Releases page) * Ease a fork's pre-pull request CI * Tweak ci.yml: bump versions and add format constraints * Accept further format results * Tweak rebar.config * Fix as per CI results: rebar3 functions not found "in scope" * Fix as per CI results: rebar.config not properly formatted * Fix as per CI results: OTP 26's dialyzer is unknown-enabled, by default * Act on self-review: remove pre-OTP 24 -specific code
- Loading branch information
1 parent
d4e8264
commit 814081a
Showing
8 changed files
with
100 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
.rebar3 | ||
_* | ||
.eunit | ||
*.o | ||
*.beam | ||
*.plt | ||
*.swp | ||
*.swo | ||
.erlang.cookie | ||
ebin | ||
log | ||
erl_crash.dump | ||
.rebar | ||
_rel | ||
_deps | ||
_plugins | ||
_tdeps | ||
logs | ||
_build | ||
rebar3.crashdump | ||
_* | ||
doc/ | ||
logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Changelog | ||
|
||
See the [Releases](../../releases) page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,44 @@ | ||
{minimum_otp_vsn, "21"}. | ||
%% == Compiler and Profiles == | ||
|
||
%% == Erlang Compiler == | ||
{erl_opts, | ||
[warn_unused_import, warn_export_vars, warnings_as_errors, verbose, report, debug_info]}. | ||
|
||
{erl_opts, [ | ||
debug_info | ||
]}. | ||
{minimum_otp_vsn, "23"}. | ||
|
||
{profiles, | ||
[{test, [{ct_opts, [{verbose, true}]}, {cover_enabled, true}, {cover_opts, [verbose]}]}]}. | ||
|
||
{alias, [{test, [compile, format, hank, xref, dialyzer, ct, cover, ex_doc]}]}. | ||
|
||
%% == Dependencies and plugins == | ||
|
||
{deps, [ | ||
{elvis_core, "3.0.1"} | ||
]}. | ||
{deps, [{elvis_core, "3.0.1"}]}. | ||
|
||
{project_plugins, | ||
[{rebar3_hank, "~> 1.4.0"}, | ||
{rebar3_hex, "~> 7.0.7"}, | ||
{rebar3_format, "~> 1.3.0"}, | ||
{rebar3_ex_doc, "0.2.18"}]}. | ||
|
||
{project_plugins, [ | ||
rebar3_hex, | ||
rebar3_hank | ||
]}. | ||
%% == Documentation == | ||
|
||
%% == Dialyzer == | ||
{ex_doc, | ||
[{source_url, <<"https://github.com/project-fifo/rebar3_lint">>}, | ||
{extras, [<<"README.md">>, <<"LICENSE">>]}, | ||
{main, <<"readme">>}]}. | ||
|
||
{dialyzer, [ | ||
{warnings, [ | ||
error_handling, | ||
underspecs, | ||
unmatched_returns | ||
]} | ||
]}. | ||
{hex, [{doc, #{provider => ex_doc}}]}. | ||
|
||
{xref_checks, [ | ||
deprecated_function_calls, | ||
exports_not_used, | ||
locals_not_used | ||
]}. | ||
%% == Format == | ||
|
||
%% == Profiles == | ||
{format, [{files, ["*.config", "src/*", "test/*"]}]}. | ||
|
||
{profiles, [ | ||
{test, [ | ||
{cover_enabled, true}, | ||
{cover_opts, [verbose]} | ||
]} | ||
]}. | ||
%% == Dialyzer + XRef == | ||
|
||
%% == Aliases == | ||
{dialyzer, | ||
[{warnings, [no_return, error_handling, underspecs, unmatched_returns, no_unknown]}, | ||
{plt_extra_apps, [common_test]}]}. | ||
|
||
{alias, [{test, [xref, dialyzer, hank, ct, cover, edoc]}]}. | ||
{xref_checks, [deprecated_function_calls, deprecated_functions]}. | ||
|
||
{hex, [{doc, edoc}]}. | ||
{xref_extra_paths, ["test/**"]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{application,rebar3_lint, | ||
[{description,"Erlang linter - rebar3 plugin"}, | ||
{vsn,git}, | ||
{registered,[]}, | ||
{applications,[kernel,stdlib,elvis_core]}, | ||
{env,[]}, | ||
{modules,[]}, | ||
{licenses,["MIT"]}, | ||
{links,[{"GitHub", | ||
"https://github.com/project-fifo/rebar3_lint"}]}]}. | ||
{application, | ||
rebar3_lint, | ||
[{description, "Erlang linter - rebar3 plugin"}, | ||
{vsn, git}, | ||
{registered, []}, | ||
{applications, [kernel, stdlib, elvis_core]}, | ||
{env, []}, | ||
{modules, []}, | ||
{licenses, ["MIT"]}, | ||
{links, [{"GitHub", "https://github.com/project-fifo/rebar3_lint"}]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters