Skip to content

@Copyright defaults to "Catalyzed Motivation Inc." for everyone; take the holder from the project's manifest #90

Closed

Description

@Shinrai

Problem

companyName defaults to the hard-coded DEFAULT_COMPANY_NAME = "Catalyzed Motivation Inc." (src/constants.mjs, src/detect/project.mjs). fix-headers is a public package, so anyone who runs it without companyName stamps Copyright (c) … Catalyzed Motivation Inc. All rights reserved. on their own files.

Expected

The copyright holder comes from the project's manifest, through the manifest drivers (#75), with the same nearest-folder, native-driver-first and per-field-climbing rules as the project name:

  • node: package.json author.company, else author.name, else the name part of a string author ("Name <email> (url)");
  • python: pyproject.toml [project].authors[0].name / [tool.poetry].authors[0] (name part), setup.cfg author, setup.py author=;
  • php: composer.json authors[0].name;
  • rust: Cargo.toml [package].authors[0] (name part);
  • go: no author field — provides nothing.

companyName / --company-name still overrides everything. When nothing provides a holder, the company is omitted: Copyright (c) 2019-2026 All rights reserved. The DEFAULT_COMPANY_NAME constant goes away. CLDMV repos set "companyName": "Catalyzed Motivation Inc." in the shared @cldmv/configs config.

This is a default-behaviour change for anyone relying on the old default, so it belongs in the v2.0.0 breaking changes.

Tests

Each driver's holder field; author.company over author.name; string author; climbing to a parent manifest's holder; companyName override; no holder anywhere → company omitted, and the header parser (sample.issues, @Copyright splitting) handles the company-less line; the source is reported like projectNameSource.

Activity

  1. added
    type: bug
    priority: high
    area: core
    status: in progress
    on Sep 29, 2026
  2. added
    status: implemented
    and removed
    status: in progress
    on Sep 29, 2026
  3. cldmv-bot commented on Sep 29, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #91, merged into next. This issue closes automatically when that work ships to the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: corepriority: highstatus: implementedtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions