From bf2c9df409358a8b30b0c4ea6d3864fed12fd391 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 25 Nov 2023 14:32:36 +0800 Subject: [PATCH] chore: update linter configuration and changelog titles - Remove the `deadcode` linter - Remove the `structcheck` linter - Remove the `varcheck` linter - Update the comment in the `.goreleaser.yaml` file for skipping the build - Update the title in the `changelog` section for "Bug fixes" - Update the title in the `changelog` section for "Enhancements" - Update the regex patterns in the `changelog` section for "docs" and "CICD" Signed-off-by: Bo-Yi Wu --- .golangci.yml | 3 --- .goreleaser.yaml | 11 +++++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5a0031c..b1d0554 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,7 +4,6 @@ linters: fast: false enable: - bodyclose - - deadcode - depguard - dogsled - dupl @@ -29,13 +28,11 @@ linters: - nolintlint - rowserrcheck - staticcheck - - structcheck - stylecheck - typecheck - unconvert - unparam - unused - - varcheck - whitespace - gofumpt diff --git a/.goreleaser.yaml b/.goreleaser.yaml index aa5453c..d267955 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,8 +1,7 @@ project_name: queue builds: - - - # If true, skip the build. + - # If true, skip the build. # Useful for library projects. # Default is false skip: true @@ -38,10 +37,10 @@ changelog: - title: Features regexp: "^.*feat[(\\w)]*:+.*$" order: 0 - - title: 'Bug fixes' + - title: "Bug fixes" regexp: "^.*fix[(\\w)]*:+.*$" order: 1 - - title: 'Enhancements' + - title: "Enhancements" regexp: "^.*chore[(\\w)]*:+.*$" order: 2 - title: Others @@ -52,6 +51,6 @@ changelog: # the changelog # Default is empty exclude: - - '^docs' - - 'CICD' + - "^docs" + - "CICD" - typo