This repository has been archived on 2026-10-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
barn/config/spotbugs/exclude.xml
T
Daniel SamsonandClaude Opus 4.5 d0627a8ee6 revert: undo SpotBugs and PMD exclusion changes
Reverting the broad exclusions added in the previous commits.
Will fix actual code issues instead of suppressing warnings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 02:02:27 +00:00

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>