Looks for critical TODOs - that is, instances of the TODO!
string - in source files.
steps:
- uses: giancosta86/aurora-github/actions/find-critical-todos@v8
with:
source-file-regex: ^\.\/(src|tests)\/.+\.(c|m)?(j|t)sx?$
Please, note: this action is automatically run by verify-rust-crate, verify-npm-package and verify-rust-wasm.
Name | Type | Description | Default value |
---|---|---|---|
source-file-regex |
string | The PCRE pattern of source file names, for the find command |
|
crash-on-found |
boolean | If true, exits with error when critical TODOs are found | true |
display-lines |
boolean | Display the lines with critical TODOs | true |
verbose |
boolean | Show details such as the filterable paths | false |
root-directory |
string | The root of the directory tree | . |
Please, note: source-file-regex
should be designed keeping in mind that it will be applied to a path always relative to root-directory
and always starting with ./
.
Name | Type | Description | Example |
---|---|---|---|
found |
boolean | true if at least one TODO! was found in some file, false otherwise |
false |