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

ignoredClasses ignores classes that match a substring of the class name #136

Merged
merged 1 commit into from Sep 18, 2023

Conversation

bryanlogan
Copy link
Contributor

If I have two classes com.example.Hello and com.example.HelloWorld, and I add com.example.HelloWorld to my ignore classes list, apiDump will not generate dump information for com.example.Hello.

Closes #135

@qwwdfsad qwwdfsad self-requested a review September 18, 2023 15:36
Copy link
Member

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@qwwdfsad qwwdfsad merged commit 0dc8cd9 into Kotlin:master Sep 18, 2023
1 check passed
@@ -244,7 +244,7 @@ private fun ClassBinarySignature.isInPackages(packageNames: Collection<String>):
packageNames.any { packageName -> name.startsWith(packageName) }

private fun ClassBinarySignature.isInClasses(classNames: Collection<String>): Boolean =
classNames.any { className -> className.startsWith(name) }
classNames.any { className -> className.startsWith("$name/") }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that the CBS's name is augmented with the /, startsWith could be replaced with an equality check, isn't it?

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.

ignoredClasses ignores classes that match a substring of the class name
3 participants