fix: modify alias

This commit is contained in:
2022-12-30 11:35:17 +08:00
parent 2b303153dd
commit 46a920d574
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ linters:
severity: error severity: error
# Enable all available rules. # Enable all available rules.
# Default: false # Default: false
enable-all-rules: true enable-all-rules: false
# Sets the default failure confidence. # Sets the default failure confidence.
# This means that linting errors with less than 0.8 confidence will be ignored. # This means that linting errors with less than 0.8 confidence will be ignored.
# Default: 0.8 # Default: 0.8
@@ -304,7 +304,7 @@ linters:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-naming # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-naming
- name: var-naming - name: var-naming
severity: warning severity: warning
disabled: false disabled: true
arguments: arguments:
- ["ID"] # AllowList - ["ID"] # AllowList
- ["VM"] # DenyList - ["VM"] # DenyList
+2 -3
View File
@@ -137,9 +137,8 @@ alias alert='terminal-notifier -title "Terminal" -message "Done with task! Exit
# git # git
alias gitb="git branch --show-current | tr -d '\n' | pbcopy" alias gitb="git branch --show-current | tr -d '\n' | pbcopy"
alias ct="go test -gcflags=all=-l -cover ./..." alias gci="golangci-lint run -c=~/.dotfile/.golangci.yml ./..."
alias ci="golangci-lint -c=~/.dotfile/.golangci.yml run ./..."
alias gmt="go mod tidy" 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 swg="swag init -o docs -g "
alias sws="swagger serve -F=swagger" alias sws="swagger serve -F=swagger"