Skip to content

Docs: config examples with unquoted YAML globs fail to parse; phantom defaults.columns keys are silently ignored #44

Closed

Description

@falbany

Three classes of broken config documentation, all user-copyable:

1. Unquoted *-leading globs are YAML aliases — the examples don't parse.
search_exclude_files: [*backup*, ~$*, *.tmp] fails with "found undefined alias 'backup*'". The repo's own generator warns about exactly this (core/config/template.py:123-124). Fix: quote every item.

  • README.md:246 and README.fr.md:247
  • docs/configuration-profile.en.md:103 and :191 / .fr.md:102 and :190
  • docs/performance-metrics-guide.md:196

2. Phantom keys under defaults: — silently ignored by the schema.
configuration-profile.en.md:311-312 / .fr.md:309-310 show columns: + column_widths: inside a defaults: block in the "Complete Multi-Machine Setup". Defaults (core/config/schema.py:128-145) has no such keys and doesn't set extra="forbid", so users copying the example get no columns and no error. Real dynamic columns are the top-level columns: mapping (schema.py:200). Fix the example, and consider extra="forbid" on Defaults so future typos surface.

3. Dead pc_hostname advice shipped in every generated config.
core/config/template.py:299,302 comments tell users pc_hostname: All acts as a catch-all / "place it LAST" — the schema has no pc_hostname (auto-selection is match.hostname, schema.py:165-183). Every generated .profiles.yaml / my.profiles carries the stale advice. Fix the template and regenerate the examples.

Activity

  1. added
    documentation
    on Oct 30, 2026
  2. added this to the v1.0.0 milestone on Oct 30, 2026
  3. added a commit that references this issue on Oct 31, 2026
  4. added a commit that references this issue on Nov 2, 2026
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

    documentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions