Skip to content

docs: mirror proper-lint-fixes rule into Copilot instructions - #12190

Merged
MarkusNeusinger merged 2 commits into
mainfrom
docs/copilot-proper-lint-fixes
Oct 15, 2026
Merged

MarkusNeusinger merged 2 commits into
mainfrom
docs/copilot-proper-lint-fixes

Conversation

@MarkusNeusinger

Copy link
Copy Markdown
Owner

Summary

  • Owner decision 2026-10-15: the CLAUDE.md rule "Proper lint fixes only" now also appears in .github/copilot-instructions.md, on the "Fixing linting/formatting issues" task line. It says to fix the cause, and never to add disable comments (eslint-disable, noqa, type: ignore, or similar) unless the repository owner explicitly approves.
  • tests/unit/test_agent_instructions.py pins the rule as mirrored. The checked phrases cover the prohibition and the approval exception, not just the topic.
  • No other CLAUDE.md-only rule is mirrored, per the same decision.

Plan

N/A

Test plan

  • uv run pytest tests/unit/test_agent_instructions.py (35 passed)
  • uv run ruff check and uv run ruff format --check on the test file
  • uv run python -m tools.changelog check --base origin/main

Owner decision 2026-10-15: the CLAUDE.md rule against disable comments
(eslint-disable, noqa and similar without explicit approval) applies to
Copilot too. It sits on the "Fixing linting/formatting issues" task line,
where Copilot meets lint work, and tests/unit/test_agent_instructions.py
pins it as a mirrored rule (prohibition and approval exit, not the topic).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GdMSqLR5ww4ji74EUSmk9M
Copilot AI balanced review requested due to automatic review settings October 15, 2026 07:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The narrowly scoped instruction, test, and changelog changes are consistent, with no unresolved findings.

0 open findings

What changed in this PR

Mirrors the existing lint-fix guidance into Copilot instructions without expanding the scope to other rules.

Changes:

  • Requires fixing lint causes rather than adding suppression comments without owner approval.
  • Adds shared-rule assertions covering the prohibition and approval exception.
  • Records the update in a changelog fragment.
File Description
tests/​unit/​test_agent_instructions.py Pins the shared lint-fix rule and approval exception.
changelog.d/​copilot-proper-lint-fixes.md Documents the guidance update.
.github/​copilot-instructions.md Mirrors the existing proper-lint-fixes rule.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@MarkusNeusinger
MarkusNeusinger merged commit 4e1bd5b into main Oct 15, 2026
15 checks passed
@MarkusNeusinger
MarkusNeusinger deleted the docs/copilot-proper-lint-fixes branch October 15, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants