-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.gosqlx.yml
More file actions
44 lines (36 loc) · 1.14 KB
/
.gosqlx.yml
File metadata and controls
44 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# GoSQLX Configuration Example
# Place this file in your project root as .gosqlx.yml
# SQL dialect (auto-detect if not specified)
# Options: postgresql, mysql, sqlserver, oracle, sqlite
dialect: postgresql
# Linting rules
lint:
# Enable/disable specific rule categories
rules:
- L007 # Keyword Case — enforce uppercase SQL keywords
- L001 # Trailing Whitespace — no trailing whitespace
- L002 # Mixed Indentation — consistent indentation
- L006 # No SELECT * — discourage SELECT *
- L009 # Aliasing Consistency — require table aliases in JOINs
# Maximum line length (0 = unlimited)
max-line-length: 120
# Severity threshold: error, warning, info
severity: warning
# Auto-fix violations where possible
auto-fix: false
# Validation settings
validate:
# Strict mode: additional syntax checks
strict: false
# Fail on first error or collect all
fail-fast: false
# File patterns
files:
# Include patterns
include:
- "**/*.sql"
# Exclude patterns
exclude:
- "**/vendor/**"
- "**/node_modules/**"
- "**/testdata/**"