Skip to content

Set CSharpier print width to 180 - #161

Merged
wallstop merged 1 commit into
mainfrom
t161-line-length-180
Oct 10, 2026
Merged

wallstop merged 1 commit into
mainfrom
t161-line-length-180

Conversation

@wallstop

@wallstop wallstop commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

DISCLOSURE: LLM-GENERATED TEXT

Why: The 100-column formatter default wraps code into narrow fragments that are hard to read, and the project wants a wider line length.

What:

  • Add .csharpierrc with printWidth: 180.
  • Set max_line_length = 180 in .editorconfig.
  • Reformat Editor, Runtime, and Tests with CSharpier; mechanical output only.

Stacked on #158 and #160, merged in order.


Note

Low Risk
Mechanical formatting and editor config only; no runtime or persistence logic changes.

Overview
Sets the project-wide C# line length to 180 columns and reapplies formatting so Editor, Runtime, and test code match.

Adds .csharpierrc with printWidth: 180, aligns .editorconfig via max_line_length = 180, and updates .llm/context.md so contributors know CSharpier 1.1.2 uses that width. The bulk of the diff is a CSharpier pass across Data Visualizer sources and editor tests—wrapping collapsed onto longer lines with no intentional behavior changes.

Reviewed by Cursor Bugbot for commit 93b3588. Bugbot is set up for automated code reviews on this repo. Configure here.

Users found the 100-column default too narrow. Add a .csharpierrc with
printWidth 180, set max_line_length to 180 in .editorconfig, and
reformat Editor, Runtime, and Tests with CSharpier 1.1.2. 66 of 110
files change; the diff is mechanical formatter output joining lines
that now fit, with no manual edits.

Validation: CSharpier check, member-order, null-assertions, usings,
assembly-warnings, file-length, and llm lints pass; npm pack succeeds;
EditMode 357/357 and PlayMode 15/15 on the connected host (Unity
6000.5.2f1).
@wallstop
wallstop merged commit 73b8beb into main Oct 10, 2026
3 checks passed
@wallstop
wallstop deleted the t161-line-length-180 branch October 10, 2026 04:30
wallstop added a commit that referenced this pull request Oct 10, 2026
**Why:** Markdown still wrapped at 80 columns while C# moved to 180, so the CHANGELOG and docs read as narrow fragments.

**What:**

- Add Prettier 3.9.9 with printWidth 180 and proseWrap always.
- Reflow 19 tracked Markdown files; CHANGELOG entries now fit one or two lines.
- Gate the check in llm-lint.yml on both OSes and trigger on **/*.md.
- Exempt the generated skills index and SKILL.md frontmatter contracts.
- Escape unescaped table-cell pipes found in forbidden-patterns.md.

Follows #161
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.

1 participant