-
Notifications
You must be signed in to change notification settings - Fork 314
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
refactor(conan): Simplify the parsing of ConanData #8907
Conversation
val hasPatches = patchesForVersion?.items.orEmpty().isNotEmpty() | ||
val url = sourceForVersion?.get<YamlNode>("url")?.let { | ||
when { | ||
it is YamlList -> it.yamlList?.items?.first()?.yamlScalar?.content |
Check warning
Code scanning / detekt
Unnecessary safe call operator detected. Warning
@@ -450,3 +422,28 @@ class Conan( | |||
private fun parseAuthors(pkgInfo: PackageInfo): Set<String> = | |||
setOfNotNull(parseAuthorString(pkgInfo.author.orEmpty(), '<', '(')) | |||
} | |||
|
|||
private data class Conandata( |
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.
Maybe call this "ConanData" for readability and to match "readConanData"?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8907 +/- ##
=========================================
Coverage 67.63% 67.63%
Complexity 1168 1168
=========================================
Files 244 244
Lines 7781 7781
Branches 867 867
=========================================
Hits 5263 5263
Misses 2161 2161
Partials 357 357
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
5110717
to
078c153
Compare
078c153
to
172f8ac
Compare
Signed-off-by: Frank Viernau <[email protected]>
172f8ac
to
0fcab2d
Compare
The |
No description provided.