How thermaleagle/samples works
Purpose and Entry Points
This repository is a minimal Maven-based sample project, apparently intended to demonstrate static-analysis behavior, especially FindBugs exclusions. The practical entry points are the Groovy script and Java sample classes:
• sample-1/src/main/groovy/Drmon.groovy
• sample-1/src/main/java/experiments/samples/findBugsWillComplainForThisClass.java
• sample-1/src/main/java/experiments/samples/findBugsWillNotComplainForThisClass.java
Build and Runtime Boundary
sample-1/pom.xml defines the project’s Maven build, including the Java/Groovy compilation and any analysis-plugin integration. The repository does not expose a service, API, or application launcher; execution is likely through Maven goals or direct invocation of Drmon.groovy.
Static-Analysis Demonstration
The two Java classes form the core comparison boundary:
• sample-1/src/main/java/experiments/samples/findBugsWillComplainForThisClass.java
• sample-1/src/main/java/experiments/samples/findBugsWillNotComplainForThisClass.java
Their naming indicates one intentionally triggers a FindBugs finding while the other represents a suppressed or compliant counterpart. This makes analysis output, rather than runtime business behavior, the primary product of the sample.
FindBugs Exclusion Policy
sample-1/findbugs_exclude.xml is the policy boundary between findings that should be reported and findings intentionally excluded. The “will not complain” sample likely corresponds to a matching exclusion rule. Changes to this file directly alter static-analysis results without changing application code.
Groovy Sample Stage
sample-1/src/main/groovy/Drmon.groovy provides a separate Groovy source path within the same Maven module. It likely demonstrates mixed-language compilation or a small executable/script workload. Maven is the integration point that makes Java and Groovy artifacts part of one build.
Development Environment Metadata
Eclipse-specific files under sample-1/.settings/ encode local IDE compiler and Maven integration preferences:
• sample-1/.settings/org.eclipse.jdt.core.prefs
• sample-1/.settings/org.eclipse.m2e.core.prefs
These are not core runtime dependencies; the authoritative build boundary remains sample-1/pom.xml.
Main entry points: pom.xml Maven Build · findBugsWillComplainForThisClass.java Finding Sample · findBugsWillNotComplainForThisClass.java Excluded Sample · findbugs_exclude.xml FindBugs Exclusions
Components 7
sample-1 Maven Module
Mixed Java and Groovy static-analysis sample.
- Maven Build · Compiles Java and Groovy and integrates analysis.
sample-1/pom.xml
Sample Sources
- Drmon Script · Separate Groovy sample workload.
sample-1/src/main/groovy/Drmon.groovy - Finding Sample · Intentionally produces a FindBugs finding.
sample-1/src/main/java/experiments/samples/findBugsWillComplainForThisClass.java - Excluded Sample · Represents a finding excluded or otherwise not reported.
sample-1/src/main/java/experiments/samples/findBugsWillNotComplainForThisClass.java
Static Analysis
- FindBugs Exclusions · Rules that suppress selected findings.
sample-1/findbugs_exclude.xml - FindBugs Analysis · Produces the sample's primary observable output.
- Analysis Results · Reported findings after exclusion policy is applied.
Connections 8
- Maven Build → Drmon Script: compiles
- Maven Build → Finding Sample: compiles
- Maven Build → Excluded Sample: compiles
- Maven Build → FindBugs Analysis: runs
- Finding Sample → FindBugs Analysis: analyzes
- Excluded Sample → FindBugs Analysis: analyzes
- FindBugs Exclusions → FindBugs Analysis: filters
- FindBugs Analysis → Analysis Results: reports