From 939dd863f745d1f991eee9dedc4117c85f38a705 Mon Sep 17 00:00:00 2001 From: Gary Holtz Date: Thu, 3 Apr 2025 21:27:53 -0500 Subject: [PATCH 1/2] chore: Update golangci file version --- .golangci.yml | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 9edb9994c..8b3558e51 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,16 +1,32 @@ +version: "2" run: - timeout: 5m - modules-download-mode: readonly - + modules-download-mode: readonly linters: - disable-all: true - enable: - - errcheck - - gofumpt - - goimports - - gosimple - - govet - - ineffassign - - staticcheck - - typecheck - - unused + default: none + enable: + - errcheck + - govet + - ineffassign + - staticcheck + - unused + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - gofumpt + - goimports + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ -- GitLab From f47898969e682c854808e91795296a96eda81a52 Mon Sep 17 00:00:00 2001 From: Gary Holtz Date: Tue, 8 Apr 2025 00:32:11 -0500 Subject: [PATCH 2/2] Updating CI value --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd6d9550f..e59ccb707 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -100,7 +100,7 @@ lint: # Write the code coverage report to gl-code-quality-report.json # and print linting issues to stdout in the format: path/to/file:line description # add `--issues-exit-code 0` to ignore linting issues - - golangci-lint run --print-issued-lines=false --out-format code-climate:gl-code-quality-report.json,line-number + - golangci-lint run --output.text.print-issued-lines=false --output.code-climate.path=gl-code-quality-report.json artifacts: reports: codequality: gl-code-quality-report.json -- GitLab