remove golang--lint-ci

This commit is contained in:
Deng Ming 2023-06-19 15:25:19 +08:00
parent 4cd3d37966
commit 390103568b
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