-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release/v3.0.0 #24
Release/v3.0.0 #24
Conversation
…te shell script for Python 3 compatibility (#123)
_ expectedSecondDomain: String?, | ||
_ expectedSubDomain: String?, | ||
_ result: TLDResult?) { | ||
func logTLDResult( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function Parameter Count Violation: Function should have 5 parameters or less: it currently has 6 (function_parameter_count)
guard let input: T = input else { return } | ||
let result: TLDResult? = tldExtractor.parse(input, quick: quick) | ||
|
||
// logTLDResult(host, expectedRootDomain, expectedTopLevelDomain, expectedSecondDomain, expectedSubDomain, result) | ||
// logTLDResult(host, expectedRootDomain, expectedTopLevelDomain, expectedSecondDomain, expectedSubDomain, result) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 129 characters (line_length)
@@ -68,8 +66,7 @@ internal class TLDParser { | |||
let hostComponents: [String] = host.lowercased().components(separatedBy: ".") | |||
/// Search exceptions first, then search wildcards if not match | |||
let matchClosure: (PSLData) -> Bool = { $0.matches(hostComponents: hostComponents) } | |||
let pslData: PSLData? = self.pslDataSet.exceptions.first(where: matchClosure) ?? | |||
self.pslDataSet.wildcards.first(where: matchClosure) | |||
let pslData: PSLData? = self.pslDataSet.exceptions.first(where: matchClosure) ?? self.pslDataSet.wildcards.first(where: matchClosure) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 141 characters (line_length)
No description provided.