Skip to content

Support ignoring dependencies by regex#574

Open
Goooler wants to merge 3 commits intocashapp:trunkfrom
Goooler:ignore-deps-by-regex
Open

Support ignoring dependencies by regex#574
Goooler wants to merge 3 commits intocashapp:trunkfrom
Goooler:ignore-deps-by-regex

Conversation

@Goooler
Copy link
Copy Markdown
Contributor

@Goooler Goooler commented Mar 21, 2026

Closes #49.


  • CHANGELOG.md's "Unreleased" section has been updated, if applicable.

Comment thread CHANGELOG.md Outdated
unusedCoordinates -= id.group to id.module
}
?: config.ignoredRegexes.entries
.find { (regex, _) -> regex.toRegex().matches("${id.group}:${id.module}") }
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we compile the regex earlier? Such as when it goes into the map so it's only done once?

Also can the string formatting operation be hoisted outside the find loop so it's only done once?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

Goooler and others added 2 commits March 22, 2026 12:59
Co-authored-by: Jake Wharton <github@jakewharton.com>
@Goooler Goooler force-pushed the ignore-deps-by-regex branch from e163261 to 242a360 Compare March 22, 2026 05:10
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.

Allow for group and module regex matching

2 participants