Skip to content

Commit

Permalink
Up the CI game (#21)
Browse files Browse the repository at this point in the history
* Up the CI game

* bump rebar3_lint

* introduce rebar3_hank

* Prevent a dialyzer warning on a consumer lib which happens to be rebar3_hex
  • Loading branch information
paulo-ferraz-oliveira authored May 20, 2021
1 parent 1f966f5 commit 1481cd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
]}.
{minimum_otp_vsn, "19.3"}.
{deps, []}.
{project_plugins, [erlfmt, rebar3_proper, rebar3_hex, covertool, {rebar3_lint, "0.3.2"}]}.
{project_plugins, [erlfmt, rebar3_proper, rebar3_hex, covertool, rebar3_lint, rebar3_hank]}.
{profiles, [
{test, [
{deps, [{proper, "1.3.0"}]},
Expand Down
4 changes: 2 additions & 2 deletions src/verl_parser.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
-type operator() :: '!=' | '&&' | '<' | '<=' | '==' | '>' | '>=' | '||' | '~>' | bitstring().

-spec parse_version(verl:version()) ->
{ok, {verl:major(), verl:minor(), verl:patch(), [verl:pre()], [verl:build()]}}
{ok, {verl:major(), verl:minor(), verl:patch(), verl:pre(), [verl:build()]}}
| {error, invalid_version}.
parse_version(Str) -> parse_version(Str, false).

-spec parse_version(verl:version(), boolean()) ->
{ok, {verl:major(), verl:minor(), verl:patch(), [verl:pre()], [verl:build()]}}
{ok, {verl:major(), verl:minor(), verl:patch(), verl:pre(), [verl:build()]}}
| {error, invalid_version}.
parse_version(Str, Approximate) when is_binary(Str) ->
try parse_and_convert(Str, Approximate) of
Expand Down
1 change: 1 addition & 0 deletions test/verl_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-module(verl_SUITE).

-compile(export_all).
-hank([{unnecessary_function_arguments, all}]).

-include_lib("common_test/include/ct.hrl").
-include_lib("stdlib/include/assert.hrl").
Expand Down
1 change: 1 addition & 0 deletions test/verl_parser_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-module(verl_parser_SUITE).

-compile(export_all).
-hank([{unnecessary_function_arguments, all}]).

-include_lib("common_test/include/ct.hrl").

Expand Down

0 comments on commit 1481cd5

Please sign in to comment.