Merge pull request #5252 from flycash/develop

remove golang--lint-ci
This commit is contained in:
Ming Deng 2023-06-19 15:59:59 +08:00 committed by GitHub
commit ea8ff729f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 75 deletions

View File

@ -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

View File

@ -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