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

将格式化与风格诊断分离 #14

Open
sumneko opened this issue Feb 17, 2022 · 0 comments
Open

将格式化与风格诊断分离 #14

sumneko opened this issue Feb 17, 2022 · 0 comments
Labels
diagnostic enhancement New feature or request

Comments

@sumneko
Copy link

sumneko commented Feb 17, 2022

实践中我们通常希望格式化总是输出出稳定的格式,但是手写代码允许有多种可用的格式,例如:

if 1
or 2 then
elseif 3 then
end
if     1
or     2 then
elseif 3 then
end

格式化的时候我希望总是可以输出成下面的格式,但是我手写时上面的格式也是允许的。
因此希望可以增加诊断专用的 allow 系列设置,这些设置仅仅是用于抑制风格诊断。

  • 格式化时:根据设置进行格式化,不管 allow 系列设置
  • 诊断时:先根据设置进行诊断,然后根据 allow 系列设置排除掉部分诊断
@CppCXY CppCXY added diagnostic enhancement New feature or request labels Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostic enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants