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
5 changes: 5 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ on:
workflow_dispatch:

permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read

jobs:
golangci:
Expand All @@ -23,3 +26,5 @@ jobs:
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
only-new-issues: true
args: --enable goheader
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment explaining why this is "manually" enabled via flag instead of in the config.

1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ linters:
- gci
- gocheckcompilerdirectives
- gofmt
- goheader
- goimports
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add either:

  1. A comment where goheader would have been, pointing readers to the workflow config; or
  2. Copy the comment from the workflow config to here (with modification if necessary).

(1) feels better but I'm ok with the redundancy of 2 because this isn't depended on by any code / requires devs to read it regularly.

- gomodguard
- gosec
Expand Down
2 changes: 1 addition & 1 deletion .libevm-header
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright {{ MOD-YEAR }} the libevm authors.
Copyright {{ MOD-YEAR-RANGE }} the libevm authors.

The libevm additions to go-ethereum are free software: you can redistribute
them and/or modify them under the terms of the GNU Lesser General Public License
Expand Down
Loading