Skip to content

Conversation

@tkruse
Copy link
Contributor

@tkruse tkruse commented Apr 24, 2016

Hi,

this PR will split the core guidelines files into snippets, to be able to run further tools on these snippets to ensure quality.

As a first step, I added a cpplint to this PR, which travis will perform.
cpplint originates at Google (https://github.com/google/styleguide) but is not really maintained there anymore. It's a very bad linter based on regular expressions (meaning several false positives and negatives can easily be produced forcefully), a very far shot from Facebooks Infer. But it's small and lightweight, and get's things right 90% of the time.

Anyway, I have been using it in the past to make PRs to improve code style here, and I think by now it should be possible to include it in the travis build. It should fail for this PR right now, because of the latest code example additions, but that suits me fine, that way you can judge whether you'd lke to have such a tool in the Pull request validation or not.

To run locally, the only dependency it adds to running make is to have a python installed (2 or 3).

@AndrewPardoe AndrewPardoe merged commit 534dd00 into isocpp:master Apr 24, 2016
@tkruse tkruse deleted the add-cpplint branch April 24, 2016 20:33
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

Successfully merging this pull request may close these issues.

2 participants