# thermaleagle/samples architecture

> Architecture diagram of the GitHub repository thermaleagle/samples, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thermaleagle/samples
- Repository: https://github.com/thermaleagle/samples

## Overview

#### 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: [`sample-1/pom.xml`](https://github.com/thermaleagle/samples/blob/master/sample-1/pom.xml) (Maven Build), [`sample-1/src/main/java/experiments/samples/findBugsWillComplainForThisClass.java`](https://github.com/thermaleagle/samples/blob/master/sample-1/src/main/java/experiments/samples/findBugsWillComplainForThisClass.java) (Finding Sample), [`sample-1/src/main/java/experiments/samples/findBugsWillNotComplainForThisClass.java`](https://github.com/thermaleagle/samples/blob/master/sample-1/src/main/java/experiments/samples/findBugsWillNotComplainForThisClass.java) (Excluded Sample), [`sample-1/findbugs_exclude.xml`](https://github.com/thermaleagle/samples/blob/master/sample-1/findbugs_exclude.xml) (FindBugs Exclusions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_module["sample-1 Maven Module"]
  node_maven["Maven Build<br/>Maven project<br/>[pom.xml]"]
end

subgraph group_sources["Sample Sources"]
  node_groovy["Drmon Script<br/>Groovy script<br/>[Drmon.groovy]"]
  node_reported["Finding Sample<br/>Java sample"]
  node_excluded["Excluded Sample<br/>Java sample"]
end

subgraph group_analysis["Static Analysis"]
  node_exclusions["FindBugs Exclusions<br/>analysis policy"]
  node_findbugs{{"FindBugs Analysis<br/>static-analysis stage"}}
  node_findings["Analysis Results<br/>build output"]
end

node_maven -->|"compiles"| node_groovy
node_maven -->|"compiles"| node_reported
node_maven -->|"compiles"| node_excluded
node_maven -->|"runs"| node_findbugs
node_reported -->|"analyzes"| node_findbugs
node_excluded -->|"analyzes"| node_findbugs
node_exclusions -->|"filters"| node_findbugs
node_findbugs -->|"reports"| node_findings

click node_maven "https://github.com/thermaleagle/samples/blob/master/sample-1/pom.xml"
click node_groovy "https://github.com/thermaleagle/samples/blob/master/sample-1/src/main/groovy/Drmon.groovy"
click node_reported "https://github.com/thermaleagle/samples/blob/master/sample-1/src/main/java/experiments/samples/findBugsWillComplainForThisClass.java"
click node_excluded "https://github.com/thermaleagle/samples/blob/master/sample-1/src/main/java/experiments/samples/findBugsWillNotComplainForThisClass.java"
click node_exclusions "https://github.com/thermaleagle/samples/blob/master/sample-1/findbugs_exclude.xml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_maven toneBlue
class node_groovy,node_reported,node_excluded toneAmber
class node_exclusions,node_findbugs,node_findings toneMint
```

## Components

### sample-1 Maven Module

Mixed Java and Groovy static-analysis sample.

- [Maven Build](https://github.com/thermaleagle/samples/blob/master/sample-1/pom.xml): Maven project · Compiles Java and Groovy and integrates analysis. · `sample-1/pom.xml`

### Sample Sources

- [Drmon Script](https://github.com/thermaleagle/samples/blob/master/sample-1/src/main/groovy/Drmon.groovy): Groovy script · Separate Groovy sample workload. · `sample-1/src/main/groovy/Drmon.groovy`
- [Finding Sample](https://github.com/thermaleagle/samples/blob/master/sample-1/src/main/java/experiments/samples/findBugsWillComplainForThisClass.java): Java sample · Intentionally produces a FindBugs finding. · `sample-1/src/main/java/experiments/samples/findBugsWillComplainForThisClass.java`
- [Excluded Sample](https://github.com/thermaleagle/samples/blob/master/sample-1/src/main/java/experiments/samples/findBugsWillNotComplainForThisClass.java): Java sample · Represents a finding excluded or otherwise not reported. · `sample-1/src/main/java/experiments/samples/findBugsWillNotComplainForThisClass.java`

### Static Analysis

- [FindBugs Exclusions](https://github.com/thermaleagle/samples/blob/master/sample-1/findbugs_exclude.xml): analysis policy · Rules that suppress selected findings. · `sample-1/findbugs_exclude.xml`
- **FindBugs Analysis**: static-analysis stage · Produces the sample's primary observable output.
- **Analysis Results**: build output · Reported findings after exclusion policy is applied.

## Connections

- 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
