mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
🌱 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:
parent
09c44bd355
commit
8372067a70
@ -12,31 +12,31 @@ linters:
|
||||
- deadcode
|
||||
- depguard
|
||||
- dogsled
|
||||
- dupl
|
||||
# - dupl
|
||||
- errcheck
|
||||
- exhaustive
|
||||
- exportloopref
|
||||
- gochecknoinits
|
||||
# - gochecknoinits
|
||||
- gocognit
|
||||
- goconst
|
||||
- gocritic
|
||||
# - gocritic
|
||||
- gocyclo
|
||||
- godot
|
||||
- godox
|
||||
- goerr113
|
||||
# - goerr113
|
||||
- gofmt
|
||||
- gofumpt
|
||||
- goheader
|
||||
- goimports
|
||||
- golint
|
||||
- gomnd
|
||||
# - golint
|
||||
# - gomnd
|
||||
- gomodguard
|
||||
- goprintffuncname
|
||||
- gosec
|
||||
- gosimple
|
||||
- govet
|
||||
# - govet
|
||||
- ineffassign
|
||||
- lll
|
||||
# - lll
|
||||
- misspell
|
||||
- nakedret
|
||||
- nestif
|
||||
@ -49,7 +49,7 @@ linters:
|
||||
- sqlclosecheck
|
||||
- staticcheck
|
||||
- structcheck
|
||||
- stylecheck
|
||||
# - stylecheck
|
||||
- thelper
|
||||
- tparallel
|
||||
- typecheck
|
||||
|
2
Makefile
2
Makefile
@ -60,7 +60,7 @@ $(GOLANGGCI_LINT): install
|
||||
check-linter: ## Install and run golang linter
|
||||
check-linter: $(GOLANGGCI_LINT)
|
||||
# Run golangci-lint linter
|
||||
golangci-lint run -n
|
||||
golangci-lint run -c .golangci.yml
|
||||
|
||||
validate-projects: ## Validates ./cron/projects.txt
|
||||
validate-projects: build-scripts
|
||||
|
Loading…
Reference in New Issue
Block a user