MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / isDisableStyleFix

Function isDisableStyleFix

internal/effecttest/quickfix_runner.go:17–20  ·  view source on GitHub ↗

isDisableStyleFix returns true if the fix title matches the disable-style pattern: "Disable ... for this line" or "Disable ... for entire file".

(title string)

Source from the content-addressed store, hash-verified

15// isDisableStyleFix returns true if the fix title matches the disable-style pattern:
16// "Disable ... for this line" or "Disable ... for entire file".
17func isDisableStyleFix(title string) bool {
18 return strings.HasPrefix(title, "Disable ") &&
19 (strings.HasSuffix(title, " for this line") || strings.HasSuffix(title, " for entire file"))
20}
21
22// RunEffectQuickFixTest executes a single Effect quick-fix baseline test case.
23// It creates a fourslash test instance, collects quick-fix inventory and application

Callers 1

RunEffectQuickFixTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected