File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ alias txc="tmux_win_to_path"
105105alias txn=" rename_pane"
106106alias goc=" go_cover"
107107alias gcl=" go_clone"
108+ alias gci=" go_ci"
108109alias bkp=" create_backup"
109110alias ssht=" ssh_multi"
110111alias flat=" cat_flat"
@@ -420,6 +421,25 @@ function go_clone() {
420421 return 0
421422}
422423
424+ function go_ci() {
425+ if [[ $# -eq 0 ]] ; then
426+ echo " Usage: gci {path}"
427+ return 0
428+ fi
429+
430+ if ! command -v golangci-lint ; then
431+ echo " golangci-lint is not installed"
432+ return 1
433+ fi
434+
435+ CGO_ENABLED=1 golangci-lint run \
436+ --enable=nolintlint,gochecknoinits,bodyclose,gocritic \
437+ --disable=errcheck \
438+ " $@ "
439+
440+ return $?
441+ }
442+
423443function create_backup() {
424444 if [[ $# -eq 0 ]] ; then
425445 echo " Usage: bkp {file}"
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ bash <(curl -fsSL https://andy.one/dotfiles/install.sh)
3636| ` hf … ` | ` grep ` over zsh history |
3737| ` goc ` | Create HTML coverage report for Go sources |
3838| ` gcl {org}/{repo} ` | Clone repository with Go sources |
39+ | ` gci {path} ` | Alias for ` golangci-lint ` |
3940| ` bkp {file} ` | Create backup for file or directory |
4041| ` flat {file} ` | Print flatten list of records |
4142| ` git release {version} ` | Add signed version tag for the latest commit to the master branch |
Original file line number Diff line number Diff line change 77
88# ###############################################################################
99
10- VERSION=" 2.5.5 "
10+ VERSION=" 2.5.6 "
1111
1212# ###############################################################################
1313
You can’t perform that action at this time.
0 commit comments