4 Star 7 Fork 1

Gitee 极速下载/parca

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/parca-dev/parca
克隆/下载
.pre-commit-config.yaml 2.66 KB
一键复制 编辑 原始数据 按行查看 历史
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
exclude: ^ui/packages/shared/client/
- id: trailing-whitespace
exclude: ^ui/packages/shared/client/
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
name: Insert license in comments (Go)
args:
- --license-filepath=scripts/LICENSE.txt
- --comment-style=//
- --use-current-year
- --fuzzy-match-generates-todo
exclude: \.pb(?:\.gw)?\.go$
types: [go]
- id: insert-license
name: Insert license in comments (Shell)
args:
- --license-filepath=scripts/LICENSE.txt
- --comment-style=#
- --use-current-year
- --fuzzy-match-generates-todo
types: [shell]
- id: insert-license
name: Insert license in comments (TypeScript)
args:
- --license-filepath=scripts/LICENSE.txt
- --comment-style=//
- --fuzzy-match-generates-todo
files: \.tsx?$
exclude: ^ui/packages/shared/client/
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-mod-tidy
- repo: https://github.com/bufbuild/buf
rev: v1.47.2
hooks:
# Hijack an existing hook ID to run buf generate
# It also mean running `pre-commit run buf-format` will run both format and generate
- id: buf-format
name: buf generate
entry: make proto/generate
- id: buf-lint
- id: buf-format
- id: buf-breaking
args:
- --against=https://github.com/parca-dev/parca.git#branch=main,ref=HEAD~1,subdir=proto
- repo: https://github.com/golangci/golangci-lint
rev: v1.62.2
hooks:
- id: golangci-lint
- repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta
hooks:
- id: hadolint-docker
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.7.0-1
hooks:
- id: shfmt
# Google-style w/ 4-space indent
args:
- --write
- --indent=4
- --case-indent
- --binary-next-line
- repo: https://github.com/google/go-jsonnet
rev: v0.20.0
hooks:
- id: jsonnet-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
files: \.(?:[jt]sx?|md|html|s?css)$
additional_dependencies:
- "prettier@2.8.3"
- "@ianvs/prettier-plugin-sort-imports@3.7.1"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/parca.git
git@gitee.com:mirrors/parca.git
mirrors
parca
parca
main

搜索帮助