You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 1 sql script in my staging directory at the moment (I'm using squawk with pre-commit and I specified the git pre-commit hook to act on all scripts with in my fly away migration folder). If I add this script to my exclude paths or do the following:
excluded_paths = [
"*.sql"
]
I get the error: Failed to find files for provided patterns: ...
Doesn't it make more sense to exit 0 in this case since no .sql files should be listed/analyzed and therefore there is no error to be thrown?
"Failed to find files for provided patterns: {:?}",
The use case for this is: there is currently no way to override if I don't care about the violation. The docs say to usefail_on_violations = false. I add this property and I still getting a violation, causing squawk to fail and exit 1. This prevents me from making a commit since this is a pre-commit hook
The text was updated successfully, but these errors were encountered:
dhakshin32
changed the title
Failed to find files for provided patterns:
Failed to find files for provided patterns with pre-commit
Jun 28, 2024
I have 1 sql script in my staging directory at the moment (I'm using squawk with pre-commit and I specified the git pre-commit hook to act on all scripts with in my fly away migration folder). If I add this script to my exclude paths or do the following:
I get the error:
Failed to find files for provided patterns: ...
Doesn't it make more sense to exit 0 in this case since no .sql files should be listed/analyzed and therefore there is no error to be thrown?
squawk/cli/src/main.rs
Line 175 in ca1f346
The use case for this is: there is currently no way to override if I don't care about the violation. The docs say to use
fail_on_violations = false
. I add this property and I still getting a violation, causing squawk to fail and exit 1. This prevents me from making a commit since this is a pre-commit hookThe text was updated successfully, but these errors were encountered: