-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Recommend a linter for C++? #8
Comments
There are a couple issues here. First, there is the "styling" of code: spaces vs. tabs, placing of space characters, bracing styles, etc. Second, are static analysis tools.
|
This is definitely about (consistent) style (spaces, braces, that sort of thing), not static analysis. Static analysis is a delightful rabbit hole, though, and we're exploring the possibility of integrating some aspects of that into exercism (see exploration/discussion here: exercism/exercism#1607). |
OK, in the realm of styling, I know of tools that exist to reformat your C++ according to some style guide, but they don't give you feedback on how well you are doing at matching a particular style or even if your style is consistent throughout. I think what comes closest to the ruby example shown in pull request #1607 for C++ is |
I think warnings are more useful than transformations, except where there's a language-wide consensus (such as with Go - Go has both In this case I think that |
Yeah, Things get more interesting when you turn on style and performance warnings. Then you get things like preferring |
cool, it sounds like a good choice. |
How about clang-tidy? |
cppcheck is available on all platforms; there isn't an out-of-the-box ready experience for clang-tidy on Windows yet AFAIK. |
See exercism/docs#54 for details.
The text was updated successfully, but these errors were encountered: