Skip to content

star lint copyright reads every file type this organization writes, YAML and makefiles among them #1197

Open

Description

@David-Noble-at-work

Area

Product

What

star lint copyright cannot see most of the files whose license it is there to check. Its COMMENT_STYLES lists the file types it reads, written from a language table rather than from what this organization writes, and .yaml is not among them, so no run ever looked at the 21 shipped extension.yaml files that declared MIT until #999 found them. This task carries the four acceptance items of #999 that are the linter's, moved here on 2026-11-06 when #999's license fixes went to their own pull request:

  • COMMENT_STYLES is derived from what this organization writes, not from a language table. .yaml, .yml, .ps1 and extensionless makefiles are covered, with Makefile and Dockerfile matched by name, since they have no extension.
  • A test asserts that every extension this repository tracks is one the linter recognizes, so the next new file type fails loudly rather than going unchecked.
  • The testdata exclusion carries its reason in the configuration: a preserved copy of devlore-registry's files, whose license is MIT on purpose (ruled 2026-11-06, under 22 of our own files declare MIT in an Apache-2.0 repository, and star lint copyright cannot see any of them #999), not an oversight.
  • star lint copyright over the repository reports a count, and the count is recorded.

Evidence of completion

Before this issue closes, a comment on it shows star lint copyright failing a .yaml file and a Makefile that declare the wrong license, the new test, and the count over the repository.

Plan and design documents

Kind Document
Plan Not yet opened
Related #999, whose license fixes merged on their own; #340, star's quality gate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions