Skip to content

Commit 6f742f5

Browse files
authored
Formatting helpers (#15034)
* chore: add initial code formatting helper files * chore: add license headers to code style files * chore(codestyle): rm `spaces_around_brackets`
1 parent 008ee06 commit 6f742f5

File tree

4 files changed

+146
-1
lines changed

4 files changed

+146
-1
lines changed

.editorconfig

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
root = true
20+
21+
[*.{groovy,java}]
22+
indent_size = 4
23+
indent_style = space
24+
insert_final_newline = true
25+
spaces_around_operators = true
26+
wildcard_import_limit = 999

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
.gradle/
1414
.idea
1515
.idea/
16+
!.idea/codeStyles/
17+
!.idea/codeStyles/Project.xml
18+
!.idea/codeStyles/codeStyleConfig.xml
1619
.project
1720
.settings
1821
/*/*.iml
@@ -55,4 +58,4 @@ tmp/
5558
!grails-fields/src/main/groovy/org/grails/scaffolding/registry/output
5659
!etc/bin
5760
etc/bin/results
58-
.vscode/
61+
.vscode/

.idea/codeStyles/Project.xml

Lines changed: 91 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)