diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 27c4eb9..ee1e7ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: test env: - GLEAM_VERSION: "1.1.0-rc3" + GLEAM_VERSION: "1.1.0" on: push: @@ -51,7 +51,7 @@ jobs: strategy: fail-fast: true matrix: - erlang: ["26", "25", "27.0-rc1"] + erlang: ["26", "25", "27.0-rc3"] steps: - uses: actions/checkout@v4 - uses: actions/cache/restore@v4 diff --git a/gleam.toml b/gleam.toml index c4cc099..b7cf6b2 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,6 +1,8 @@ name = "code_review" version = "1.0.0" +gleam = ">= 1.0.0" + # Fill out these fields if you intend to generate HTML documentation or publish # your project to the Hex package manager. # diff --git a/manifest.toml b/manifest.toml index 63e633c..1fb8fa0 100644 --- a/manifest.toml +++ b/manifest.toml @@ -24,7 +24,7 @@ packages = [ ] [requirements] -birdie = { version = ">= 1.1.2 and < 2.0.0"} +birdie = { version = ">= 1.1.2 and < 2.0.0" } filepath = { version = ">= 1.0.0 and < 2.0.0" } glance = { version = ">= 0.8.2 and < 1.0.0" } glance_printer = { version = ">= 1.1.0 and < 2.0.0" } diff --git a/src/code_review.gleam b/src/code_review.gleam index 9eab1a3..3537a47 100644 --- a/src/code_review.gleam +++ b/src/code_review.gleam @@ -160,11 +160,11 @@ fn do_visit_expressions( visit_statements(rules, statements) } glance.RecordUpdate( - module: _, - constructor: _, - record: record, - fields: fields, - ) -> { + module: _, + constructor: _, + record: record, + fields: fields, + ) -> { let new_rules = do_visit_expressions(rules, record) use acc_rules, #(_, expr) <- list.fold(fields, new_rules) @@ -182,11 +182,11 @@ fn do_visit_expressions( do_visit_expressions(rules, expr) } glance.FnCapture( - label: _, - function: function, - arguments_before: arguments_before, - arguments_after: arguments_after, - ) -> { + label: _, + function: function, + arguments_before: arguments_before, + arguments_after: arguments_after, + ) -> { list.fold( list.append(arguments_before, arguments_after), rules, diff --git a/src/code_review/rules/no_unnecessary_string_concatenation.gleam b/src/code_review/rules/no_unnecessary_string_concatenation.gleam index 6fa8523..d31ba27 100644 --- a/src/code_review/rules/no_unnecessary_string_concatenation.gleam +++ b/src/code_review/rules/no_unnecessary_string_concatenation.gleam @@ -43,10 +43,10 @@ fn expression_visitor( ) glance.BinaryOperator( - glance.Concatenate, - glance.String(_), - glance.String(_), - ) -> #( + glance.Concatenate, + glance.String(_), + glance.String(_), + ) -> #( [ rule.error( at: context.current_location,