dnephin / Pre Commit Golang
Licence: mit
Golang hooks for pre-commit
Stars: ✭ 261
Programming Languages
shell
77523 projects
Projects that are alternatives of or similar to Pre Commit Golang
Oxide.Patcher
IL patcher for use with adding Oxide support to .NET games
Stars: ✭ 27 (-89.66%)
Mutual labels: hooks
graphire
An unopinionated react graph visualization library.
Stars: ✭ 256 (-1.92%)
Mutual labels: hooks
useReactHooks
useReactHooks is a curated list of custom react hooks that will benefit people in their daily tasks related to development in react.
Stars: ✭ 42 (-83.91%)
Mutual labels: hooks
revery-graphql-hooks
A library for easy handling of GraphQL with hooks for Revery
Stars: ✭ 34 (-86.97%)
Mutual labels: hooks
react-native-aria
A library of React Hooks for React-Native (Android/iOS/web) to provide accessible UI primitives for a design system.
Stars: ✭ 164 (-37.16%)
Mutual labels: hooks
Twenty48
A modified clone of the puzzle game 2048, built in react/typescript!
Stars: ✭ 31 (-88.12%)
Mutual labels: hooks
Ant-Design-Pro-V5
Ant Design Pro V5 详细配置,包括分模块打包,ahooks的使用,L7 地图组件的封装,合理的初始化数据,更有动态表单、动态表格、OSS图片上传等优秀组件(项目会逐渐迭代)~
Stars: ✭ 28 (-89.27%)
Mutual labels: hooks
MouseInjectDetection
Simple method of checking whether or not mouse movement or buttons (<windows 10) are injected
Stars: ✭ 29 (-88.89%)
Mutual labels: hooks
gatsby-react-hooks
An example of using Gatsby with React hooks
Stars: ✭ 26 (-90.04%)
Mutual labels: hooks
use-tiny-state-machine
A tiny (~700 bytes) react hook to help you write finite state machines
Stars: ✭ 37 (-85.82%)
Mutual labels: hooks
mantine
React components library with native dark theme support
Stars: ✭ 4,390 (+1581.99%)
Mutual labels: hooks
react-movies-finder
React Movies finder is a React app to search movies and series using redux, redux-thunk, React Hooks, and Material UI
Stars: ✭ 27 (-89.66%)
Mutual labels: hooks
pre-commit-golang
golang hooks for http://pre-commit.com/
Using these hooks
Add this to your .pre-commit-config.yaml
- repo: git://github.com/dnephin/pre-commit-golang
rev: master
hooks:
- id: go-fmt
- id: go-vet
- id: go-lint
- id: go-imports
- id: go-cyclo
args: [-over=15]
- id: validate-toml
- id: no-go-testing
- id: gometalinter
- id: golangci-lint
- id: go-critic
- id: go-unit-tests
- id: go-build
- id: go-mod-tidy
Available hooks
-
go-fmt
- Runsgofmt
, requires golang -
go-vet
- Runsgo vet
, requires golang -
go-lint
- Runsgolint
, requires https://github.com/golang/lint -
go-imports
- Runsgoimports
, requires golang.org/x/tools/cmd/goimports -
go-cyclo
- Runsgocyclo
, require https://github.com/fzipp/gocyclo -
validate-toml
- Runstomlv
, requires https://github.com/BurntSushi/toml/tree/master/cmd/tomlv -
no-go-testing
- Checks that no files are usingtesting.T
, if you want developers to use a different testing framework -
gometalinter
- rungometalinter --config gometalinter.json ./...
-
golangci-lint
- rungolangci-lint run ./...
, requires golangci-lint -
go-critic
- rungocritic check ./...
, requires go-critic -
go-unit-tests
- rungo test -tags=unit -timeout 30s -short -v
-
go-build
- rungo build
, requires golang -
go-mod-tidy
- rungo mod tidy -v
, requires golang -
go-mod-vendor
- rungo mod vendor
, requires golang
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].