Browse Source

ci: backport lint configuration changes

pull/7225/head
tycho garen 3 years ago
parent
commit
6f66c60397
3 changed files with 18 additions and 18 deletions
  1. +5
    -5
      .github/workflows/lint.yml
  2. +3
    -3
      .github/workflows/linter.yml
  3. +10
    -10
      .golangci.yml

.github/workflows/lint.yaml → .github/workflows/lint.yml View File


+ 3
- 3
.github/workflows/linter.yml View File

@ -11,6 +11,7 @@ on:
branches: [master] branches: [master]
paths: paths:
- "**.md" - "**.md"
- "**.yml"
jobs: jobs:
build: build:
@ -18,7 +19,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v2.4.0
- name: Lint Code Base - name: Lint Code Base
uses: docker://github/super-linter:v3 uses: docker://github/super-linter:v3
env: env:
@ -27,6 +28,5 @@ jobs:
DEFAULT_BRANCH: master DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_MD: true VALIDATE_MD: true
MARKDOWN_CONFIG_FILE: .markdownlint.yml
VALIDATE_OPAENAPI: true
VALIDATE_OPENAPI: true
VALIDATE_YAML: true VALIDATE_YAML: true

+ 10
- 10
.golangci.yml View File

@ -1,5 +1,6 @@
linters: linters:
enable: enable:
- asciicheck
- bodyclose - bodyclose
- deadcode - deadcode
- depguard - depguard
@ -10,24 +11,25 @@ linters:
# - funlen # - funlen
# - gochecknoglobals # - gochecknoglobals
# - gochecknoinits # - gochecknoinits
# - gocognit
- goconst - goconst
- gocritic
# - gocritic
# - gocyclo # - gocyclo
# - godox # - godox
- gofmt - gofmt
- goimports - goimports
- golint
- revive
- gosec - gosec
- gosimple - gosimple
- govet - govet
- ineffassign - ineffassign
# - interfacer # - interfacer
- lll - lll
- misspell
# - maligned # - maligned
- misspell
- nakedret - nakedret
- nolintlint
- prealloc - prealloc
# - scopelint
- staticcheck - staticcheck
- structcheck - structcheck
- stylecheck - stylecheck
@ -38,8 +40,6 @@ linters:
- varcheck - varcheck
# - whitespace # - whitespace
# - wsl # - wsl
# - gocognit
- nolintlint
issues: issues:
exclude-rules: exclude-rules:
@ -54,9 +54,9 @@ issues:
linters-settings: linters-settings:
dogsled: dogsled:
max-blank-identifiers: 3 max-blank-identifiers: 3
maligned:
suggest-new: true
# govet:
# check-shadowing: true
golint: golint:
min-confidence: 0 min-confidence: 0
maligned:
suggest-new: true
misspell:
locale: US

Loading…
Cancel
Save