Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
otp_vsn: ['25', '26', '27']
rebar3_vsn: ['3.24']
os: [ubuntu-24.04, windows-2022]
otp_vsn: ['24']
rebar3_vsn: ['3.22']
os: [ubuntu-24.04]
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
Expand All @@ -42,9 +42,6 @@ jobs:
-otp-${{steps.setup-beam.outputs.otp-version}}\
-rebar3-${{steps.setup-beam.outputs.rebar3-version}}\
-hash-${{hashFiles('rebar.lock')}}"
- name: Format check
if: ${{ matrix.os == 'ubuntu-24.04' && matrix.otp_vsn == '26' }}
run: rebar3 fmt --check
- name: Run test
run: rebar3 test
- name: Run elvis on elvis
Expand Down
4 changes: 1 addition & 3 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

{erl_opts, [warn_unused_import, warn_export_vars, warnings_as_errors, verbose, report, debug_info]}.

{minimum_otp_vsn, "25"}.

{profiles, [
{test, [
{extra_src_dirs, ["test/examples"]},
Expand All @@ -16,7 +14,7 @@
]}
]}.

{alias, [{test, [compile, fmt, hank, xref, dialyzer, ct, cover, ex_doc]}]}.
{alias, [{test, [compile, fmt, hank, xref, dialyzer, ct, cover]}]}.

{shell, [{config, "config/test.config"}]}.

Expand Down
4 changes: 2 additions & 2 deletions src/elvis_style.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ no_boolean_in_comparison(Config, Target, RuleConfig) ->
lists:any(IsBoolean, Content)
end,
ComparisonsWithBoolean =
lists:uniq(
lists:usort(
elvis_code:find(IsComparisonWithBoolean, Root, #{traverse => all})
),

Expand Down Expand Up @@ -1698,7 +1698,7 @@ no_operation_on_same_value(Config, Target, RuleConfig) ->
end,

OpNodes =
lists:uniq(
lists:usort(
elvis_code:find(IsInterestingOp, Root, #{traverse => all})
),

Expand Down