# 简介
Husky是一个git hook的框架,可用来检查提交信息、运行测试、检查代码等等。
# 安装
``` shell
npm i
npm run prepare
```
# 功能
## commitlint
### 说明
执行```git commit```时检查```commit message```是否符合规范。
规范配置:```commitlint.config.js```
### 测试
``` shell
git commit --allow-empty -m "badtype: badsubject"
```
因commit message不符合规范,提交会被husky中止。
``` shell
⧗ input: badtype: badsubject
✖ type must be one of [feat, fix, perf, refactor, style, revert, docs, test, chore, milestone, release, revision, alpha, beta, rc] [type-enum]
✖ found 1 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
husky - commit-msg hook exited with code 1 (error)
```
没有合适的资源?快使用搜索试试~ 我知道了~
XWKO-main.zip
共236个文件
h:138个
c:65个
mk:19个
0 下载量 120 浏览量
2022-12-02
10:47:45
上传
评论
收藏 370KB ZIP 举报
温馨提示
玄武内核模块是一个Linux内核模块,在Linux内核中实现了玄武OS的各种API
资源推荐
资源详情
资源评论
收起资源包目录
XWKO-main.zip (236个子文件)
xwaopu32.c 53KB
xwaopu16.c 53KB
xwaopu64.c 53KB
xwaopu8.c 53KB
xwaops64.c 49KB
xwaops32.c 49KB
xwaops16.c 49KB
xwaops8.c 48KB
protocol.c 45KB
fs.c 43KB
xwu32.c 38KB
xwu16.c 38KB
xwu64.c 38KB
xwu8.c 37KB
evt.c 36KB
xws32.c 35KB
xws16.c 35KB
xws64.c 35KB
xws8.c 34KB
protocol.c 26KB
xwbop.c 26KB
mif.c 25KB
crc32.c 25KB
sem.c 20KB
cond.c 20KB
usi.c 20KB
mif.c 19KB
bma.c 15KB
thd.c 14KB
usi.c 14KB
mtx.c 10KB
object.c 10KB
msgnode.c 9KB
msgnode.c 9KB
hwifal.c 9KB
hwifal.c 9KB
xwosimpl_soc_xwbop.c 9KB
xwbmpaop.c 9KB
init.c 8KB
init.c 8KB
core.c 8KB
xwosimpl_soc_xwbmpaop.c 8KB
swt.c 7KB
skd.c 6KB
memslice.c 5KB
xwmo.c 5KB
uart.c 5KB
uart.c 5KB
sma.c 4KB
init.c 4KB
board.c 3KB
board.c 3KB
bs.c 3KB
init.c 3KB
kma.c 3KB
pm.c 3KB
xwosimpl_soc_lfq.c 3KB
ksym.c 2KB
xwosimpl_soc_lfq.c 2KB
xwlog.c 2KB
pm.c 1KB
pm.c 1KB
uart.c 1KB
uart.c 1KB
notifier.c 899B
commit-msg 271B
mkcfg.el 20KB
version-updater.el 13KB
gitlog2org.el 9KB
errno.el 7KB
.gitemplate 700B
.gitignore 171B
xwaop.h 95KB
seqlock.h 25KB
skd.h 24KB
xwbop.h 23KB
xwaop16.h 22KB
xwaop32.h 22KB
xwaop64.h 22KB
xwaop8.h 21KB
flg.h 21KB
bclst.h 19KB
type.h 17KB
compiler.h 13KB
cond.h 13KB
spinlock.h 13KB
sem.h 13KB
sel.h 12KB
br.h 11KB
xwosimpl_soc_type.h 10KB
xwosimpl_soc_type.h 10KB
mtx.h 10KB
seqlock.h 10KB
protocol.h 9KB
seqlock.h 8KB
swt.h 8KB
protocol.h 8KB
armv8a_isa.h 6KB
skd.h 6KB
xwbmpaop.h 6KB
共 236 条
- 1
- 2
- 3
资源评论
m0_72731342
- 粉丝: 2
- 资源: 1832
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功