squawk-cli 2.19.0 → 2.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -179,6 +179,23 @@ You can also ignore multiple rules by making a comma seperated list:
179
179
  alter table t drop column c cascade;
180
180
  ```
181
181
 
182
+ To ignore a rule for the entire rule, use `squawk-ignore-file`:
183
+
184
+ ```sql
185
+ -- squawk-ignore-file ban-drop-column
186
+ alter table t drop column c cascade;
187
+ -- also ignored!
188
+ alter table t drop column d cascade;
189
+ ```
190
+
191
+ Or leave off the rule names to ignore all rules for the file
192
+
193
+ ```sql
194
+ -- squawk-ignore-file
195
+ alter table t drop column c cascade;
196
+ create table t (a int);
197
+ ```
198
+
182
199
  ### Configuration file
183
200
 
184
201
  Rules can also be disabled with a configuration file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squawk-cli",
3
- "version": "2.19.0",
3
+ "version": "2.20.0",
4
4
  "description": "linter for PostgreSQL, focused on migrations",
5
5
  "repository": "git@github.com:sbdchd/squawk.git",
6
6
  "author": "Squawk Team & Contributors",