Skip to content

Commit 247af37

Browse files
Excavator: Upgrades Baseline to the latest version
1 parent f975621 commit 247af37

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.baseline/checkstyle/checkstyle.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</module>
4444
<module name="LineLength"> <!-- Java Style Guide: No line-wrapping -->
4545
<property name="max" value="120"/>
46-
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
46+
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://|\{@link"/>
4747
</module>
4848
<module name="TreeWalker">
4949
<module name="SuppressionCommentFilter"/> <!-- baseline-gradle: README.md -->
@@ -402,7 +402,9 @@
402402
<property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
403403
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
404404
</module>
405-
<module name="CyclomaticComplexity"/> <!-- Java Coding Guidelines: Reduce Cyclomatic Complexity -->
405+
<module name="CyclomaticComplexity"> <!-- Java Coding Guidelines: Reduce Cyclomatic Complexity -->
406+
<property name="switchBlockAsSingleDecisionPoint" value="true"/>
407+
</module>
406408
<module name="DesignForExtension"> <!-- Java Coding Guidelines: Design for extension -->
407409
<property name="ignoredAnnotations" value="ParameterizedTest, Test, Before, BeforeEach, After, AfterEach, BeforeClass, BeforeAll, AfterClass, AfterAll"/>
408410
</module>

.baseline/idea/intellij-java-palantir-style.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@
4444
<package name="" withSubpackages="true" static="false" />
4545
</value>
4646
</option>
47+
<!-- Should be a superset of https://github.com/google/error-prone/blob/c481b3f9c2da112db36ccfcbf64e755261a127ab/core/src/main/java/com/google/errorprone/bugpatterns/BadImport.java#L63 -->
4748
<DO_NOT_IMPORT_INNER>
4849
<CLASS name="Builder" />
50+
<CLASS name="BuilderFactory" />
4951
<CLASS name="Callback" />
5052
<CLASS name="Class" />
5153
<CLASS name="Entry" />
@@ -54,6 +56,7 @@
5456
<CLASS name="Type" />
5557
<CLASS name="Key" />
5658
<CLASS name="Id" />
59+
<CLASS name="Identifier" />
5760
<CLASS name="Provider" />
5861
</DO_NOT_IMPORT_INNER>
5962
</GroovyCodeStyleSettings>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ buildscript {
2626
classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.11.0'
2727
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
2828
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.36.0'
29-
classpath 'com.palantir.baseline:gradle-baseline-java:4.59.0'
29+
classpath 'com.palantir.baseline:gradle-baseline-java:5.21.0'
3030
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.15.0'
3131
classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
3232
classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'

conjure-postman-core/src/main/java/com/palantir/conjure/postman/api/PostmanAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ default Optional<List<Map<String, String>>> bearer() {
4646
.put("key", "token")
4747
.put("value", AUTH_VARIABLE)
4848
.put("type", "string")
49-
.build()));
49+
.buildOrThrow()));
5050
}
5151

5252
static Builder builder() {

versions.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,4 @@ org.assertj:* = 3.23.1
1919
org.hamcrest:hamcrest-core = 2.2
2020
org.immutables:* = 2.8.8
2121
org.javassist:javassist = 3.22.0-GA
22-
org.mockito:mockito-core = 4.8.0
2322
org.slf4j:* = 1.7.36
24-
org.objenesis:objenesis = 3.3

0 commit comments

Comments
 (0)