Skip to content

Commit

Permalink
Add golangci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sovietaced committed Jul 4, 2024
1 parent 0c4b6d8 commit 15c1adc
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: golangci-lint
on:
push:
branches:
- main
- master
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
22 changes: 22 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
linters:
# Disable all linters.
# Default: false
disable-all: true
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused

issues:
exclude-rules:
- path: (.+)_test.go
linters:
- errcheck
- path: test_utils.go
linters:
- errcheck
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/sovietaced/okta-jwt-verifier

go 1.21.5
go 1.22

require (
github.com/MicahParks/jwkset v0.5.18
Expand Down

0 comments on commit 15c1adc

Please sign in to comment.