Skip to content

Checkstyle and SpotBugs configured not to fail the build #245

@sfloess

Description

@sfloess

Both Checkstyle and SpotBugs are configured with fail-on-error disabled:

<!-- Checkstyle -->
<failsOnError>false</failsOnError>

<!-- SpotBugs -->
<failOnError>false</failOnError>

The quality gate workflow documentation states zero violations are required, but the build will not actually fail if violations are found. This means the quality gate is not enforced at build time.

Fix: Set both to true so the build breaks on violations:

<failsOnError>true</failsOnError>   <!-- Checkstyle -->
<failOnError>true</failOnError>     <!-- SpotBugs -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquality

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions