Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitlab集成P3C检查,如何只对增量代码做检查 #996

Open
nanjunyu opened this issue May 6, 2024 · 3 comments
Open

Gitlab集成P3C检查,如何只对增量代码做检查 #996

nanjunyu opened this issue May 6, 2024 · 3 comments

Comments

@nanjunyu
Copy link

nanjunyu commented May 6, 2024

Gitlab集成P3C检查,如何只对增量代码做检查,如修改了Hello.java 某10行代码,只检测该10行代码规范,存量不做检测

@over-space
Copy link

@nanjunyu 请问最后有方案嘛, 实现改动行范围的增量检查?

@nanjunyu
Copy link
Author

nanjunyu commented Jul 8, 2024

@nanjunyu 请问最后有方案嘛, 实现改动行范围的增量检查?

实现了,自己做了个小改造,通过git 命令获取到改动涉及的行数,缓存起来。p3c返回全量检验结果中剔除非改动的行,只将改动涉及的行返回到控制台

@nanjunyu
Copy link
Author

nanjunyu commented Jul 8, 2024

最后有方案嘛, 实现改动行范围的增量检查?

实现了,自己做了个小改造,通过git 命令获取到改动涉及的行数,缓存起来。p3c返回全量检验结果中剔除非改动的行,只将改动涉及的行返回到控制台 @over-space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants