Skip to content

Commit 80ea280

Browse files
authored
Config Claude to respect MaxLineLength (#22339)
1 parent 7b13497 commit 80ea280

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CLAUDE.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,20 @@ WordPress/src/main/java/org/wordpress/android/
8787
- **Checkstyle**: Java code style enforcement (`config/checkstyle.xml`)
8888
- **Detekt**: Kotlin code analysis (`config/detekt/detekt.yml`)
8989
- **Android Lint**: Built-in Android static analysis
90-
- **Line Length**: 120 characters max
90+
- **Line Length**: 120 characters max - **ALWAYS respect this limit in all code, comments, and strings**
9191
- **No FIXME**: Use TODO instead of FIXME in committed code
9292
- **No Deprecated APIs**: Avoid using deprecated methods and classes in new code
9393
- **No Reflection**: Avoid using reflection in new code; prefer type-safe alternatives
9494

95+
### Code Style Guidelines
96+
- **IMPORTANT**: Always keep lines at or under 120 characters
97+
- Break long lines by:
98+
- Splitting long comments across multiple lines
99+
- Breaking method chains at logical points
100+
- Splitting long strings with string concatenation or multiline strings
101+
- Breaking parameter lists across multiple lines
102+
- Using proper indentation for continuation lines
103+
95104
### Development Workflow
96105
- Default development flavor: `jetpackWasabi` (Jetpack app with beta suffix)
97106
- Remote build cache available for faster builds (requires setup)

0 commit comments

Comments
 (0)