-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/fix typos in readme #7
Conversation
- Rename of action output methods. - Rework of get input logic to usage of constants.
Release notes:
|
src/filename_inspector.py
Outdated
set_action_output('violation-count', str(violation_count)) | ||
|
||
if verbose_logging: | ||
print(f'Total violations: {violation_count}') |
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.
What's the difference of print
and logging
?
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.
Print output is independent of logging settings.
What level would you propose?
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.
That's extra weird. There are good chances, that verbose set to true
will print out the same info twice.
My suggestion:
- treat
console
as console only output, but print there even if other option is used (and adjust descripton accordingly) - if
verbose
is false, print only the violations number, if true print all violations
Or use other logic. But this is IMHO wrong.
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.
Improved.
_
instead of-
._
too.Also closes #6