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

refactor(conan): Simplify the parsing of ConanData #8907

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

fviernau
Copy link
Member

No description provided.

@fviernau fviernau requested a review from a team as a code owner July 18, 2024 13:00
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

it.yamlList?.items contains an unnecessary safe call operator
@@ -450,3 +422,28 @@ class Conan(
private fun parseAuthors(pkgInfo: PackageInfo): Set<String> =
setOfNotNull(parseAuthorString(pkgInfo.author.orEmpty(), '<', '('))
}

private data class Conandata(
Copy link
Member

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"?

Copy link

codecov bot commented Jul 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.63%. Comparing base (e013788) to head (0fcab2d).

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           
Flag Coverage Δ
funTest-non-docker 33.90% <ø> (ø)
test 37.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fviernau fviernau force-pushed the simplify-conandata-parsing branch from 5110717 to 078c153 Compare July 18, 2024 13:38
@fviernau fviernau changed the title refactor(conan): Simplify the parsing of Conandata refactor(conan): Simplify the parsing of ConanData Jul 18, 2024
@fviernau fviernau requested a review from sschuberth July 18, 2024 15:04
@fviernau fviernau enabled auto-merge (rebase) July 18, 2024 15:04
@fviernau fviernau force-pushed the simplify-conandata-parsing branch from 078c153 to 172f8ac Compare July 18, 2024 19:54
@sschuberth sschuberth force-pushed the simplify-conandata-parsing branch from 172f8ac to 0fcab2d Compare July 18, 2024 20:37
@sschuberth
Copy link
Member

The NuGetFunTest failure is unrelated.

@sschuberth sschuberth disabled auto-merge July 18, 2024 20:52
@sschuberth sschuberth merged commit c68d2af into main Jul 18, 2024
21 of 22 checks passed
@sschuberth sschuberth deleted the simplify-conandata-parsing branch July 18, 2024 20:52
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.

2 participants