Skip to content

Classify minified content and generated source files - #7

Merged
andrew merged 1 commit into
mainfrom
classify-minified-generated
Sep 22, 2026
Merged

andrew merged 1 commit into
mainfrom
classify-minified-generated

Conversation

@andrew

@andrew andrew commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Add a minified role alongside existing generated labels for minified JavaScript and CSS, plus generated filename rules for .pb.go and _pb2.py.

Extend ClassifyBlob and ClassifyReader with generated comment headers, source-map directives, and a long-line minification heuristic. Inspection stays within 8 KiB and 40 lines, and Go retains its strict header check. Update corpus and content cache versions for the new behavior.

Fixes #6

@andrew
andrew force-pushed the classify-minified-generated branch from eef16f1 to 31ba181 Compare September 22, 2026 07:35
@andrew
andrew merged commit a89f0cc into main Sep 22, 2026
5 checks passed
@andrew
andrew deleted the classify-minified-generated branch September 22, 2026 07:38
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.

Classify minified and generated files

1 participant