Skip to content

Releases: erik/squabble

v1.4.0

19 Feb 02:31
Compare
Choose a tag to compare

New

  • Added precommit hook definition (Thanks @PhilipTrauner!)
  • Added squabble-disable configuration to disable all lint checks for a file.

Changes

  • Per-file configuration is now done using squabble-enable:rule and squabble-disable:rule. The original enable:rule format will continue to be supported, but is deprecated.

v1.3.3

27 Aug 07:48
Compare
Choose a tag to compare

Fixes

  • Fix crash when handling SQL files containing only comments.

v1.3.1

15 May 07:18
Compare
Choose a tag to compare

Changes

  • Upgrade pglast to version 1.4.

Fixes

  • Fixed standard input reader to not print a stack trace on interrupt.

v1.3.0

10 May 22:38
Compare
Choose a tag to compare

New

  • Added -x, --expanded to show explanations of message codes after linting.
  • Added DisallowNotIn rule.
  • Added DisallowPaddedCharType rule.
  • Added DisallowTimetzType rule.
  • Added DisallowTimestampPrecision rule.

Changes

  • Modified -p, --preset to allow multiple presets to be used at once.
  • Update packaging to run tests through python setup.py test.

Fixes

  • Small documentation fixes for rules.

v1.2.0

15 Jan 05:13
Compare
Choose a tag to compare

New

  • Added DisallowForeignKey rule.

Changes

  • Allow rule descriptions to span multiple lines.
  • Add DisallowForeignKey, RequireForeignKey to "full" preset.

Fixes

  • Fix RequireColumns to work with irregular casing.

v1.1.0

11 Jan 17:19
Compare
Choose a tag to compare

New

  • Added RequireForeignKey rule.

Changes

  • 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.

Fixes

  • Support DOS \r\n line-endings for reporting issue location.
  • Fixed calls to logger to correctly report module.

v1.0.0

06 Jan 06:40
Compare
Choose a tag to compare
  • Removed BaseRule.MESSAGES in favor of squabble.message.Message
  • 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.
  • Improved existing API documentation with type signatures and examples.
  • Added user facing documentation for https://squabble.readthedocs.org
  • ... and lots of smaller changes, refactors, improvements.

v0.1.0

28 Dec 05:46
Compare
Choose a tag to compare
  • 🎉 initial release 🎉

Notes:

  • Implementation of BaseRule is subject to change.
  • More built in rules will need to be added