1 Star 0 Fork 0

Damien Nguyen/lukas-c-pre-commit-hooks-mirror

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-hooks.yaml 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
- id: forbid-crlf
name: CRLF end-lines checker
description: "Forbid files containing CRLF end-lines to be committed"
entry: forbid_crlf
language: python
types: [text]
- id: remove-crlf
name: CRLF end-lines remover
description: "Replace CRLF end-lines by LF ones before committing"
entry: remove_crlf
language: python
types: [text]
- id: forbid-tabs
name: No-tabs checker
description: "Forbid files containing tabs to be committed"
entry: forbid_tabs
language: python
types: [text]
exclude: (Makefile|debian/rules|.gitmodules)(\.in)?$
- id: remove-tabs
name: Tabs remover
description: "Replace tabs by whitespaces before committing"
entry: remove_tabs
language: python
args: [ --whitespaces-count, '4' ]
types: [text]
exclude: (Makefile|debian/rules|.gitmodules)(\.in)?$
- id: chmod
name: Set file permissions
entry: chmod
language: python
- id: insert-license
name: Insert license in comments
description: "Insert a short license disclaimer as a header comment in source files"
entry: insert_license
language: python
types: [text]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dnguyen/lukas-c-pre-commit-hooks-mirror.git
[email protected]:dnguyen/lukas-c-pre-commit-hooks-mirror.git
dnguyen
lukas-c-pre-commit-hooks-mirror
lukas-c-pre-commit-hooks-mirror
master

搜索帮助