Skip to content

[CALCITE-2269] Add Error Prone code style verification (do not merge, review-only)#2185

Closed
vlsi wants to merge 38 commits intoapache:masterfrom
vlsi:errorprone2
Closed

[CALCITE-2269] Add Error Prone code style verification (do not merge, review-only)#2185
vlsi wants to merge 38 commits intoapache:masterfrom
vlsi:errorprone2

Conversation

@vlsi
Copy link
Copy Markdown
Contributor

@vlsi vlsi commented Sep 30, 2020

This is like #2182 , however, add @Override is excluded.

See https://errorprone.info/

It allows to capture errors like mising switch case branches,
missing override, non-static inner class, etc

zabetak and others added 30 commits September 30, 2020 14:10
String inside fmpp's tdd(...) expression needs quoting
See https://errorprone.info/

It allows to capture errors like mising switch case branches,
missing override, non-static inner class, etc

The verification can be run locally via ./gradlew -PenableErrorprone classes
Note: Java 11+ is required
Type type field hides the same field in the superclass.
For now the warning is suppressed to avoid making incompatible changes.

see https://errorprone.info/bugpattern/HidingField
Note: the changes are mechanical.
The intention is to keep the previous behavior and prevent adding new
non exchaustive switch statements in the future.

See https://errorprone.info/bugpattern/MissingCasesInEnumSwitch
…in converters

The new code should not use java.util.Date class, however,
converter classes can't avoid it.
@vlsi vlsi changed the title [CALCITE-2269] Add Error Prone code style verification [CALCITE-2269] Add Error Prone code style verification (do not merge, review-only) Oct 1, 2020
@vlsi vlsi closed this Oct 6, 2020
@vlsi vlsi deleted the errorprone2 branch November 15, 2020 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants