You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# L011 - We don't always alias tables with AS ("FROM table1 AS tb1" instead of "FROM table1 tb1"). Do for columns but not for tables.
16
-
# L014 - Unquoted identifiers (e.g. column names) will be mixed case so don't enforce case
17
-
# L015 - Sometimes clearer to include brackets for complex COUNT(DISTINCT) cases
18
-
# L016 - We allow longer lines as some of our queries are complex. Maybe should limit in future?
19
-
# L020 - Asks for unique table aliases meaning it complains if selecting from two 2021_07_01 tables as implicit alias is table name (not fully qualified) so same.
20
-
# L022 - CTEs may be chained and do not require a blank line separator, only the last one.
21
-
# L026 - BigQuery uses STRUCTS which can look like incorrect table references
22
-
# L027 - Asks for qualified columns for ambiguous ones, but we not qualify our columns, and they are not really ambiguous (or BigQuery would complain)
23
-
# L028 - Insists on references in column names even if not ambiguous. Bit OTT.
24
-
# L029 - Avoids keywords as identifiers but we use this a lot (e.g. AS count, AS max...etc.)
25
-
# L030 - Function names will be mixed case so don't enforce case
26
-
# L031 - Avoid aliases in from and join - why?
27
-
# L032 - Uses joins instead of USING - why?
28
-
# L034 - Insists on wildcards (*) in certain SELECT order - why?
29
-
# L035 - Do not use ELSE NULL as redundant. But it's clearer!?
30
-
# L036 - Select targets should be on new lines but sub clauses don't always obey this. Maybe revisit in future?
31
-
# L037 - if using DESC in one ORDER BY column, then insist on ASC/DESC for all.
32
-
# L042 - Use CTEs instead of subqueries. We don't use this consistently and big rewrite to do that.
33
-
# L043 - Use coalesce instead of case if you can. But it's clearer!?
34
-
# L051 - INNER JOIN must be fully qualified. Probably should use this but not our style.
35
-
# L060 - Use COALESCE instead of IFNULL or NVL. We think ISNULL is clearer.
36
-
# L071 - Turn off until https://github.com/sqlfluff/sqlfluff/issues/4188 is addressed
37
-
# The depth to recursively parse to (0 for unlimited)
38
-
recurse = 0
39
-
# Below controls SQLFluff output, see max_line_length for SQL output
40
-
output_line_length = 80
41
-
# Number of passes to run before admitting defeat
42
-
runaway_limit = 10
43
-
# Ignore errors by category (one or more of the following, separated by commas: lexing,linting,parsing,templating)
44
-
ignore = None
45
-
# Ignore linting errors found within sections of code coming directly from
46
-
# templated code (e.g. from within Jinja curly braces. Note that it does not
47
-
# ignore errors from literal code found within template loops.
48
-
ignore_templated_areas = True
49
-
# can either be autodetect or a valid encoding e.g. utf-8, utf-8-sig
50
-
encoding = autodetect
51
-
# Ignore inline overrides (e.g. to test if still required)
52
-
disable_noqa = False
53
-
# Comma separated list of file extensions to lint
54
-
# NB: This config will only apply in the root folder
55
-
sql_file_exts = .sql,.sql.j2,.dml,.ddl
56
-
# Allow fix to run on files, even if they contain parsing errors
57
-
# Note altering this is NOT RECOMMENDED as can corrupt SQL
58
-
fix_even_unparsable = False
59
-
# Very large files can make the parser effectively hang.
60
-
# This limit skips files over a certain character length
# AL01 - We don't always alias tables with AS ("FROM table1 AS tb1" instead of "FROM table1 tb1"). Do for columns but not for tables.
6
+
# AL04 - Asks for unique table aliases meaning it complains if selecting from two 2021_07_01 tables as implicit alias is table name (not fully qualified) so same.
7
+
# AL07 - Avoid aliases in from and join - why?
8
+
# AL09 - Allow self-aliasing, particularly for struct references
9
+
# AM03 - if using DESC in one ORDER BY column, then insist on ASC/DESC for all.
10
+
# AM05 - INNER JOIN must be fully qualified. Probably should use this but not our style.
11
+
# AM08 - CROSS JOIN detection. Doesn't work with UNNEST
12
+
# CP02 - Unquoted identifiers (e.g. column names) will be mixed case so don't enforce case
13
+
# CP03 - Function names will be mixed case so don't enforce case
14
+
# CV02 - Use COALESCE instead of IFNULL or NVL. We think ISNULL is clearer.
15
+
# CV12 - Doesn't work with UNNEST
16
+
# LT05 - We allow longer lines as some of our queries are complex. Maybe should limit in future?
17
+
# LT09 - Select targets should be on new lines but sub clauses don't always obey this. Maybe revisit in future?
18
+
# LT14 - We have some simple, single line joins
19
+
# RF01 - BigQuery uses STRUCTS which can look like incorrect table references
20
+
# RF02 - Asks for qualified columns for ambiguous ones, but we not qualify our columns, and they are not really ambiguous (or BigQuery would complain)
21
+
# RF03 - Insists on references in column names even if not ambiguous. Bit OTT.
22
+
# RF04 - Avoids keywords as identifiers but we use this a lot (e.g. AS count, AS max...etc.)
23
+
# ST01 - Do not use ELSE NULL as redundant. But it's clearer!?
24
+
# ST02 - Use coalesce instead of case if you can. But it's clearer!?
25
+
# ST05 - Use CTEs instead of subqueries. We don't use this consistently and big rewrite to do that.
26
+
# ST06 - Insists on wildcards (*) in certain SELECT order - why?
27
+
# ST07 - Uses joins instead of USING - why?
28
+
# ST08 - Sometimes clearer to include brackets for complex COUNT(DISTINCT) cases
29
+
# ST11 - Doesn't consider wildcards in SELECT. Issue: https://github.com/sqlfluff/sqlfluff/issues/6511
0 commit comments