Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excavator: Upgrades Baseline to the latest version #1272

Merged
merged 3 commits into from
Oct 23, 2019

Conversation

svc-excavator-bot
Copy link
Collaborator

@svc-excavator-bot svc-excavator-bot commented Oct 6, 2019

excavator is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

Release Notes

2.8.0

Type Description Link
Fix PreferAssertj provides better replacements fixes palantir/gradle-baseline#850
Improvement Do not run error prone on any code in the build directory palantir/gradle-baseline#853

2.8.1

Type Description Link
Fix Fix hamcrest arrayContainingInAnyOrder conversion palantir/gradle-baseline#859

2.9.0

Type Description Link
Improvement StrictUnusedVariable can only be suppressed with _ prefix palantir/gradle-baseline#854
Improvement StrictUnusedVariable is now an error by default palantir/gradle-baseline#855
Fix The PreferAssertj refactoring will only be applied if you have explicitly opted in (e.g. using baselineErrorProne { patchChecks += 'PreferAssertj' } palantir/gradle-baseline#861

2.9.1

Type Description Link
Fix Error prone will correctly ignore all source files in the build directory and in any generated source directory palantir/gradle-baseline#864
Fix Ensure that StrictUnusedVariable correctly converts previously suppressed variables unused to _ palantir/gradle-baseline#865

2.9.2

Type Description Link
Fix When removing unused variables, StrictUnusedVariable will preserve side effects palantir/gradle-baseline#870

2.10.0

Type Description Link
Improvement A new checkJUnitDependencies task detects misconfigured JUnit dependencies which could result in some tests silently not running. palantir/gradle-baseline#837
Improvement Some AssertJ assertions can now be automatically replaced with more idiomatic ones using refaster. palantir/gradle-baseline#851
Fix PreferAssertj check avoids ambiguity in assertThat invocations palantir/gradle-baseline#874
Improvement Improve performannce of error prone PreferAssertj check palantir/gradle-baseline#875
Improvement StringBuilderConstantParameters suggested fix doesn't remove comments palantir/gradle-baseline#877

2.10.1

Type Description Link
Fix Allow junit4 dependencies to exist without junit4 tests palantir/gradle-baseline#880

2.11.0

Type Description Link
Improvement PreferAssertj supports migration of zero-delta floating point array asserts palantir/gradle-baseline#883

2.11.1

Type Description Link
Fix checkJunitDependencies only checks Java source palantir/gradle-baseline#885

2.11.2

Type Description Link
Fix AssertJ Refaster fixes use static assertThat imports palantir/gradle-baseline#887

2.12.0

Type Description Link
Improvement Disable UnusedVariable error prone rule by default palantir/gradle-baseline#888

2.13.0

Type Description Link
Improvement Refaster for AssertJ isZero/isNotZero/isOne and collections palantir/gradle-baseline#881
Improvement AssertJ refaster migrations support string descriptions palantir/gradle-baseline#891
Fix Certain error-prone checks are disabled in test code, and the presence of JUnit5's @TestTemplate annotation is now used to detect whether a class is test code. palantir/gradle-baseline#892
Fix BaselineFormat task exclude generated code on Windows palantir/gradle-baseline#896

2.14.0

Type Description Link
Improvement Refaster rules for AssertJ tests palantir/gradle-baseline#898
Improvement refaster replacement for assertj hasSize(foo.size) -> hasSameSizeAs palantir/gradle-baseline#900
Fix Keep spotless plugin from eagerly configuring all tasks diffplug/spotless#444
Fix Continue when RefasterRuleBuilderScanner throws palantir/gradle-baseline#904
Improvement Refaster now works on repos using Gradle 6.0 palantir/gradle-baseline#804, palantir/gradle-baseline#906

2.15.0

No documented user facing changes

2.16.0

Type Description Link
Improvement Rewrite ImmutableCollection#addAll to add for arrays palantir/gradle-baseline#743
Improvement Add refaster rule to simplify empty optional asserts palantir/gradle-baseline#911
Improvement Baseline now allows static imports of AssertJ and Mockito methods. palantir/gradle-baseline#915
Improvement Remove refaster AssertjIsOne rule. palantir/gradle-baseline#917
Improvement Add assertj refaster rules for map size asserts palantir/gradle-baseline#919
Improvement Added a Refaster rule to change isEqualTo checks into hasValue checks

2.17.0

Type Description Link
Improvement Implement AssertjCollectionHasSameSizeAsArray palantir/gradle-baseline#922
Improvement Implement assertj map refactors for containsKey and containsEntry palantir/gradle-baseline#925
Improvement Refaster assertj migrations support descriptions with format args palantir/gradle-baseline#926
Improvement Refaster out String.format from describedAs palantir/gradle-baseline#927

2.18.0

Type Description Link
Improvement Refaster rules to simplify negated boolean expressions and extract null checks. palantir/gradle-baseline#935
Improvement Refaster rules for checks that maps do not contain a specific key palantir/gradle-baseline#935
Improvement Refaster rule 'CollectionStreamForEach' palantir/gradle-baseline#942
Improvement ExecutorSubmitRunnableFutureIgnored as error prone ERROR palantir/gradle-baseline#943

2.19.0

Type Description Link
Improvement checkJUnitDependencies detects a possible misconfiguration with spock and JUnit5 which could lead to tests silently not running. palantir/gradle-baseline#951

2.20.0

Type Description Link
Improvement Use Mockito verifyNoInteractions over deprecated verifyZeroInteractions palantir/gradle-baseline#924
Improvement Errorprone rules for usage of Guava static factory methods palantir/gradle-baseline#941
Improvement Fix error-prone UnnecessaryParentheses by default palantir/gradle-baseline#952
Improvement Implement Error Prone ThrowError to discourage throwing Errors in production code
Errors are often handled poorly by libraries resulting in unexpected
behavior and resource leaks. It's not obvious that 'catch (Exception e)'
does not catch Error.
This check is intended to be advisory - it's fine to
@SuppressWarnings("ThrowError") in certain cases, but is usually not
recommended unless you are writing a testing library that throws
AssertionError.
palantir/gradle-baseline#957
Improvement Improve TestCheckUtils.isTestCode test detection palantir/gradle-baseline#958
Improvement Implement Error Prone Slf4jLevelCheck to validate that slf4j level checks agree with contained logging. palantir/gradle-baseline#960

2.20.1

Type Description Link
Fix Suppress error-prone PreferCollectionConstructors on jdk13 palantir/gradle-baseline#968

2.21.0

Type Description Link
Feature Users can opt-in to format their files using our fork of google-java-format (palantir-java-format) palantir/gradle-baseline#936

2.22.0

Automated release, no documented user facing changes

2.23.0

Type Description Link
Improvement Implement error prone ReverseDnsLookup for unexpected reverse dns lookups

Calling address.getHostName may result in a DNS lookup which is a network request,
making the invocation significantly more expensive than expected depending on the
environment.
This check is intended to be advisory - it's fine to
@SuppressWarnings("ReverseDnsLookup") in certain cases, but is usually not
recommended.
palantir/gradle-baseline#970

2.24.0

Type Description Link
Fix The deprecated verifyZeroInteractions now gets rewritten to verifyNoMoreInteractions, which has the same behaviour. palantir/gradle-baseline#975
Improvement ReadReturnValueIgnored: Check that read operation results are not ignored palantir/gradle-baseline#978
Improvement Stop migrating source sets to safe-logging, unless they already have the requisite library (com.palantir.safe-logging:preconditions). palantir/gradle-baseline#981
Improvement For users who opted into palantir-java-format, we now reflow strings and reorder imports. palantir/gradle-baseline#982

2.25.0

Type Description Link
Fix checkstyle Indentation rule is disabled when palantir-java-format is enabled palantir/gradle-baseline#987
Improvement Load palantir-java-format dynamically from the same configuration set up by com.palantir-java-format which is also used to determine the version used by IntelliJ. palantir/gradle-baseline#989

To enable or disable this check, please contact the maintainers of Excavator.

@svc-excavator-bot svc-excavator-bot requested a review from a team as a code owner October 6, 2019 07:17
@svc-excavator-bot svc-excavator-bot force-pushed the roomba/latest-baseline-oss branch 2 times, most recently from 210b289 to ec81568 Compare October 10, 2019 16:10
@svc-excavator-bot svc-excavator-bot force-pushed the roomba/latest-baseline-oss branch 6 times, most recently from 97bf55a to 4ebe12c Compare October 17, 2019 21:08
private static final Logger log = LoggerFactory.getLogger(AutoDeserializeTest.class);
static {
LoggerFactory.getLogger(AutoDeserializeTest.class);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should have an exception to the keep-side-effects rule that allows removing loggers completely

@bulldozer-bot bulldozer-bot bot merged commit 6a3643c into develop Oct 23, 2019
@bulldozer-bot bulldozer-bot bot deleted the roomba/latest-baseline-oss branch October 23, 2019 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants