Repository navigation
Add Brigade to the oss-check repositories - #6866
Merged
Merged
Conversation
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]>
There was a problem hiding this comment.
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/Brigadein theoss-checkrepo list. - Document why this repo is included and why
keep_config: trueis necessary for it.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
SimplyDanny
approved these changes
Aug 8, 2026
Generated by 🚫 Danger |
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Sources/CellarKit/Vintages.swiftSources/CellarKit/Appellations.swiftThose 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
mainbuild 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: trueis load-bearingThe repository contains a
Reproducers/directory holding inputs that currently crash SwiftLint, and its own.swiftlint.ymlexcludes that directory. With the config removed,swiftlint lint --no-cache --enable-all-ruleson currentmainterminates 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
mainat 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 jsonExit 0, 11,116 violations, stable across repeated runs.
🤖 Generated with Claude Code