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
{{ message }}
Repository navigation
Commit ec499f2
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(rules): move fix-only work from rule analysis into fixables (#1024)
Apply the "Fix work stays in the fixable" coding standard to every rule
with a quick fix. Analyze functions now compute only what the diagnostic
needs; scans, fresh names, rewrite-safety checks and node slices that
only the fix reads run in the fixable, when code actions are requested.
Three type-argument gates move into the fixable, because the typed call
can still be rewritten by hand: provideLayerSucceedToProvideService
(Layer.succeed/effect<...>), provideMergeAllToArray (Effect.provide<...>
and Layer.mergeAll<...>) and the timeout step of
timeoutCatchTagToTimeoutOrElse. Those shapes are now reported without a
fix. Every other diagnostic is unchanged.
The Rust port mirrors all changes.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Move fix-only work out of rule analysis into the quick fixes, so it runs only when the editor asks for code actions instead of on every check. This covers 27 rules, among them `yieldInCallArgument`, `failCauseToConstructor`, `suspendFailToFailSync`, `catchTagToCatchReason`, `mapMapErrorToMapBoth` and `unnecessaryEffectGen`. Their diagnostics are unchanged.
6
+
7
+
Three rules now report explicitly typed calls that they used to skip, because those calls can still be rewritten by hand. They get no quick fix:
8
+
9
+
-`provideLayerSucceedToProvideService`: `Effect.provide(Layer.succeed<I, S>(Service, implementation))` (rewrite: `Effect.provideService<I, S>(Service, implementation)`), and the same for `Layer.effect<…>`
10
+
-`provideMergeAllToArray`: `Effect.provide<…>(Layer.mergeAll(...))` and `Effect.provide(Layer.mergeAll<…>(...))`
11
+
-`timeoutCatchTagToTimeoutOrElse`: explicit type arguments on the `Effect.timeout` step
0 commit comments