Skip to content

Feature request: fail for deleted files that are explicitly owned in CODEOWNERS #196

@devth

Description

@devth

Description

If I have a file foo/bar.go explicitly covered by CODEOWNERS, e.g.

foo/bar.go @org/team

and I open a PR which deletes foo/bar.go, I'd like codeowners-validator to fail with a message saying something like:

File foo/bar.go does not exist, yet is covered in CODEOWENERS line 1 by the rule foo/bar.go @org/team

Reasons

You could argue that a CODEOWNERS file that contains rules for non-existent files is invalid. An error like above (maybe it's configurable) would prevent CODEOWNERS files from getting stale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions