You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/rules/code-style.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,4 +7,5 @@
7
7
-**Comments**: Minimal - only explain "why", not "what"
8
8
-**Docstrings**: Do not add unless explicitly requested
9
9
-**Naming**: NEVER use leading underscores (`_function_name`) - Python has no true private functions, use public names
10
-
-**Paths**: Always use absolute paths, handle encoding explicitly (UTF-8)
10
+
-**Paths**: Always use absolute paths
11
+
-**Encoding**: Always pass `encoding="utf-8"` to `open()`, `read_text()`, `write_text()`, etc. in new or changed code — Windows defaults to `cp1252` which breaks on non-ASCII content. Don't flag pre-existing code that lacks it unless you're already modifying that line.
0 commit comments