All Projects → dnephin → Pre Commit Golang

dnephin / Pre Commit Golang

Licence: mit
Golang hooks for pre-commit

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Pre Commit Golang

use-mutation
🧬 Run side-effects safely in React
Stars: ✭ 81 (-68.97%)
Mutual labels:  hooks
hookr
PHP action and filter hook system
Stars: ✭ 39 (-85.06%)
Mutual labels:  hooks
meteor-method-hooks
atmospherejs.com/seba/method-hooks
Stars: ✭ 24 (-90.8%)
Mutual labels:  hooks
React-Combine-Provider
combine react providers in ease
Stars: ✭ 29 (-88.89%)
Mutual labels:  hooks
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
Ddetours
Delphi Detours Library
Stars: ✭ 256 (-1.92%)
Mutual labels:  hooks
revery-graphql-hooks
A library for easy handling of GraphQL with hooks for Revery
Stars: ✭ 34 (-86.97%)
Mutual labels:  hooks
wp-documentor
Documentation Generator for WordPress.
Stars: ✭ 28 (-89.27%)
Mutual labels:  hooks
RT7-example
Code for the React Table 7 article
Stars: ✭ 32 (-87.74%)
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
Usehooks
Easy to understand React Hook code recipes
Stars: ✭ 3,075 (+1078.16%)
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 - Runs gofmt, requires golang
  • go-vet - Runs go vet, requires golang
  • go-lint - Runs golint, requires https://github.com/golang/lint
  • go-imports - Runs goimports, requires golang.org/x/tools/cmd/goimports
  • go-cyclo - Runs gocyclo, require https://github.com/fzipp/gocyclo
  • validate-toml - Runs tomlv, requires https://github.com/BurntSushi/toml/tree/master/cmd/tomlv
  • no-go-testing - Checks that no files are using testing.T, if you want developers to use a different testing framework
  • gometalinter - run gometalinter --config gometalinter.json ./...
  • golangci-lint - run golangci-lint run ./..., requires golangci-lint
  • go-critic - run gocritic check ./..., requires go-critic
  • go-unit-tests - run go test -tags=unit -timeout 30s -short -v
  • go-build - run go build, requires golang
  • go-mod-tidy - run go mod tidy -v, requires golang
  • go-mod-vendor - run go 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].