Skip to content

Commit 160c969

Browse files
committed
style: use Self instead of LintOrAnalyzeOptions in asLintOnly()
Fixes prefer_self_in_static_references violations caught by SwiftLint's integration tests.
1 parent 6884fb3 commit 160c969

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Source/SwiftLintFramework/LintOrAnalyzeCommand.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ package struct LintOrAnalyzeOptions {
122122

123123
/// Returns a copy of these options with `autocorrect` set to `false` and `failOnUnfixable` set to `false`,
124124
/// suitable for a re-lint pass after autocorrection.
125-
func asLintOnly() -> LintOrAnalyzeOptions {
126-
LintOrAnalyzeOptions(
125+
func asLintOnly() -> Self {
126+
Self(
127127
mode: mode,
128128
paths: paths,
129129
useSTDIN: useSTDIN,

0 commit comments

Comments
 (0)