From 8372067a707b87c1f77e5c1bacaf9bdd0d83aaae Mon Sep 17 00:00:00 2001 From: Chris McGehee Date: Wed, 19 May 2021 18:45:23 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20Disabling=20failing=20linters=20?= =?UTF-8?q?(#474)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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> --- .golangci.yml | 18 +++++++++--------- Makefile | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 0806e31c..10873cfe 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 diff --git a/Makefile b/Makefile index 22ff0de3..471d25c7 100644 --- a/Makefile +++ b/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