-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We can auto generate the IDs from our enum. We already use the auto generated IDs for parsing from the configuration file, so this makes everything consistent. I ran into an issue where `fmt::Display` was being recursive which I fixed with 85f626a.
- Loading branch information
Showing
9 changed files
with
97 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "squawk" | ||
version = "0.13.1" | ||
version = "0.13.2" | ||
authors = ["Steve Dignam <[email protected]>"] | ||
edition = "2018" | ||
license = "GPL-3.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
linter/src/snapshots/squawk_linter__test_rules__rule_names_debug_snap.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
source: linter/src/lib.rs | ||
expression: rule_names | ||
--- | ||
[ | ||
"adding-field-with-default", | ||
"adding-foreign-key-constraint", | ||
"adding-not-nullable-field", | ||
"adding-serial-primary-key-field", | ||
"ban-char-field", | ||
"ban-drop-column", | ||
"ban-drop-database", | ||
"changing-column-type", | ||
"constraint-missing-not-valid", | ||
"disallowed-unique-constraint", | ||
"prefer-robust-stmts", | ||
"prefer-text-field", | ||
"renaming-column", | ||
"renaming-table", | ||
"require-concurrent-index-creation", | ||
"require-concurrent-index-deletion", | ||
] |
20 changes: 20 additions & 0 deletions
20
linter/src/snapshots/squawk_linter__test_rules__rule_names_display_snap.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
source: linter/src/lib.rs | ||
expression: "rule_names.join(\"\\n\")" | ||
--- | ||
adding-field-with-default | ||
adding-foreign-key-constraint | ||
adding-not-nullable-field | ||
adding-serial-primary-key-field | ||
ban-char-field | ||
ban-drop-column | ||
ban-drop-database | ||
changing-column-type | ||
constraint-missing-not-valid | ||
disallowed-unique-constraint | ||
prefer-robust-stmts | ||
prefer-text-field | ||
renaming-column | ||
renaming-table | ||
require-concurrent-index-creation | ||
require-concurrent-index-deletion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "squawk-cli", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "linter for PostgreSQL, focused on migrations", | ||
"repository": "[email protected]:sbdchd/squawk.git", | ||
"author": "Steve Dignam <[email protected]>", | ||
|