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
'Colon' rule does not trigger for class and struct definitions if the type is generic.
Complete output when running SwiftLint, including the stack trace and command used
Input:
import Foundation
print("Hello, World!")protocolMyProtocol{}classBaz<String>:MyProtocol{}structQux<String>:MyProtocol{}
Command Line:
$ swiftlint lint
Linting Swift files at paths
Linting 'main.swift' (1/1)
Done linting! Found 0 violations, 0 serious in 1 file.
Environment
SwiftLint version (run swiftlint version to be sure)?
0.30.1
Installation method used (Homebrew, CocoaPods, building from source, etc)?
Homebrew
Paste your configuration file:
N/A
Are you using nested configurations?
If so, paste their relative paths and respective contents.
No
Which Xcode version are you using (check xcode-select -p)?
Xcode 10.1
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.
// These trigger a warning as expected:classFoo:MyProtocol{}structBar:MyProtocol{}// These do not:classBaz<String>:MyProtocol{}structQux<String>:MyProtocol{}
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Describe the bug
'Colon' rule does not trigger for class and struct definitions if the type is generic.
Complete output when running SwiftLint, including the stack trace and command used
Input:
Command Line:
Environment
SwiftLint version (run
swiftlint version
to be sure)?Installation method used (Homebrew, CocoaPods, building from source, etc)?
Paste your configuration file:
Are you using nested configurations?
If so, paste their relative paths and respective contents.
Which Xcode version are you using (check
xcode-select -p
)?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 useswiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: