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
|
- 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
|
||||||
|
2
Makefile
2
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user