Skip to content

Fix: code-related vera++ rules should not be enforced in comments #973

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

Merged

Conversation

akosthekiss
Copy link
Member

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu

@akosthekiss akosthekiss added bug Undesired behaviour style Related to coding style tools Related to the tooling scripts labels Mar 19, 2016
@akosthekiss akosthekiss force-pushed the fix-vera-rules-comments branch from db48de3 to 19899a4 Compare March 19, 2016 00:30
@zherczeg
Copy link
Member

Thank you for fixing this. Could you add a test as well which proves that non-comments checks are not broken?

@akosthekiss
Copy link
Member Author

AFAIK we have no automated testing facility for styles, do we? I've tried the following manually: before and after applying the patch, I've tweaked main-mcu.c (any other source file would have done it) and added the following lines:

/* ( sigh *sigh* sigh ) */
char* p = NULL;
size_t s = sizeof (int );

Then I ran make check-vera. Without the patch, I got 4 errors (even within the comment), with the patch the remaining 2 errors come from code only, not from the comment. So, code is correctly checked still but comments are not checked anymore.

@akosthekiss akosthekiss force-pushed the fix-vera-rules-comments branch from 19899a4 to 89b50c8 Compare March 20, 2016 13:11
@zherczeg
Copy link
Member

I see you updated the patch, but it seems a squash was done, so I don't see what issue turned up. Anyway, similar to the fdlibm unittests it would be good at some point to have some vera++ tests since now we have a lot of changes there. I worry that we accidentally broke the whole thing and no issues will be reported anymore. That can be done in another patch.

LGTM

@akosthekiss
Copy link
Member Author

There was no issue, the patch has not been changed, just rebased to master, since it moved forward a bit since the pull request has been opened.

@LaszloLango
Copy link
Contributor

LGTM

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
@akosthekiss akosthekiss force-pushed the fix-vera-rules-comments branch from 89b50c8 to 48dca0a Compare March 21, 2016 07:52
@akosthekiss akosthekiss merged commit 48dca0a into jerryscript-project:master Mar 21, 2016
@akosthekiss akosthekiss deleted the fix-vera-rules-comments branch March 21, 2016 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour style Related to coding style tools Related to the tooling scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants