remove golang--lint-ci
This commit is contained in:
parent
4cd3d37966
commit
390103568b
43
.github/linters/.golangci.yml
vendored
43
.github/linters/.golangci.yml
vendored
@ -1,43 +0,0 @@
|
||||
run:
|
||||
timeout: 5m
|
||||
skip-files:
|
||||
- generated.*
|
||||
|
||||
issues:
|
||||
new: true
|
||||
|
||||
linters:
|
||||
enable:
|
||||
- asciicheck
|
||||
- bodyclose
|
||||
- deadcode
|
||||
- depguard
|
||||
- gci
|
||||
- gocritic
|
||||
- gofmt
|
||||
- gofumpt
|
||||
- goimports
|
||||
- goprintffuncname
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- misspell
|
||||
- nilerr
|
||||
- rowserrcheck
|
||||
- staticcheck
|
||||
- structcheck
|
||||
- stylecheck
|
||||
- typecheck
|
||||
- unconvert
|
||||
- unused
|
||||
- unparam
|
||||
- varcheck
|
||||
- whitespace
|
||||
disable:
|
||||
- errcheck
|
||||
|
||||
linters-settings:
|
||||
gci:
|
||||
local-prefixes: github.com/beego
|
||||
goimports:
|
||||
local-prefixes: github.com/beego
|
||||
32
.github/workflows/golangci-lint.yml
vendored
32
.github/workflows/golangci-lint.yml
vendored
@ -1,32 +0,0 @@
|
||||
name: golangci-lint
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- ".github/workflows/golangci-lint.yml"
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
paths:
|
||||
- "**/*.go"
|
||||
- ".github/workflows/golangci-lint.yml"
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
permissions:
|
||||
contents: read # for actions/checkout to fetch code
|
||||
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout codebase
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: --config=.github/linters/.golangci.yml
|
||||
only-new-issues: true
|
||||
Loading…
x
Reference in New Issue
Block a user