Repository navigation
Count .NET, F# and Kotlin rules in .editorconfig as a linter config - #23
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Agent Friendly Code — score diffOverall: 85.9 → 85.9 (±0.0) Per agent
No checks changed between base and head. Posted by agent-friendly-action. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.editorconfigwithdotnet_,csharp_,visual_basic_,fsharp_orktlint_keys,.globalconfig,stylecop.json,fsharplint.json, or aDirectory.Build.propsthat setsEnforceCodeStyleInBuild,AnalysisLevelorAnalysisMode..editorconfigwith 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).0da7ca2left.editorconfigout because a generic one gives no feedback loop. One withdotnet_/csharp_keys is whatdotnet format --verify-no-changesenforces, so it is gated on those keys, the waypyproject.tomlis gated on[tool.ruff]. ktlint and Fantomas read their rules from.editorconfigthe same way.Changes
lib/scoring/signals/linter.ts: three dedicated files added to the list;.editorconfigandDirectory.Build.propschecked for those keys, alongsidepyproject.toml.TreatWarningsAsErrorsalone does not count: it configures no analyzer.lib/live-score/content-files.ts: Live Score fetches.editorconfigandDirectory.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.editorconfigcontents./check/linterscoring prose, and the owed changelog line intasks/0.10.0/README.md.Siblings vendor the same
linter.ts: hsnice16/agent-friendly-action and hsnice16/agent-friendly-skill, branchfeat/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..editorconfigstay failing. All 11 confirmed by clone +scoreinto a copy ofrank.db; Files (indent-only.editorconfig) stays failing.next starton that copy: repo pages and/api/repo/<id>show the pass;/check/linterreads 289 of 432 (278 + 11), C# 10 of 12.Screenshots / screencasts
Prose-only change: one new line in the
/check/linterscoring 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.dbis not re-seeded here: the next scheduled rescore applies it (or run it byworkflow_dispatchafter merge). Rollback is a revert, followed by a rescore.🤖 Generated with Claude Code