Skip to content

Correct Four Code Style Rules That Fail When Followed #4015

Closed

Description

@ptr727

Consolidated from the per-unit trackers a carrier's resync filed on 2026-11-09. CodeRabbit raised each finding against a byte-identical carried copy at hub c175d557. Each was re-checked against hub main at 42f2155b, and the defect still stands there. Sources: #3972, #3974, #3975 and #3965, all from ptr727/VSCode-Server-DotNetCore#196.

  1. SA1201 member order. Source: Tracker: .agents/skills/dotnet-codestyle/references/conventions.md > Code structure #3972. dotnet-codestyle references/conventions.md "Code structure" orders public members by kind, then repeats the order for non-public members. That sorts by access first. SA1201 orders by kind across all access levels, and SA1202 orders by access within one kind. So following the text puts a private property after a public method, and SA1201 fails the build where it is an error.
  2. PowerShell unknown arguments. Source: Tracker: CODESTYLE.md > General #3974. CODESTYLE.md "Command-Line Arguments" says "Where no parameter takes the remaining arguments, the binder's refusal does that." A plain param() block without [CmdletBinding()] binds -Bogus into $args and runs on. Require [CmdletBinding()] or an explicit $args check before any work.
  3. The POSIX shell exception. Source: Tracker: .agents/skills/shell-codestyle/SKILL.md > (preamble) #3975. shell-codestyle requires set -Eeuo pipefail in every script and names no exception. GOVERNANCE.md exempts a deliberately POSIX #!/bin/sh surface and gives it set -eu. A /bin/sh hook following the skill aborts under dash. Carry the exception into the skill.
  4. The local loop installs into the wrong venv. Source: Tracker: .agents/skills/python-codestyle/SKILL.md > Local development loop #3965. python-codestyle "Local development loop" runs uv venv --clear and then two uv pip install lines. uv pip install targets an active VIRTUAL_ENV ahead of ./.venv. So with another venv active, both installs miss .venv, and .venv/bin/python -m pytest runs without the dependencies. Pass --python .venv/bin/python to both installs.

Fix Site

  • .agents/skills/dotnet-codestyle/references/conventions.md, .agents/skills/shell-codestyle/SKILL.md, and .agents/skills/python-codestyle/SKILL.md.
  • CODESTYLE.md "Command-Line Arguments", which python-codestyle and shell-codestyle carry as a generated include. Regenerate with scripts/build_dist.py.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    skills
    on Nov 9, 2026
  2. ptr727 commented on Nov 13, 2026

    @ptr727
    OwnerAuthor

    Backlog burndown claim, round 2 (2026-11-13), away run, scope develop. Branch burndown/codestyle-rule-fixes, group: #4015, #3668. Tier: frontier (carried CODESTYLE.md and codestyle skills).

    Predicted files:

    • CODESTYLE.md ("Command-Line Arguments")
    • .agents/skills/dotnet-codestyle/references/conventions.md
    • .agents/skills/dotnet-codestyle/SKILL.md
    • .agents/skills/shell-codestyle/SKILL.md
    • .agents/skills/python-codestyle/SKILL.md
    • .github/skills/dotnet-codestyle/references/conventions.md
    • .github/skills/dotnet-codestyle/SKILL.md
    • .github/skills/shell-codestyle/SKILL.md
    • .github/skills/python-codestyle/SKILL.md
    • .claude-plugin/fleet-skills/skills/dotnet-codestyle/references/conventions.md
    • .claude-plugin/fleet-skills/skills/dotnet-codestyle/SKILL.md
    • .claude-plugin/fleet-skills/skills/shell-codestyle/SKILL.md
    • .claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md
    • .claude-plugin/fleet-skills/.source-digests/dotnet-codestyle
    • .claude-plugin/fleet-skills/.source-digests/shell-codestyle
    • .claude-plugin/fleet-skills/.source-digests/python-codestyle
    • catalog/snippets/configs/vscode-tasks-python.json (the same uv pip install venv pattern, item 4's class sibling)
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

    bugskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions