Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-4315

Enforce ErrorProne analysis in local-artifact-service project

Details

    Description

      Java ErrorProne static analysis was recently enabled in the Gradle build process, but only as warnings. ErrorProne errors are generally useful and easy to fix. Some work was done to make sdks-java-core ErrorProne-clean and add enforcement. This task is clean ErrorProne warnings and add enforcement in beam-local-artifact-service-java. Additional context discussed on the dev list.

      Fixing this issue will involve:

      1. Follow instructions in the Contribution Guide to set up a beam development environment.
      2. Run the following command to compile and run ErrorProne analysis on the project: ./gradlew :beam-local-artifact-service-java:assemble
      3. Fix each ErrorProne warning from the runners/local-artifact-service-java project.
      4. In runners/local-artifact-service-java/build.gradle, add failOnWarning: true to the call the applyJavaNature() (example).

      This starter issue is sponsored by swegner. Feel free to reach out with questions or code review:

      Attachments

        Activity

          People

            Unassigned Unassigned
            swegner Scott Wegner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: