|
Ran
|
Jobs
1
|
Files
54
|
Run time
1min
|
Badge
README BADGES
|
push
github
Fix remaining toggle_bool violations in fbobjc Summary: NOTE: This diff does not enable the rule. It uses the rule to fix existing violations in `fbobjc`. This commit fixes the remaining `toggle_bool` violations in `fbobjc` outside `fbobjc/Libraries/FWA`. **What the rule does** This rule replaces `value = !value` with `value.toggle()`. **Benefits** `toggle()` states the mutation directly and avoids repeating the variable name. **Example** **Before:** ```swift isHidden = !isHidden ``` **After:** ```swift isHidden.toggle() ``` To apply the same fixes in fbobjc: ``` printf 'only_rules:\n - toggle_bool\n' > /tmp/only.yml fbobjc/Tools/swiftlint/swiftlint lint --fix --config /tmp/only.yml --quiet fbobjc/ ``` Reviewed By: thurn Differential Revision: D126562497 fbshipit-source-id: afeace435
4512 of 4569 relevant lines covered (98.75%)
703.73 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | iOS - 39995004437.1 | 60 |
98.63
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|