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

Added OptionalOrElseGetConstant error prone check. #1401

Merged
merged 34 commits into from
Jun 17, 2020
Merged

Added OptionalOrElseGetConstant error prone check. #1401

merged 34 commits into from
Jun 17, 2020

Conversation

aioobe
Copy link
Contributor

@aioobe aioobe commented Jun 11, 2020

Before this PR

Lots of Optional.orElseGet(() -> someConstant) floating around in the world.

After this PR

==COMMIT_MSG==
Recommends using optional.orElse(constant) instead of optional.orElseGet(() -> constant)
==COMMIT_MSG==

Possible downsides?

None

@policy-bot policy-bot bot requested a review from ferozco June 11, 2020 07:43
Co-authored-by: svc-excavator-bot <svc-excavator-bot@palantir.com>
Co-authored-by: svc-excavator-bot <svc-excavator-bot@palantir.com>
iamdanfox and others added 9 commits June 11, 2020 20:16
)

Running `./gradlew --write-locks` should be faster now, as it doesn't update your `baseline-class-uniqueness.lock` file implicitly anymore. To update this, you need to run `./gradlew checkClassUniqueness --write-locks`.
* Excavator: Upgrade dependencies

* correct task

Co-authored-by: svc-excavator-bot <svc-excavator-bot@palantir.com>
Co-authored-by: Robert Kruszewski <robertk@palantir.com>
Fix checkstyle config to conform to breaks made between 8.13 and 8.33
…/template.sh (#1384)

Co-authored-by: svc-excavator-bot <svc-excavator-bot@palantir.com>
Co-authored-by: forozco <forozco@palantir.com>
README.md Outdated Show resolved Hide resolved
aioobe and others added 5 commits June 12, 2020 15:51
Wrap method declarations on parameters, not on modifiers and return type.
Co-authored-by: svc-excavator-bot <svc-excavator-bot@palantir.com>
…1418)

Co-authored-by: svc-excavator-bot <svc-excavator-bot@palantir.com>
aioobe and others added 3 commits June 17, 2020 09:01
Adds the proper configuration files upon IntelliJ import of a gradle project for checkstyle and copyright.

This generates the following additional files:
- .idea/copyright/profiles_settings.xml
- an xml file under .idea/copyright/ per copyright file under .baseline/copyright
- .idea/checkstyle-idea.xml (and adds Checkstyle-IDEA to the external dependencies) if baseline-checkstyle is applied
- Either .idea/codeStyleSettings.xml or a .idea/codeStyles/ folder with the contents being copied from .baseline/idea
  - If .baseline/idea/codeStyles is present, it will copy its contents, otherwise, it will fall back to .baseline/idea/intellij-java-palantir-style.xml as currently
  - The fallback is using a legacy IntelliJ format and requires closing and reopening the project to be taken into account
@carterkozak
Copy link
Contributor

do we need to merge develop into this branch to pick up the unit-test-14 checks?

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.

10 participants