-
Notifications
You must be signed in to change notification settings - Fork 601
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
添加clang-format文件 #2680
base: master
Are you sure you want to change the base?
添加clang-format文件 #2680
Conversation
What is this file for? |
这个是clang-format文件,用于进行代码格式化,统一风格。 风格可以改…… |
Something like eslint on C++? Plz make sure the code it lints compats with most code in this repo after running a lint, without making a huge change. |
不,它不是。 这个文件的代码风格与ygopro原风格不符,需要进一步磋商成统一风格。 |
Yeah I mean code formatting. ESLint is the code formatting tool in JavaScript / frontend community. Please use your tool to lint the repo, and submit all changes, making sure it does not change too much. |
It is a bit complicated, but adding linting tool and process is a huge change of our development, which is why I'm expecting to see all changes done by your linting tools in one single PR. In addition, you seems to be doing a lot of changes. For proper daily discussions could you send me an email to |
我只做了一些无关痛痒的小更改……
我主要是做残局的。 |
Those PRs involving code styles and adding a lint system, matters a lot in development process. Because if applied, other contributors would be expected to learn how to use it, and make it compat with this lint tool, just like how the above 3 PRs work. In addition, there are other related repos, such as server version https://github.com/mycard/ygopro/tree/server , should also be considered about how to fit in those code style changes. We expect contributors submitting bottom-level changes keep in touch with each other, to make dev process better and avoid conflict or communication errors. |
我qq是1185538857,以前网名是顽雨沉风。 |
https://clang.llvm.net.cn/docs/ClangFormatStyleOptions.html 这是文档
使用示例:
风格可以改……