Linux和Windows下编码问题处理codestyle解决方
作者:
KingJW | 来源:发表于
2020-03-13 14:37 被阅读0次

codestyle不通过
和gitlab交互 提交自己的代码的时候,触发流水线 会提示 编码异常 不用怕,以下是解决步骤:
1. 先切回master分支
2. git config core.autocrlf false
git config --global core.autocrlf input
git config core.autocrlf input
3. composer lint
4.切换到你的分支
composer lint-fix
composer lint-fix第一次会显示你的哪些文件的编码格式不正确,再次输入composer lint-fix,就可以为你解决这些问题
git status 查看为你解决的文件,重新提交他们,就可以啦
本文标题:Linux和Windows下编码问题处理codestyle解决方
本文链接:https://www.haomeiwen.com/subject/ayzhshtx.html
网友评论