From 59955f81df11aed63d2c01ef866f2c5fc33e0e0d Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Fri, 16 Apr 2021 13:42:57 +0100 Subject: [PATCH] Excavator: Upgrades Baseline to the latest version (#201) * Excavator: Upgrades Baseline to the latest version * Ensure root project name is set * More progress * Fix immutables * Remove dropwizard 0.x stuff * errorProneApply * spotless * errorprone for tests too * Add generated changelog entries * Create baseline-class-uniqueness.lock * Remove unnecessary baseline applications * Update baseline config * checkstyle * Check unused constraints Co-authored-by: Callum Rogers --- .../checkstyle/checkstyle-suppressions.xml | 14 +- .baseline/checkstyle/checkstyle.xml | 133 ++++++++----- .baseline/copyright/999_palantir.txt | 1 + .../dotfile.settings/org.eclipse.jdt.ui.prefs | 4 +- .../idea/intellij-java-palantir-style.xml | 46 ++++- CHANGELOG | 0 build.gradle | 43 +---- changelog/@unreleased/pr-201.v2.yml | 5 + .../baseline-class-uniqueness.lock | 11 ++ .../build.gradle | 12 +- .../crypto/EncryptConfigValueCommand.java | 23 +-- .../crypto/EncryptedConfigValueBundle.java | 2 +- .../config/crypto/GenerateKeyCommand.java | 23 +-- .../crypto/VariableSubstitutionTest.java | 2 +- encrypted-config-value-bundle/build.gradle | 16 -- .../ConfigurationDecryptionException.java | 28 --- .../crypto/EncryptConfigValueCommand.java | 64 ------ .../crypto/EncryptedConfigValueBundle.java | 46 ----- .../config/crypto/GenerateKeyCommand.java | 70 ------- .../SubstitutingConfigurationFactory.java | 107 ---------- .../crypto/EncryptConfigValueCommandTest.java | 96 --------- .../config/crypto/GenerateKeyCommandTest.java | 70 ------- .../SubstitutingConfigurationFactoryTest.java | 86 --------- .../crypto/VariableSubstitutionTest.java | 70 ------- .../jackson/JsonNodeStringReplacerTest.java | 182 ------------------ .../palantir/config/crypto/util/Person.java | 36 ---- .../config/crypto/util/TestConfig.java | 76 -------- .../src/test/resources/test.key | 1 - .../src/test/resources/testConfig.yml | 13 -- .../test/resources/testConfigWithError.yml | 13 -- .../algorithm/rsa/RsaOaepEncrypter.java | 2 +- .../palantir/config/crypto/AlgorithmTest.java | 2 +- gradle/immutables-processors.gradle | 4 +- settings.gradle | 3 +- version.props | 22 --- versions.lock | 98 ++++++++++ versions.props | 13 ++ 37 files changed, 297 insertions(+), 1140 deletions(-) create mode 100644 .baseline/copyright/999_palantir.txt delete mode 100644 CHANGELOG create mode 100644 changelog/@unreleased/pr-201.v2.yml create mode 100644 encrypted-config-value-bundle-dropwizard1/baseline-class-uniqueness.lock delete mode 100644 encrypted-config-value-bundle/build.gradle delete mode 100644 encrypted-config-value-bundle/src/main/java/com/palantir/config/crypto/ConfigurationDecryptionException.java delete mode 100644 encrypted-config-value-bundle/src/main/java/com/palantir/config/crypto/EncryptConfigValueCommand.java delete mode 100644 encrypted-config-value-bundle/src/main/java/com/palantir/config/crypto/EncryptedConfigValueBundle.java delete mode 100644 encrypted-config-value-bundle/src/main/java/com/palantir/config/crypto/GenerateKeyCommand.java delete mode 100644 encrypted-config-value-bundle/src/main/java/com/palantir/config/crypto/SubstitutingConfigurationFactory.java delete mode 100644 encrypted-config-value-bundle/src/test/java/com/palantir/config/crypto/EncryptConfigValueCommandTest.java delete mode 100644 encrypted-config-value-bundle/src/test/java/com/palantir/config/crypto/GenerateKeyCommandTest.java delete mode 100644 encrypted-config-value-bundle/src/test/java/com/palantir/config/crypto/SubstitutingConfigurationFactoryTest.java delete mode 100644 encrypted-config-value-bundle/src/test/java/com/palantir/config/crypto/VariableSubstitutionTest.java delete mode 100644 encrypted-config-value-bundle/src/test/java/com/palantir/config/crypto/jackson/JsonNodeStringReplacerTest.java delete mode 100644 encrypted-config-value-bundle/src/test/java/com/palantir/config/crypto/util/Person.java delete mode 100644 encrypted-config-value-bundle/src/test/java/com/palantir/config/crypto/util/TestConfig.java delete mode 100644 encrypted-config-value-bundle/src/test/resources/test.key delete mode 100644 encrypted-config-value-bundle/src/test/resources/testConfig.yml delete mode 100644 encrypted-config-value-bundle/src/test/resources/testConfigWithError.yml delete mode 100644 version.props create mode 100644 versions.lock create mode 100644 versions.props diff --git a/.baseline/checkstyle/checkstyle-suppressions.xml b/.baseline/checkstyle/checkstyle-suppressions.xml index 5b9a462f..c0f855b1 100644 --- a/.baseline/checkstyle/checkstyle-suppressions.xml +++ b/.baseline/checkstyle/checkstyle-suppressions.xml @@ -1,8 +1,7 @@ - + "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN" + "https://checkstyle.org/dtds/suppressions_1_2.dtd"> @@ -12,6 +11,11 @@ + + + + + @@ -21,7 +25,5 @@ - - - + diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml index 0000e6bf..af0eb264 100644 --- a/.baseline/checkstyle/checkstyle.xml +++ b/.baseline/checkstyle/checkstyle.xml @@ -1,7 +1,7 @@ + "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" + "https://checkstyle.org/dtds/configuration_1_3.dtd"> - - - - - - - - - @@ -40,21 +31,33 @@ - + + + + + + - - - - - + + + + + + + + + + + + @@ -78,12 +81,7 @@ - + @@ -105,8 +103,6 @@ - - @@ -123,10 +119,30 @@ + + + + + - + + + + + + + + + + + + + + + + @@ -136,9 +152,14 @@ + + + + + @@ -155,11 +176,17 @@ - + + + + + + + @@ -167,13 +194,7 @@ - - - - - - - + @@ -257,6 +278,11 @@ + + + + + @@ -307,25 +333,34 @@ + + + + + + + + + + + + - + - - - - - + + @@ -333,11 +368,11 @@ - + - + @@ -355,12 +390,11 @@ - + - @@ -372,6 +406,7 @@ + @@ -384,15 +419,14 @@ - + + + - - - @@ -416,10 +450,9 @@ - + - diff --git a/.baseline/copyright/999_palantir.txt b/.baseline/copyright/999_palantir.txt new file mode 100644 index 00000000..2f090b19 --- /dev/null +++ b/.baseline/copyright/999_palantir.txt @@ -0,0 +1 @@ +(c) Copyright ${today.year} Palantir Technologies Inc. All rights reserved. diff --git a/.baseline/eclipse/static/dotfile.settings/org.eclipse.jdt.ui.prefs b/.baseline/eclipse/static/dotfile.settings/org.eclipse.jdt.ui.prefs index f2990d96..cd9ac9c7 100644 --- a/.baseline/eclipse/static/dotfile.settings/org.eclipse.jdt.ui.prefs +++ b/.baseline/eclipse/static/dotfile.settings/org.eclipse.jdt.ui.prefs @@ -8,9 +8,9 @@ org.eclipse.jdt.ui.ignorelowercasenames=true org.eclipse.jdt.ui.importorder=; org.eclipse.jdt.ui.javadoc=false org.eclipse.jdt.ui.keywordthis=false -org.eclipse.jdt.ui.ondemandthreshold=99 +org.eclipse.jdt.ui.ondemandthreshold=999 org.eclipse.jdt.ui.overrideannotation=true -org.eclipse.jdt.ui.staticondemandthreshold=99 +org.eclipse.jdt.ui.staticondemandthreshold=999 org.eclipse.jdt.ui.text.custom_code_templates=