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

Add support for HPE Fortify code scanning during compilation #274

Merged
merged 1 commit into from
May 11, 2017

Conversation

eyalg1972
Copy link

We need to use HPE Fortify to scan the C/C++ code, this scanning is done during compilation by adding prefix - sourceanalyzer -b

The way I implemented it was to use the new attribute existence as a flag that we need to use the Fortify prefix

@@ -179,6 +179,8 @@ private void createLibrary(final Project antProject, final Library library)
if (getCpp() != null) {
final CompilerDef cpp = getCpp().getCompiler(Compiler.MAIN, null);
if (cpp != null) {
// Set FortifyID attribute
Copy link
Contributor

Choose a reason for hiding this comment

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

Please watch the whitespace. It does not match.

@@ -121,6 +121,16 @@
@Parameter
private Java java;

/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that this is not javadoc, but should be. And note that javadoc is HTML, so line breaks mean nothing without <p> or <br> tags. Best is to use the IDE to preview the final result.

@ctrueden
Copy link
Contributor

Thanks! I'm merging as is, and I'll do some minor cleanup on top of it.

In the future, please check the diff of each commit very carefully. The better and cleaner they look, the faster we can merge things, for several reasons.

@ctrueden ctrueden merged commit 13a927b into maven-nar:master May 11, 2017
@ctrueden
Copy link
Contributor

Cleaned up in a7cfe61 and 9884e30.

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