Skip to content
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

Added constexpr check to magic number checker. #606

Merged
merged 2 commits into from
Aug 28, 2015
Merged

Added constexpr check to magic number checker. #606

merged 2 commits into from
Aug 28, 2015

Conversation

jens-auer
Copy link

Added constexpr check to MagicNumberCheck to not report violations on constexpr definitions.

@jens-auer
Copy link
Author

Could somebody provide some detail why the build fails? The log just says "Couldn't start SonarQube", which is not very helpful. I would fix the issue, but without any information this will be hard.

@@ -43,13 +45,19 @@ int someData[] = {

static const int i1 = 10; // Compliant
int i2 = 11; // Non-Compliant
constexpr int compliant1 = 10;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can add //compliant -or- // non-compliant also to your new lines?

@guwirth
Copy link
Collaborator

guwirth commented Aug 27, 2015

Think this was an Travis CI problem. We had this also in the past.
Just make a change rebase, squash and try again.

@jens-auer
Copy link
Author

Hi,

I've added the Compliant comments to the cpp test file. The travis also passes now.

@guwirth guwirth added this to the M 0.9.4 milestone Aug 28, 2015
guwirth added a commit that referenced this pull request Aug 28, 2015
Added constexpr check to magic number checker.
@guwirth guwirth merged commit 8deba87 into SonarOpenCommunity:master Aug 28, 2015
@guwirth guwirth mentioned this pull request Oct 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants