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
cmake
linting is not the same as the linting in the CI
#309
Comments
In what way are they different? Are the make version and directly called version picking up the same config ( |
That's a thought. I think the glob may also be different because |
There actually isn't a glob - it currently requires the file to be listed on the target in cmake. Yeah, if you add new header files, you have to add it in src/CMakeLists.txt for it to get picked up. I don't know, I'm open to this changing - we could definitely add a glob, and maybe remove the per source targets (currently we only run lints if a file has changed, which has a marginal incremental build performance benefit). I just prefer linting to happen as part of the build because otherwise it's easy to miss and you have to remember how to invoke it each time. |
I think I've probably missed adding a new header to the list, so that's what I ran into.
I think I'd prefer a glob as that would automatically catch everything. I like being able to type |
If I type
make lint
in a build directory, I get different output than if I callcpplint
directly. Not sure what's going on here.The text was updated successfully, but these errors were encountered: