Uploaded image for project: 'Bahir (Retired)'
  1. Bahir (Retired)
  2. BAHIR-23

Build should fail on Checkstyle violation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Spark-2.0.0
    • Spark-2.0.0
    • Build
    • None

    Description

      Currently the maven build will fail for code style violations in Scala files but the build will succeed regardless of code style violations in Java files.

            <plugin>
              ...
              <artifactId>scalastyle-maven-plugin</artifactId>
              ...
              <configuration>
                ...
                <failOnViolation>true</failOnViolation>
                ...
              </configuration>
              ...
            </plugin>
            <plugin>
              ...
              <artifactId>maven-checkstyle-plugin</artifactId>
              ...
              <configuration>
                ...
                <failOnViolation>false</failOnViolation>
                ...
              </configuration>
              ...
            </plugin>
      

      As a consequence potential problems in the Java code may not get noticed.

      Attachments

        Activity

          People

            ckadner Christian Kadner
            ckadner Christian Kadner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified