mirror of
https://github.com/bitwarden/android.git
synced 2026-05-07 11:29:37 -05:00
chore: Remove MaxLineLength suppression guidance from testing skill (#6813)
This commit is contained in:
@@ -245,8 +245,6 @@ fun `test exception`() {
|
||||
|
||||
Common testing mistakes in Bitwarden. **For complete details and examples:** See `references/critical-gotchas.md`
|
||||
|
||||
> **⛔ STOP — `@Suppress("MaxLineLength")`**: Do NOT add this annotation unless the `fun` declaration line **actually exceeds 100 characters**. Count the characters first. Do not copy it from nearby tests. Detekt will tell you if it's needed — when in doubt, leave it off.
|
||||
|
||||
**Core Patterns:**
|
||||
- **assertCoroutineThrows + runTest** - Never wrap in `runTest`; call directly
|
||||
- **Static mock cleanup** - Always `unmockkStatic()` in `@After`
|
||||
|
||||
Reference in New Issue
Block a user