pre-commit-golang
sh
Our great sponsors
pre-commit-golang | sh | |
---|---|---|
17 | 21 | |
261 | 6,771 | |
- | - | |
0.0 | 7.6 | |
11 months ago | 11 days ago | |
Shell | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pre-commit-golang
-
Gofumpt: It's like gofmt except more strict
For those who may be interested, my go pre-commit hooks package has built-in support for gofumpt (along with a bunch if other linters):
https://github.com/TekWizely/pre-commit-golang
-
Pre-Commit-Golang v1.0.0-rc.1 - Support For Environment Variables
TekWizely / pre-commit-golang v1.0.0-rc.1
-
New go-critic v0.6.0
github / TekWizely / pre-ommit-golang
- pre-commit-golang - v1.0.0-beta.4 - Go Mod Tidy, GoFumpt, StaticCheck
-
https://np.reddit.com/r/golang/comments/p4lykq/precommitgolang_v100beta4_recent_updates/h8zn8nf/
v1.0.0-beta.4 Support for staticcheck
-
pre-commit-golang - v1.0.0-beta.4 + Recent updates
v1.0.0-beta.2 Support for go mod tidy Support for goumpt
- Pre-commit-Golang – v1.0.0-beta.4 and Recent updates
-
Pre-commit-Golang v1.0.0-beta.1 – Now with support for running custom go tools
Quick Links: Project Page | Available Hooks | Installation | Releases
pre-commit-golang v1.0.0-beta.2
sh
-
Show HN: Hucksh – A Shell with a Good Memory
* The shell itself is https://github.com/mvdan/sh, a bash-like command interpreter
-
Pure Bash Bible
https://github.com/mvdan/sh
And finally, checkbashisms if you intend on making pure posix scripts that are compatible with debian/ubuntu's dash. It is part of the debian's devscripts suite, but is often individually packaged in other distros.
> Also you can use the chat as a learning tool
Or you could learn from a guide written by people who have suffered decades of experience of the pitfalls of shell scripting and have shared their woes.
https://mywiki.wooledge.org/BashGuide
- Shfmt – format shell programs
- Shfmt – format shell programs (like gofmt, rustfmt)
-
Gofumpt: It's like gofmt except more strict
My bad, I completely screwed this up... the as of yet undiscussed project is:
https://github.com/mvdan/sh
(not shmfmt)
-
Gosh Linux shell written in Golang
I support projects like this for purposes of exploration and practice. But don't expect people to use it when there are already well established projects out there like: https://github.com/mvdan/sh
- mvdan/sh: A shell parser, formatter, and interpreter with bash support; includes shfmt
-
similar to shellcheck?
There are also: - shfmt - sh - bash language server - bashate
- shfmt - formatting comments issue
-
Indenting piped shell expressions in a script?
I also like running shfmt over my shell scripts so they all look the same without me having to think about whitespace.
What are some alternatives?
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
bat - A cat(1) clone with wings.
gosec - Go security checker
ShellCheck - ShellCheck, a static analysis tool for shell scripts
go-critic - The most opinionated Go source code linter for code audit.
go-pkg-xmlx
gofumpt - A stricter gofmt
go-pkg-rss
go-parsing - A Multi-Package Go Repo Focused on Text Parsing, with Lexers, Parsers, and Related Utils
inject
GVM - Go Version Manager
toml - TOML parser for Golang with reflection.