Conversation
|
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? |
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 |
|
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? |
|
For enforcing a certain style, astyle might be a better alternative. |
No description provided.