Skip to content

Count .NET, F# and Kotlin rules in .editorconfig as a linter config - #23

Merged
hsnice16 merged 1 commit into
mainfrom
feat/csharp-linter-editorconfig
Nov 20, 2026
Merged

hsnice16 merged 1 commit into
mainfrom
feat/csharp-linter-editorconfig

Conversation

@hsnice16

Copy link
Copy Markdown
Owner

Summary

  • The linter check passes a C#, F# or Kotlin repo on the config its formatter reads: an .editorconfig with dotnet_, csharp_, visual_basic_, fsharp_ or ktlint_ keys, .globalconfig, stylecop.json, fsharplint.json, or a Directory.Build.props that sets EnforceCodeStyleInBuild, AnalysisLevel or AnalysisMode.
  • An .editorconfig with only indentation or charset settings still fails, as the issue asks.

Fixes #21

Motivation

C# had no entry in the linter list, so a .NET repo failed whatever it committed: 3 of 12 C# repos on the board passed, all through linters for other languages in the same repo (.clang-format, .prettierrc, eslint.config.mjs). 0da7ca2 left .editorconfig out because a generic one gives no feedback loop. One with dotnet_ / csharp_ keys is what dotnet format --verify-no-changes enforces, so it is gated on those keys, the way pyproject.toml is gated on [tool.ruff]. ktlint and Fantomas read their rules from .editorconfig the same way.

Changes

  • lib/scoring/signals/linter.ts: three dedicated files added to the list; .editorconfig and Directory.Build.props checked for those keys, alongside pyproject.toml. TreatWarningsAsErrors alone does not count: it configures no analyzer.
  • lib/live-score/content-files.ts: Live Score fetches .editorconfig and Directory.Build.props. Without this it scores them as empty and disagrees with the board.
  • tests/live-score.test.ts: the content-files guard reads the linter's file list from the signal instead of a hand-written copy, which is how the omission above went uncaught.
  • scripts/parity-check.ts: Sonarr added to the PR subset; its linter pass depends only on .editorconfig contents.
  • /check/linter scoring prose, and the owed changelog line in tasks/0.10.0/README.md.

Siblings vendor the same linter.ts: hsnice16/agent-friendly-action and hsnice16/agent-friendly-skill, branch feat/csharp-linter-editorconfig.

Testing

  • bun run test (664 pass), bun x tsc --noEmit, bun x biome check ., bun run build.
  • bun run parity-check --pr: 5/5 identical, Sonarr included. serilog/serilog (off the board) scores 67.4 with the linter passing on both Live Score and a clone.
  • Board effect, checked by running the signal on the real root files of all 150 repos failing it today: 11 flip (aspnetcore, Avalonia, semantic-kernel, jellyfin, maui, bitwarden/server, Sonarr; nowinandroid, ktor, mihon, mockk). The other 53 with an .editorconfig stay failing. All 11 confirmed by clone + score into a copy of rank.db; Files (indent-only .editorconfig) stays failing.
  • next start on that copy: repo pages and /api/repo/<id> show the pass; /check/linter reads 289 of 432 (278 + 11), C# 10 of 12.
  • Hostile 1 MiB inputs: both new patterns finish in under 4 ms.

Screenshots / screencasts

Prose-only change: one new line in the /check/linter scoring list. Checked at 390 px and 1280 px, light and dark; the inline code chips wrap without horizontal scroll.

Docs + roadmap sync

User-facing — listed in tasks/0.10.0/README.md; no roadmap item. AGENTS.md / README.md unchanged: no structure, command or signal-count change.

Risks / rollback

The rule only adds passes; no repo can lose one. rank.db is not re-seeded here: the next scheduled rescore applies it (or run it by workflow_dispatch after merge). Rollback is a revert, followed by a rescore.

🤖 Generated with Claude Code

A plain .editorconfig still fails; only keys that dotnet format, Fantomas
or ktlint read count. Live Score now fetches .editorconfig and
Directory.Build.props, which it would otherwise score as empty.

Fixes #21

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agent-friendly-code Ready Ready Preview Nov 20, 2026 12:04pm UTC

@github-actions

Copy link
Copy Markdown
Contributor

Agent Friendly Code — score diff

Overall: 85.9 → 85.9 (±0.0)

Per agent

Agent Base Head Δ
Claude Code 93.9 93.9 ±0.0
Cursor 80.7 80.7 ±0.0
Devin 85.5 85.5 ±0.0
Codex 90.1 90.1 ±0.0
Kimi Code CLI 89.9 89.9 ±0.0
Gemini CLI 80.7 80.7 ±0.0
Aider 82.0 82.0 ±0.0
OpenHands 80.6 80.6 ±0.0
Pi 90.1 90.1 ±0.0

No checks changed between base and head.


Posted by agent-friendly-action.

@hsnice16
hsnice16 merged commit f8490d6 into main Nov 20, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 760d3a95 Deployed Nov 20, 2026 by vercel[bot]
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.

feat: count .editorconfig with .NET rules as a C# linter config

1 participant