-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.gosqlx.example.yml
More file actions
138 lines (119 loc) · 2.75 KB
/
.gosqlx.example.yml
File metadata and controls
138 lines (119 loc) · 2.75 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# GoSQLX Configuration File Example
# Copy this file to .gosqlx.yml and customize for your needs
#
# Configuration file precedence:
# 1. Current directory: .gosqlx.yml
# 2. Home directory: ~/.gosqlx.yml
# 3. System: /etc/gosqlx.yml
#
# CLI flags always override configuration file settings
# Format Configuration
# Controls SQL formatting behavior
format:
# Indentation size in spaces (0-8)
# Default: 2
indent: 2
# Uppercase SQL keywords (SELECT, FROM, WHERE, etc.)
# Default: true
uppercase_keywords: true
# Maximum line length for formatting
# Default: 80
max_line_length: 80
# Compact format (minimal whitespace)
# Default: false
compact: false
# Validate Configuration
# Controls SQL validation behavior
validate:
# SQL dialect: postgresql, mysql, sqlserver, oracle, sqlite, generic
# Default: postgresql
dialect: postgresql
# Enable strict validation mode (more rigorous checks)
# Default: false
strict_mode: false
# Recursively process directories
# Default: false
recursive: false
# File pattern for recursive processing
# Default: *.sql
pattern: "*.sql"
# Output Configuration
# Controls output formatting and verbosity
output:
# Output format: json, yaml, table, tree, auto
# Default: auto
format: auto
# Enable verbose output
# Default: false
verbose: false
# Analyze Configuration
# Controls SQL analysis behavior
analyze:
# Enable security vulnerability analysis
# Default: true
security: true
# Enable performance optimization analysis
# Default: true
performance: true
# Enable complexity metrics analysis
# Default: true
complexity: true
# Enable comprehensive analysis (all categories)
# Default: false
all: false
# Example Configurations for Different Use Cases:
# Development Configuration:
# format:
# indent: 2
# uppercase_keywords: true
# max_line_length: 100
# validate:
# dialect: postgresql
# strict_mode: false
# output:
# format: table
# verbose: true
# analyze:
# security: true
# performance: true
# complexity: true
# CI/CD Configuration:
# format:
# indent: 2
# uppercase_keywords: true
# max_line_length: 80
# validate:
# dialect: postgresql
# strict_mode: true
# output:
# format: json
# verbose: false
# analyze:
# all: true
# Compact Style Configuration:
# format:
# indent: 0
# uppercase_keywords: false
# max_line_length: 120
# compact: true
# validate:
# dialect: generic
# output:
# format: auto
# Enterprise Configuration (MySQL):
# format:
# indent: 4
# uppercase_keywords: true
# max_line_length: 120
# validate:
# dialect: mysql
# strict_mode: true
# recursive: true
# pattern: "*.mysql"
# output:
# format: json
# verbose: false
# analyze:
# security: true
# performance: true
# complexity: true