-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes ./... from my-cmd hooks; adds go mod tidy, gofump, -repo hook…
…s for formatters (#15) * Removes default ./... arg from my-cmd hooks * Adds support go mod tidy * Adds support for gofumpt * Adds -repo hooks for formatters: - go-fmt-repo - go-frumpt-repo - go-imports-repo - go-returns-repo * Simplifies .sh scripts: - Sets "error_on_output=0" globally by default - Disable SC2034 (unused args) globally - Removes "error_on_output=0" lines - Removes "shellcheck disable=SC2034" lines - Removes "shellcheck source=" lines BREAKING CHANGE: my-cmd-mod, my-cmd-mod-repo, and my-cmd-pkg hooks no-longer auto-add ./... argument
- Loading branch information
Showing
51 changed files
with
272 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/usr/bin/env bash | ||
# shellcheck disable=SC2034 # vars used by sourced script | ||
error_on_output=0 | ||
cmd=(go build -o /dev/null) | ||
# shellcheck source=lib/cmd-mod.bash | ||
. "$(dirname "${0}")/lib/cmd-mod.bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/usr/bin/env bash | ||
# shellcheck disable=SC2034 # vars used by sourced script | ||
error_on_output=0 | ||
cmd=(go build -o /dev/null) | ||
# shellcheck source=lib/cmd-pkg.bash | ||
. "$(dirname "${0}")/lib/cmd-pkg.bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/usr/bin/env bash | ||
# shellcheck disable=SC2034 # vars used by sourced script | ||
error_on_output=0 | ||
cmd=(go build -o /dev/null) | ||
# shellcheck source=lib/cmd-repo-mod.bash | ||
. "$(dirname "${0}")/lib/cmd-repo-mod.bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/usr/bin/env bash | ||
# shellcheck disable=SC2034 # vars used by sourced script | ||
error_on_output=0 | ||
cmd=(go build -o /dev/null) | ||
# shellcheck source=lib/cmd-repo-pkg.bash | ||
. "$(dirname "${0}")/lib/cmd-repo-pkg.bash" |
Oops, something went wrong.