Skip to content
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

Merged
merged 9 commits into from
Aug 26, 2024
Merged

Release/v3.0.0 #24

merged 9 commits into from
Aug 26, 2024

Conversation

gumob
Copy link
Owner

@gumob gumob commented Aug 26, 2024

No description provided.

_ expectedSecondDomain: String?,
_ expectedSubDomain: String?,
_ result: TLDResult?) {
func logTLDResult(
Copy link

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)
Copy link

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)
Copy link

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)

@gumob gumob merged commit b3aa876 into develop Aug 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant