Skip to content

[Java] ErrorProne Warnings to be considered as Errors #59

Open

Description

@vibhatha

Describe the enhancement requested

Even though we have integrated the ErrorProne module in each module, we still see iterative development cycle introduces more warnings, and to avoid this it would be better to error them so that in the development time these are properly tracked and addressed. This must be done for each module.

Component(s)

Java

Activity

  1. self-assigned this
    on Sep 4, 2024
  2. vibhatha commented on Sep 5, 2024

    @vibhatha
    ContributorAuthor

    @lidavidm looking into the available flags we do have the following https://errorprone.info/docs/flags

    For instance, the available flags don't seem to have something like an error warning, rather it has -XepAllErrorsAsWarnings. Not sure if we have an option the other way around? But we can do it manually for each category of warnings like -Xep:MissingOverride:ERROR. But this requires making a list of items that may not cover all the angles we hope for. Still needs further investigation...

  3. lidavidm commented on Sep 5, 2024

    @lidavidm
    Member

    Um, (1) warnings-as-errors is just a javac option (2) my original concern wasn't about the errorprone warnings, it was just about the regular javac deprecation warnings.

  4. vibhatha commented on Sep 5, 2024

    @vibhatha
    ContributorAuthor

    I see, I have misunderstood it. Either way, I will make the improvements on both fronts as required. And I will investigate about (1) and how to add that.

  5. transferred this issue fromapache/arrowon Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions