Skip to content

Add Brigade to the oss-check repositories - #6866

Merged
SimplyDanny merged 1 commit into
realm:mainfrom
Brett-Best:oss-check-brigade
Aug 8, 2026
Merged

SimplyDanny merged 1 commit into
realm:mainfrom
Brett-Best:oss-check-brigade

Conversation

@Brett-Best

Copy link
Copy Markdown
Contributor

Adds one repository to the oss-check set.

Disclosure: I wrote this repository. It is public, and it exists to stress the linter rather than to be an app, so it is a benchmark input rather than a real-world sample. Happy to drop it if you would rather the set stay entirely third-party applications.

Why this shape

The current set is made of real applications, which are overwhelmingly composed of small-to-medium files. A rule whose cost grows with the size of a single file is close to invisible in that set — it shows up as a fraction of a percent spread across thousands of files, which is within run-to-run noise.

Brigade has the opposite shape. Of the 17 files it lints, two dominate:

file lines
Sources/CellarKit/Vintages.swift 34,571
Sources/CellarKit/Appellations.swift 28,174

Those are generated catalogue data — large dictionary and array literals, long parameter lists — which is exactly the shape that makes a per-file quadratic cost measurable instead of theoretical.

Cost

Linting it with a main build takes about 21s. oss-check defaults to 5 iterations per branch across 2 branches, so this adds roughly 3.5 minutes to a full run. It is 6.4MB cloned at depth 1.

keep_config: true is load-bearing

The repository contains a Reproducers/ directory holding inputs that currently crash SwiftLint, and its own .swiftlint.yml excludes that directory. With the config removed, swiftlint lint --no-cache --enable-all-rules on current main terminates with SIGILL (exit 132); with the config kept, it exits 0. Hence the third argument.

That is worth knowing rather than hiding: if the config were ever dropped for this entry, oss-check would crash rather than report a diff.

Verified

Against main at 8fef772, cloning fresh from GitHub and running the exact command oss-check issues:

git clone --depth 1 https://github.com/Brett-Best/Brigade
cd Brigade
swiftlint lint --no-cache --enable-all-rules --reporter json

Exit 0, 11,116 violations, stable across repeated runs.

🤖 Generated with Claude Code

The set is short of a repository shaped to stress the linter rather than to
be an app. Every entry is a real project of broadly the same shape — many
files of a few hundred lines each — and a rule whose cost scales with file
size is close to invisible across all of them. That is how a quadratic read
of a file's source lines survived in collection_alignment.

Brigade is built for that gap: a handful of very large catalogue files
against many small ones, non-ASCII identifiers, CRLF and CR terminators,
files dense in disable commands, and custom rules with kind filtering. It
lints in 1.32s here against 10.51s at this branch's merge base, where the
existing repositories manage about 1.5x, and adds roughly a minute to the
job.

Its config is kept: the custom rules and the exclusions in it are what the
corpus measures.

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings August 8, 2026 12:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the Brigade repository to the oss-check benchmark set to better measure rule costs that scale with single-file size (via a project with a few extremely large generated Swift files), while preserving the repo’s own SwiftLint config to avoid linting crash-inducing inputs.

Changes:

  • Register Brett-Best/Brigade in the oss-check repo list.
  • Document why this repo is included and why keep_config: true is necessary for it.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tools/oss-check Resolved
Comment thread tools/oss-check Resolved
@SwiftLintBot

Copy link
Copy Markdown
20 Messages
📖 Building this branch resulted in the same binary size as when built on main.
📖 Linting Aerial with this PR took 0.66 s vs 0.64 s on main (3% slower).
📖 Linting Alamofire with this PR took 0.93 s vs 0.92 s on main (1% slower).
📖 Linting Brave with this PR took 5.91 s vs 5.9 s on main (0% slower).
📖 Linting Brigade with this PR took 15.81 s vs 15.85 s on main (0% faster).
📖 Linting DuckDuckGo with this PR took 26.44 s vs 26.49 s on main (0% faster).
📖 Linting Firefox with this PR took 10.56 s vs 10.53 s on main (0% slower).
📖 Linting Kickstarter with this PR took 6.65 s vs 6.71 s on main (0% faster).
📖 Linting Moya with this PR took 0.37 s vs 0.36 s on main (2% slower).
📖 Linting NetNewsWire with this PR took 2.32 s vs 2.33 s on main (0% faster).
📖 Linting Nimble with this PR took 0.59 s vs 0.54 s on main (9% slower).
📖 Linting PocketCasts with this PR took 6.85 s vs 6.86 s on main (0% faster).
📖 Linting Quick with this PR took 0.36 s vs 0.36 s on main (0% slower).
📖 Linting Realm with this PR took 2.84 s vs 2.84 s on main (0% slower).
📖 Linting Sourcery with this PR took 1.55 s vs 1.64 s on main (5% faster).
📖 Linting Swift with this PR took 4.18 s vs 4.19 s on main (0% faster).
📖 Linting SwiftLintPerformanceTests with this PR took 0.16 s vs 0.16 s on main (0% slower).
📖 Linting VLC with this PR took 1.19 s vs 1.23 s on main (3% faster).
📖 Linting Wire with this PR took 15.16 s vs 15.14 s on main (0% slower).
📖 Linting WordPress with this PR took 9.49 s vs 9.48 s on main (0% slower).

Generated by 🚫 Danger

@SimplyDanny
SimplyDanny merged commit bed9166 into realm:main Aug 8, 2026
21 checks passed
@Brett-Best
Brett-Best deleted the oss-check-brigade branch August 8, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants