* Implemented `-d`/`--diff` flag to print unified diffs. * Added `unifiedDiff` function for generating diffs. * Config discovery now merges fields from `.pgtidy.yaml`.
27 lines
840 B
YAML
27 lines
840 B
YAML
# PgTidy house style — all fields shown with their default values.
|
|
# Place as .pgtidy.yaml in your project root (or any parent directory).
|
|
# Any field you omit keeps its default.
|
|
|
|
# Indentation string for one level (two spaces).
|
|
indent: " "
|
|
|
|
# Line terminator written by the formatter.
|
|
newline: "\n"
|
|
|
|
# Casing for SQL keywords (SELECT, FROM, WHERE, …).
|
|
# upper | lower | preserve
|
|
keyword_case: upper
|
|
|
|
# Casing for unquoted identifiers (column names, variable names, …).
|
|
# upper | lower | preserve
|
|
ident_case: lower
|
|
|
|
# Casing for built-in type names (text, integer, boolean, …).
|
|
# upper | lower | preserve
|
|
type_case: lower
|
|
|
|
# Comma placement in multi-line parameter / column lists.
|
|
# leading → comma at the start of the continuation line (,col)
|
|
# trailing → comma at the end of the preceding line (col,)
|
|
commas: leading
|