Skip to content

Commit b38ee5a

Browse files
authored
Merge pull request #340 from baptistemesta/patch-1
fix documentation on sql formatter
2 parents 3c1741b + 5c04e4b commit b38ee5a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

plugin-gradle/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,24 @@ spotless {
290290
sql {
291291
// default value for target files
292292
target '**/*.sql'
293-
// configFile is optional, arguments available here: https://github.com/diffplug/spotless/blob/master/lib/src/main/java/com/diffplug/spotless/sql/DBeaverSQLFormatterStep.java
293+
// configFile is optional, arguments available here: https://github.com/diffplug/spotless/blob/master/lib/src/main/java/com/diffplug/spotless/sql/dbeaver/DBeaverSQLFormatterConfiguration.java
294294
dbeaver().configFile('dbeaver.props')
295295
}
296296
}
297297
```
298298

299+
Default configuration file:
300+
```properties
301+
# case of the keywords (UPPER, LOWER or ORIGINAL)
302+
sql.formatter.keyword.case=UPPER
303+
# Statement delimiter
304+
sql.formatter.statement.delimiter=;
305+
# Indentation style (space or tab)
306+
sql.formatter.indent.type=space
307+
# Number of identation characters
308+
sql.formatter.indent.size=4
309+
```
310+
299311
<a name="cpp"></a>
300312

301313
## Applying to C/C++ sources

0 commit comments

Comments
 (0)