Uh oh!
There was an error while loading. Please reload this page.
Conversation
brarcher
commented
Oct 20, 2016
My understanding is that vera++ helps enforce style guidelines, correct? I like the idea. Can you help me by providing a description of the different arguments you propose? Are there any other arguments which would help enforce the style that are not being proposed? |
ghost
commented
Oct 20, 2016
But it works well for C. I did not know how to explain the options in the file for Travis CI. I explained the options I use in one of my project: cmd='vera++ --error'
cmd="$cmd -R F001"# source files should not use the '\r' (CR) character
cmd="$cmd -R F002 -P max-filename-length=40"
cmd="$cmd -R L004 -P max-line-length=90"
cmd="$cmd -R L005 -P max-consecutive-empty-lines=2"
cmd="$cmd -R L006 -P max-file-length=700"
cmd="$cmd -R T001"# one-line comments should not have forced continuation
cmd="$cmd -R T004"# some keywords should be immediately followed by a colon
cmd="$cmd -R T005"# break and continue followed by a semicolon
cmd="$cmd -R T007"# semicolons not isolated by spaces or comments
cmd="$cmd -R T009"# ", " is right and " ," is wrong
cmd="$cmd -R T019"# control structures with complete curly-braced blockThat is the documentation for the options: https://bitbucket.org/verateam/vera/wiki/Rules |
brarcher
commented
Dec 12, 2016
It has been awhile, but when this change was attempted Travis CI could not find the vera++ command: Are you interested in investigating this further? Or, if not, would you like to contribute the C changes you have to Check without the vera++ support? |
mikkoi
commented
Sep 23, 2019
For enforcing a certain style, astyle might be a better alternative. |
No description provided.