🌱 Disabling failing linters (#474)

* Disabling failing linters.
They will be re-enabled as all errors are fixed.
Also linter will now fail on any error, not just newly introduced.

* Explicitly specifying lint config file

Co-authored-by: Naveen <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
Chris McGehee 2021-05-19 18:45:23 -07:00 committed by GitHub
parent 09c44bd355
commit 8372067a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -12,31 +12,31 @@ linters:
- deadcode - deadcode
- depguard - depguard
- dogsled - dogsled
- dupl # - dupl
- errcheck - errcheck
- exhaustive - exhaustive
- exportloopref - exportloopref
- gochecknoinits # - gochecknoinits
- gocognit - gocognit
- goconst - goconst
- gocritic # - gocritic
- gocyclo - gocyclo
- godot - godot
- godox - godox
- goerr113 # - goerr113
- gofmt - gofmt
- gofumpt - gofumpt
- goheader - goheader
- goimports - goimports
- golint # - golint
- gomnd # - gomnd
- gomodguard - gomodguard
- goprintffuncname - goprintffuncname
- gosec - gosec
- gosimple - gosimple
- govet # - govet
- ineffassign - ineffassign
- lll # - lll
- misspell - misspell
- nakedret - nakedret
- nestif - nestif
@ -49,7 +49,7 @@ linters:
- sqlclosecheck - sqlclosecheck
- staticcheck - staticcheck
- structcheck - structcheck
- stylecheck # - stylecheck
- thelper - thelper
- tparallel - tparallel
- typecheck - typecheck

View File

@ -60,7 +60,7 @@ $(GOLANGGCI_LINT): install
check-linter: ## Install and run golang linter check-linter: ## Install and run golang linter
check-linter: $(GOLANGGCI_LINT) check-linter: $(GOLANGGCI_LINT)
# Run golangci-lint linter # Run golangci-lint linter
golangci-lint run -n golangci-lint run -c .golangci.yml
validate-projects: ## Validates ./cron/projects.txt validate-projects: ## Validates ./cron/projects.txt
validate-projects: build-scripts validate-projects: build-scripts