1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

setup golangci-lint

This commit is contained in:
Matthieu MOREL 2021-11-05 12:04:51 +01:00 committed by GitHub
parent 36cc0d3c0b
commit ae6d769a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

22
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Golangci-lint
on:
push:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
working-directory: v3

11
.golangci.yml Normal file
View File

@ -0,0 +1,11 @@
linters:
disable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- unused
- varcheck