openlibrary
openlibrary copied to clipboard
Fix/10982/add sql linter
Closes #10982 Feature-Adds a sql linter to pre-commit
Technical
Integrated sqlfluff as a pre-commit hook to lint SQL files.Testing
Create a temporary SQL file with a missing semicolon:
echo "SELECT 1" > test_fail.sql git add test_fail.sql git commit -m "Should fail" Expected Result: The commit is blocked with an error CV06 | Statements must end with a semi-colon.