- Added precommit hook definition (Thanks @PhilipTrauner!)
- Added
squabble-disable
configuration to disable all lint checks for a file.
- Per-file configuration is now done using
squabble-enable:rule
andsquabble-disable:rule
. The originalenable:rule
format will continue to be supported, but is deprecated.
- Fix crash when handling SQL files containing only comments.
- Prevent crash when running
RequireForeignKey
rule against aCREATE TABLE
statement with no columns defined. - Fix Emacs Flycheck integration documentation.
- Upgrade
pglast
to version1.4
.
- Fixed standard input reader to not print a stack trace on interrupt.
- Added
-x, --expanded
to show explanations of message codes after linting. - Added
DisallowNotIn
rule. - Added
DisallowPaddedCharType
rule. - Added
DisallowTimetzType
rule. - Added
DisallowTimestampPrecision
rule.
- Modified
-p, --preset
to allow multiple presets to be used at once. - Update packaging to run tests through
python setup.py test
.
- Small documentation fixes for rules.
- Added
DisallowForeignKey
rule.
- Allow rule descriptions to span multiple lines.
- Add
DisallowForeignKey
,RequireForeignKey
to"full"
preset.
- Fix
RequireColumns
to work with irregular casing.
- Added
RequireForeignKey
rule.
- Split
"postgres"
preset into"postgres"
and"postgres-zero-downtime"
. - Strip RST code directives from message explanations and rules.
- Sort API documentation based on file order rather than alphabetically.
- Support DOS
\r\n
line-endings for reporting issue location. - Fixed calls to logger to correctly report module.
- Added
-e, --explain
to print out detailed explanation of why a message was raised. - Added
-r, --reporter
to override reporter on command line. - Added support for reading from stdin.
- Added
full
preset. - Added
Severity
enum for LintIssues. - Added
sqlint
reporter for compatibility with tooling targeting sqlint. - Added
DisallowFloatTypes
rule. - Added user facing documentation for https://squabble.readthedocs.org
- Improved existing API documentation with type signatures and examples.
- Removed
BaseRule.MESSAGES
in favor ofsquabble.message.Message
.
- Initial release.