Skip to content

Fix assorted typos and a stale command in docs and tests - #19

Merged
olitreadwell merged 2 commits into
mainfrom
fix-trivial-typos
Nov 3, 2026
Merged

olitreadwell merged 2 commits into
mainfrom
fix-trivial-typos

Conversation

@olitreadwell

Copy link
Copy Markdown
Owner

What changed

  • Fixed misspellings of Responsible, Threshold, Access, Excluded, Explicit, and CachePath in rule examples, tests, and the SwiftLint command plugin.
  • Removed the autocorrect subcommand from the swiftlint help output listed in README_CN.md and README_KR.md. That subcommand no longer exists; it was replaced by swiftlint --fix.

Why

Self-found gap, found by a repo-wide spelling and stale-command sweep. swiftlint autocorrect was removed in favor of swiftlint --fix, and the identifiers below are unambiguous typos:

  • Source/SwiftLintBuiltInRules/Rules/Lint/RequiredEnumCaseRule.swift and Tests/FrameworkTests/RulesTests.swift: NetworkResponsable to NetworkResponsible (example protocol plus its configuration key).
  • Source/SwiftLintBuiltInRules/Rules/Performance/ReduceIntoRule.swift: memberAccesExpr to memberAccessExpr.
  • Source/SwiftLintFramework/Configuration/Configuration+Merging.swift: mergedWarningTreshold to mergedWarningThreshold, and its two local variables.
  • Tests/CoreTests/RegexConfigurationTests.swift: shouldValidateWithSingleExluded and shouldValidateWithArrayExluded to ...Excluded.
  • Tests/MacroTests/SwiftSyntaxRuleTests.swift: correctableWithoutExplcitRewriter to correctableWithoutExplicitRewriter.
  • Plugins/SwiftLintCommandPlugin/SwiftLintCommandPlugin.swift: commandsWithoutCachPathOption to commandsWithoutCachePathOption.

Every rename is applied at all call sites, so there is no behavior change and no change to any example's expected violations.

How to verify

git fetch https://github.com/olitreadwell/SwiftLint.git fix-trivial-typos
git checkout FETCH_HEAD
swift test
swift run swiftlint lint --strict

PROMOTION NOTE (remove this section before/when opening against upstream):

gh pr create --repo realm/SwiftLint --base main --head olitreadwell:fix-trivial-typos --title "Fix assorted typos and a stale command in docs and tests"

@olitreadwell
olitreadwell merged commit 60bb664 into main Nov 3, 2026
@olitreadwell
olitreadwell deleted the fix-trivial-typos branch November 3, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant