diff --git a/.golangci.yml b/.golangci.yml index b7aee50..6f157b9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -34,7 +34,7 @@ linters: severity: error # Enable all available rules. # Default: false - enable-all-rules: true + enable-all-rules: false # Sets the default failure confidence. # This means that linting errors with less than 0.8 confidence will be ignored. # Default: 0.8 @@ -304,7 +304,7 @@ linters: # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-naming - name: var-naming severity: warning - disabled: false + disabled: true arguments: - ["ID"] # AllowList - ["VM"] # DenyList diff --git a/.zshrc b/.zshrc index 1c51daa..fa23e31 100644 --- a/.zshrc +++ b/.zshrc @@ -137,9 +137,8 @@ alias alert='terminal-notifier -title "Terminal" -message "Done with task! Exit # git alias gitb="git branch --show-current | tr -d '\n' | pbcopy" -alias ct="go test -gcflags=all=-l -cover ./..." -alias ci="golangci-lint -c=~/.dotfile/.golangci.yml run ./..." +alias gci="golangci-lint run -c=~/.dotfile/.golangci.yml ./..." alias gmt="go mod tidy" -alias gt="go test -gcflags=all=-l " +alias gt="go test -gcflags=all=-l -cover ./..." alias swg="swag init -o docs -g " alias sws="swagger serve -F=swagger"