Skip to content

Commit

Permalink
ci: workflow for running golangci-lint (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdk authored Feb 7, 2024
1 parent 3bcf79f commit 7ca015f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: GolangCI-Lint
on:
pull_request:
push:
branches:
- "master"

jobs:
lint:
name: GolangCI-Lint
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- uses: golangci/golangci-lint-action@v3
with:
# https://github.com/golangci/golangci-lint/releases/tag/v1.55.2
version: v1.55.2
25 changes: 25 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
issues:
exclude-use-default: false

linters:
enable-all: true
disable:
# Linters that are deprecated.
- deadcode
- exhaustivestruct
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck

linters-settings:
goheader:
template: |-
Copyright Josh Komoroske. All rights reserved.
Use of this source code is governed by the MIT license,
a copy of which can be found in the LICENSE.txt file.
SPDX-License-Identifier: MIT

0 comments on commit 7ca015f

Please sign in to comment.