Skip to content
Novus Examples
txt571 B

CODEOWNERS - Intentionally Invalid, Five Distinct Defects

An intentionally invalid ownership file carrying five defects that all parse as plausible lines: an owner that is neither a handle nor an email, a team with no organisation, a character class, a negation, and a path with an unescaped space. Each is a separate assertion for a linter, and none of them is a syntax error a naive line splitter would notice.

Preview — first 17 linestxt
# Intentionally invalid CODEOWNERS — five separate defects, one per rule below.

# 1. owner is not a handle, an email, or a team
/web/                           platform-team

# 2. team handle with no organisation
*.go                            @backend

# 3. pattern uses a character class, which CODEOWNERS does not support
/docs/[a-z]*.md                 @sample-org/docs

# 4. negation, which CODEOWNERS does not support either
!/docs/generated/               @sample-org/docs

# 5. unescaped space in the path
/deploy/staging values.yaml     @sample-org/platform

Specifications

Seed
20260807
Repository Name
CODEOWNERS
Intentionally Invalid
true
Rules
5
Defects
bare owner, org-less team, character class, negation, unescaped space
Line Endings
LF
Encoding
UTF-8

Testing contract

Expected to fail
Scenario
Lint a CODEOWNERS file whose every rule is malformed in a different way.
Expected result
Five distinct diagnostics are reported, one per rule, each naming its own line — not a single 'invalid file' error and not silent acceptance.

What is a .txt file?

TXT is a plain-text file containing unformatted character data with no styling or structure beyond line breaks. Its interpretation depends on character encoding, most commonly UTF-8, and on line-ending convention. It is the most universal and portable text container.

How to use this file

Use an example TXT to test encoding detection, line-ending (LF versus CRLF) handling, and any tool that reads or streams raw text input.

How to use this file for testing

“CODEOWNERS - Intentionally Invalid, Five Distinct Defects” is a deterministic Novus Examples fixture for Error handling, Visual diff / regression, Code parsing. Deliberately corrupt and invalid files, clearly labelled, for testing how your tool fails.

Documented properties for this file: seed 20260807 · UTF-8 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Diff and patch fixtures name their target paths and the exact edge case they exercise — rename, mode change, binary hunk, CRLF↔LF, or missing trailing newline. Apply or render them against the documented before-state; every author, path, and hash is fictional.

Generated by generation/version_control.py. Free for any use, no attribution required — license.