Set up gradle and circleci so we can run tests (#6) · openjavaformat/open-java-format@79b5144 · GitHub
Skip to content

Commit 79b5144

Browse files
dansanduleacGitHub Enterprise
authored andcommitted
Set up gradle and circleci so we can run tests (#6)
Using gradle and tests wired up with CircleCI. Continue supporting GOOGLE style (indentMultiplier=1, maxLineLength=100) but make line length configurable and most tests except for the FormatterIntegrationTest continue to run against this one. Added a new style called PALANTIR (indentMultiplier=2, maxLineLength=120). Note: Only the `core` project has been converted for now. `idea_plugin` is already gradle, but didn't include it in the root build for now because it is not well behaved (tries to download IntelliJ in afterEvaluate!).
1 parent 9485401 commit 79b5144

32 files changed

Lines changed: 2082 additions & 55 deletions
Lines changed: 29 additions & 0 deletions

‎.baseline/checkstyle/checkstyle.xml‎

Lines changed: 482 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<!DOCTYPE suppressions PUBLIC
3+
"-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
4+
"https://checkstyle.org/dtds/suppressions_1_2.dtd">
5+
6+
<!-- IMPORTANT ECLIPSE NOTE: If you change this file, you must restart Eclipse
7+
for your changes to take effect in its Checkstyle integration. -->
8+
<suppressions>
9+
<!-- Suppress everything -->
10+
<suppress files="" checks="." />
11+
</suppressions>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(c) Copyright ${today.year} Palantir Technologies Inc. All rights reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
4+
<local-check-config name="Baseline" location="${configDir}/checkstyle/checkstyle.xml" type="external" description="">
5+
<additional-data name="protect-config-file" value="false"/>
6+
</local-check-config>
7+
<fileset name="all" enabled="true" check-config-name="Baseline" local="true">
8+
<file-match-pattern match-pattern="." include-pattern="false"/>
9+
<file-match-pattern match-pattern=".*\\.java" include-pattern="true"/>
10+
<file-match-pattern match-pattern=".*\\.cfg" include-pattern="true"/>
11+
<file-match-pattern match-pattern=".*\\.coffee" include-pattern="true"/>
12+
<file-match-pattern match-pattern=".*\\.erb" include-pattern="true"/>
13+
<file-match-pattern match-pattern=".*\\.groovy" include-pattern="true"/>
14+
<file-match-pattern match-pattern=".*\\.handlebars" include-pattern="true"/>
15+
<file-match-pattern match-pattern=".*\\.json" include-pattern="true"/>
16+
<file-match-pattern match-pattern=".*\\.less" include-pattern="true"/>
17+
<file-match-pattern match-pattern=".*\\.pl" include-pattern="true"/>
18+
<file-match-pattern match-pattern=".*\\.pp" include-pattern="true"/>
19+
<file-match-pattern match-pattern=".*\\.sh" include-pattern="true"/>
20+
<file-match-pattern match-pattern=".*\\.xml" include-pattern="true"/>
21+
<file-match-pattern match-pattern="src/test/resources/.*" include-pattern="false"/>
22+
</fileset>
23+
</fileset-config>

‎.baseline/eclipse/org.eclipse.jdt.core.prefs‎

Lines changed: 313 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 66 additions & 0 deletions

0 commit comments

Comments
 (0)