问题描述
我需要使用 VS Code 的 git 推送一些 ui 资源文件(来自 Axure RP9 的 .rp 文件)。但是当我提交时,我收到一条错误消息:
当我提交 .rp 文件时:
我收到一条错误消息:
git 错误日志:
> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
> husky - npm run -s precommit
> husky - node v12.16.3
Reading git index versions...
docs/VCMB/resources/VCMB_UI_Ultimate.rp(7,1): Bad whitespace indentation
docs/VCMB/resources/VCMB_UI_Ultimate.rp(8,1): Bad whitespace indentation
docs/VCMB/resources/VCMB_UI_Ultimate.rp(99,1): Bad whitespace indentation
docs/VCMB/resources/VCMB_UI_Ultimate.rp(154,1): Bad whitespace indentation
docs/VCMB/resources/VCMB_UI_Ultimate.rp(215,1): Bad whitespace indentation
docs/VCMB/resources/VCMB_UI_Ultimate.rp(234,1): Bad whitespace indentation
... same errors
docs/VCMB/resources/VCMB_UI_Ultimate.rp: Missing or bad copyright statement
hygiene Failed with 143 errors. Check 'build / gulpfile.hygiene.js'.
> husky - pre-commit hook Failed (add --no-verify to bypass)
> husky - to debug,use 'npm run precommit'
我不知道如何禁用 .rp 文件的文本检测。如果有人知道,真的很感激!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)