sonar-swift
sonar-swift copied to clipboard
Remove backticks (`) from "protocol" and rename it.
New Issue Checklist
- [x] Updated the plugin to the latest version
- [x] I read the Contribution Guidelines
- [x] I read the documentation TRY TO UPDATE WIKI...
- [x] I searched for existing GitHub issues
Issue Description
Remove backticks (`) from "protocol" and rename it.
func urlSession(
_ session: URLSession,
webSocketTask: URLSessionWebSocketTask,
didOpenWithProtocol protocol: String?
) {
if let sessionDelegate = self.sessionDelegate as? URLSessionWebSocketDelegate {
sessionDelegate.urlSession?(
session,
webSocketTask: webSocketTask,
didOpenWithProtocol: `protocol`
)
}
}
As you can see I don't use any custom names... just passing property from one func to another. But CI's Sonar gives me an error.
Environment
Enterprise EditionVersion 10.3 (build 82913)