-
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
56d7bbd
- Fixed wrong characters in README and in code. `_` instead of '-'.
miroslavpojer 611ae23
- Fixed wrong characters in README and in code. `_` instead of '-'.
miroslavpojer a45be8c
- README improvements.
miroslavpojer 16b84e0
- README improvements.
miroslavpojer fcecff7
- Fixed unit tests.
miroslavpojer d1e6021
Improvements of violations console printing. Based in discussion on PR.
miroslavpojer 977616c
Improvements from call.
miroslavpojer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,27 +36,31 @@ This action scans the specified `paths` for project files and checks if their fi | |
- **Required**: No | ||
- **Default**: `` | ||
|
||
### `report_format` | ||
### `report-format` | ||
- **Description**: Specifies the format of the output report. Options include console, csv, and json. | ||
- **Required**: No | ||
- **Default**: `console` | ||
- **Options**: | ||
- `console`: Prints the list of violated files to the console. | ||
- `csv`: Generates a CSV file with the report. No output prints to the console. Path to the report file is provided in the `report-path` output. | ||
- `json`: Generates a JSON file with the report. No output prints to the console. Path to the report file is provided in the `report-path` output. | ||
|
||
### `verbose_logging` | ||
### `verbose-logging` | ||
- **Description**: Enable verbose logging to provide detailed output during the action’s execution, aiding in troubleshooting and setup. | ||
- **Required**: No | ||
- **Default**: `false` | ||
|
||
### `fail_on_violation` | ||
### `fail-on-violation` | ||
- **Description**: Set to true to fail the action if any convention violations are detected. Set false to continue without failure. | ||
- **Required**: No | ||
- **Default**: `false` | ||
|
||
## Outputs | ||
### `violation_count` | ||
### `violation-count` | ||
- **Description**: Count of files not complying with the specified file name patterns. | ||
|
||
### `report_path` | ||
- **Description**: Path to the generated report file. | ||
### `report-path` | ||
- **Description**: Path to the generated report file. **Not used** if the `report-format` is set to `console`. | ||
|
||
## Usage Example | ||
### Default | ||
|
@@ -72,7 +76,7 @@ jobs: | |
id: scan-test-files | ||
uses: AbsaOSS/[email protected] | ||
with: | ||
name_patterns: '*UnitTest.*,*IntegrationTest.*' | ||
name-patterns: '*UnitTest.*,*IntegrationTest.*' | ||
paths: '**/src/test/java/**,**/src/test/scala/**' | ||
``` | ||
|
||
|
@@ -90,12 +94,12 @@ jobs: | |
id: scan-test-files | ||
uses: AbsaOSS/[email protected] | ||
with: | ||
name_patterns: '*UnitTest.*,*IntegrationTest.*' | ||
name-patterns: '*UnitTest.*,*IntegrationTest.*' | ||
paths: '**/src/test/java/**,**/src/test/scala/**' | ||
excludes: 'src/exclude_dir/*.py,tests/exclude_file.py' | ||
report_format: 'console' | ||
verbose_logging: 'false' | ||
fail_on_violation: 'false' | ||
report-format: 'console' | ||
verbose-logging: 'false' | ||
fail-on-violation: 'false' | ||
``` | ||
|
||
## How to build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
andlogging
?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:
console
as console only output, but print there even if other option is used (and adjust descripton accordingly)verbose
is false, print only the violations number, if true print all violationsOr 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.