Skip to content

Commit

Permalink
fix: bump actions versions and add revive config
Browse files Browse the repository at this point in the history
  • Loading branch information
lukibahr committed Oct 10, 2023
1 parent 67ff562 commit 2de35cc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Expand Up @@ -15,7 +15,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.19.1'
go-version: '1.20'
check-latest: true
cache: false
- name: Run Revive Action by pulling pre-built image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Expand Up @@ -15,7 +15,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.19.1'
go-version: '1.20'
check-latest: true
cache: false
- name: Cache Go modules
Expand Down
24 changes: 24 additions & 0 deletions revive.toml
@@ -0,0 +1,24 @@
# When set to false, ignores files with "GENERATED" header, similar to golint
ignoreGeneratedHeader = true

# Sets the default severity to "warning"
severity = "warning"

# Sets the default failure confidence. This means that linting errors
# with less than 0.8 confidence will be ignored.
confidence = 0.8

# Sets the error code for failures with severity "error"
errorCode = 0

# Sets the error code for failures with severity "warning"
warningCode = 0

# Configuration of the `cyclomatic` rule. Here we specify that
# the rule should fail if it detects code with higher complexity than 10.
[rule.cyclomatic]
arguments = [10]

# Sets the severity of the `package-comments` rule to "error".
[rule.package-comments]
severity = "error"

0 comments on commit 2de35cc

Please sign in to comment.