-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed wrong characters in README and in code. `_` instead of '-'. - README improvements.
- Loading branch information
1 parent
6016e61
commit 61c9cc9
Showing
4 changed files
with
61 additions
and
49 deletions.
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ The **Filename Inspector** GitHub Action is designed to ensure naming convention | |
This action scans the specified `paths` for project files and checks if their file names fit the `name_patterns.` It reports the count of files not meeting the naming conventions, with options to fail the action if violations are found. | ||
|
||
## Inputs | ||
### `name_patterns` | ||
### `name-patterns` | ||
- **Description**: List of file name [glob](https://en.wikipedia.org/wiki/Glob_(programming)) patterns that project files should have, separated by commas. | ||
- **Required**: Yes | ||
- **Example**: `*UnitTest.*,*IntegrationTest.*` | ||
|
@@ -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 printout of violated files to the console, unless verbose is enabled. Path to the report file is provided in the `report-path` output. | ||
- `json`: Generates a JSON file with the report. No printout of violated files to the console, unless verbose is enabled. 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