Skip to content

Commit

Permalink
Update lint.yml (#586)
Browse files Browse the repository at this point in the history
* Update lint.yml

* Update .golangci.yml

* Update .golangci.yml

* Update lint.yml

* Update .golangci.yml
  • Loading branch information
bmoffatt authored Feb 19, 2025
1 parent 8e674da commit 694b951
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@ on:
push:
pull_request:

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
# Optional: allow write access to checks to allow the action to annotate code in the PR.
checks: write

jobs:
lint:
name: run golangci-golint on the project
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1'

- run: go version

- uses: actions/checkout@v3

go-version: 'stable'
- name: golangci-golint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2
./bin/golangci-lint run -v ./...
uses: golangci/golangci-lint-action@v6
with:
version: v1.64.5
11 changes: 7 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ linters:
- unused
- stylecheck

run:
skip-files:
issues:
exclude-dirs:
# These were code-generated, and cannot be changed without breaking RPC compatibility.
- lambda/messages/*.go
- lambda/messages

linters-settings:
staticcheck:
checks:
- all
- '-SA1029'
stylecheck:
go: "1.20"
checks:
- "all"
initialisms:
Expand Down

0 comments on commit 694b951

Please sign in to comment.