Archived
- docs/coding-standards.md: Comprehensive Java coding standards - CLAUDE.md: AI assistant instructions for the project - .editorconfig: Editor configuration for consistent formatting - pom.xml: Updated with quality plugins (Checkstyle, SpotBugs, PMD, JaCoCo) - config/checkstyle/: Checkstyle configuration (Google Java Style based) - config/spotbugs/: SpotBugs exclusions - config/pmd/: PMD ruleset - .githooks/pre-commit: Pre-commit hook for local quality checks - .github/workflows/lint.yml: CI workflow for automated quality checks - docs/development.md: Updated for Java/Maven toolchain Quality enforcement: - Checkstyle runs on validate phase - SpotBugs and PMD run on verify phase - JaCoCo enforces 80% line coverage, 70% branch coverage - Pre-commit hook runs all checks before allowing commits - CI runs all checks on push and PR Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
50 lines
1.5 KiB
XML
50 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<FindBugsFilter
|
|
xmlns="https://github.com/spotbugs/filter/3.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">
|
|
|
|
<!-- Exclude test classes from certain checks -->
|
|
<Match>
|
|
<Source name="~.*Test\.java"/>
|
|
<Or>
|
|
<Bug pattern="DM_DEFAULT_ENCODING"/>
|
|
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
|
|
</Or>
|
|
</Match>
|
|
|
|
<!-- Exclude generated code -->
|
|
<Match>
|
|
<Source name="~.*[\\/]generated[\\/].*"/>
|
|
</Match>
|
|
|
|
<!-- Allow System.exit in Main class -->
|
|
<Match>
|
|
<Class name="com.samsonmedia.barn.Main"/>
|
|
<Bug pattern="DM_EXIT"/>
|
|
</Match>
|
|
|
|
<!-- Allow command execution in specific classes -->
|
|
<Match>
|
|
<Or>
|
|
<Class name="~.*ProcessExecutor.*"/>
|
|
<Class name="~.*CommandRunner.*"/>
|
|
</Or>
|
|
<Bug pattern="COMMAND_INJECTION"/>
|
|
</Match>
|
|
|
|
<!-- Exclude false positives for try-with-resources -->
|
|
<Match>
|
|
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
|
|
</Match>
|
|
|
|
<!-- Allow serialization without serialVersionUID for internal classes -->
|
|
<Match>
|
|
<Bug pattern="SE_NO_SERIALVERSIONID"/>
|
|
<Not>
|
|
<Class name="~.*Exception"/>
|
|
</Not>
|
|
</Match>
|
|
|
|
</FindBugsFilter>
|