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
extension_access_modifier reports a violation when an extension contains a method with an explicit access modifier and a method with an implicit modifier of internal.
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint
Loading configuration from '.swiftlint.yml'
Linting Swift files at paths
Linting 'Test.swift' (1/1)
/Users/craig/Desktop/test/Test.swift:3:1: warning: Extension Access Modifier Violation: Prefer to use extension access modifiers (extension_access_modifier)
Done linting! Found 1 violation, 0 serious in 1 file.
Environment
SwiftLint version: 0.39.1
Installation method used: Homebrew
Paste your configuration file:
opt_in_rules:
- extension_access_modifier
Are you using nested configurations? No
If so, paste their relative paths and respective contents.
Which Xcode version are you using (check xcodebuild -version)? 11.4
Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
structFoo{}// Extension Access Modifier Violation: Prefer to use extension access modifiers (extension_access_modifier)extensionFoo{func setup(){}publicfunc update(){}}
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Describe the bug
extension_access_modifier
reports a violation when an extension contains a method with an explicit access modifier and a method with an implicit modifier ofinternal
.Complete output when running SwiftLint, including the stack trace and command used
Environment
If so, paste their relative paths and respective contents.
xcodebuild -version
)? 11.4echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: