-
Notifications
You must be signed in to change notification settings - Fork 385
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
refactor plist to plaintext formatting (parse) #1334
Conversation
dec4be4
to
d290f48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment, rest looks good.
suppress_data = sp_handler.get_suppressed() | ||
if suppress_data: | ||
if self.suppress_handler: | ||
LOG.info("Writing source-code suppress at '{0}:{1}' to " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this output true? This should only be printed if --export-suppress
is given to parse
. What happens if a suppress file is given but we don't want to export into it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a suppress file is given than the report will be printed by parse only if it is not suppressed in the suppress file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that. What I meant is the log output here if it holds in execution. I feel this log shouldn't be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've got your point. I've checked again and removed the log output. It was printed even if the suppress information was not written into a suppress file.
cc8c1e3
to
7baae7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/user_guide.md
should be extended with the --skipfile
argument for parse
's documentation.
Otherwise OK.
Done. |
Plist parsing and formatting used by the old architecture is not the way it should be handled now. It was not flexible and it was hard to improve it. It should be easier to test and setup the output formatting after the changes. Skip lists were not supported by the parse command, this commit will add the skip files support for parse too.
Plist parsing and formatting used by the old architecture is not
the way it should be handled now. It was not flexible and it was hard
to improve it.
It should be easier to test and setup the output formatting after the
changes.
Skip lists were not supported by the parse command, this
commit will add the skip files support for parse too.