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

formatters:chore - normalize not found files warn message #1023

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

matheusalcantarazup
Copy link
Contributor

@matheusalcantarazup matheusalcantarazup commented Mar 10, 2022

Previously the warning messages of files that was not found to execute
an analysis was different between formatters, and also the prefix
{HORUSEC_CLI} was being added on the middle of the message and not the
start.

This commit normalize these messages to have the same content for all
formatters and the {HORUSEC_CLI} prefix was fixed by adding on the start
of the message like all other log messages. A strings.ReplaceAll was
also added to remove the ; suffix on these warning messages since
the commit 345c748 change these messages from errors to warnings (
strings.ReplaceAll already exists to remove ;from error messages).

The warn message of gemfile.lock file not found was removed since it
was not being used by any formatter.

Previously the warning messages of files that was not found to execute
an analysis was different between formatters, and also the prefix
{HORUSEC_CLI} was being added on the middle of the message and not the
start.

This commit normalize these messages to have the same content for all
formatters and the {HORUSEC_CLI} prefix was fixed by adding on the start
of the message like all other log messages. A strings.ReplaceAll was
also added to remove the `;` suffix on these warning messages since
the commit 345c748 change these messages from errors to warnings (
strings.ReplaceAll already exists to remove `;`from error messages).

The warn message of gemfile.lock file not found was removed since it
was not being used by any formatter.

Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
@nathanmartinszup nathanmartinszup merged commit d1be5f9 into main Mar 10, 2022
@nathanmartinszup nathanmartinszup deleted the improve-warn-messages branch March 10, 2022 13:48
nathanmartinszup pushed a commit that referenced this pull request Mar 10, 2022
Previously the warning messages of files that was not found to execute
an analysis was different between formatters, and also the prefix
{HORUSEC_CLI} was being added on the middle of the message and not the
start.

This commit normalize these messages to have the same content for all
formatters and the {HORUSEC_CLI} prefix was fixed by adding on the start
of the message like all other log messages. A strings.ReplaceAll was
also added to remove the `;` suffix on these warning messages since
the commit 345c748 change these messages from errors to warnings (
strings.ReplaceAll already exists to remove `;`from error messages).

The warn message of gemfile.lock file not found was removed since it
was not being used by any formatter.

Signed-off-by: Matheus Alcantara <matheus.alcantara@zup.com.br>
(cherry picked from commit d1be5f9)
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.

3 participants