Skip to content

Fix detekt issues [WIP]#2885

Merged
jonathanmos merged 1 commit into
feature/feature-flaggingfrom
jmoskovich/fix-flags-ci
Sep 18, 2025
Merged

Fix detekt issues [WIP]#2885
jonathanmos merged 1 commit into
feature/feature-flaggingfrom
jmoskovich/fix-flags-ci

Conversation

@jonathanmos

Copy link
Copy Markdown
Member

What does this PR do?

Please ignore this PR - it relates to the feature flags development.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@jonathanmos
jonathanmos force-pushed the jmoskovich/fix-flags-ci branch from 3efa713 to 3caae1e Compare September 17, 2025 19:55
@jonathanmos
jonathanmos force-pushed the jmoskovich/fix-flags-ci branch from 3caae1e to 123aaca Compare September 17, 2025 20:05
@codecov-commenter

codecov-commenter commented Sep 17, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 20.68966% with 69 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.26%. Comparing base (1ca109e) to head (123aaca).
⚠️ Report is 328 commits behind head on feature/feature-flagging.

Files with missing lines Patch % Lines
...ernal/repository/net/DefaultFlagsNetworkManager.kt 0.00% 55 Missing ⚠️
...reflags/internal/repository/net/EndpointsHelper.kt 50.00% 8 Missing and 1 partial ⚠️
...src/main/kotlin/com/datadog/android/flags/Flags.kt 62.50% 0 Missing and 3 partials ⚠️
.../datadog/android/flags/featureflags/FlagsClient.kt 50.00% 1 Missing ⚠️
...lags/featureflags/internal/DatadogFlagsProvider.kt 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                     Coverage Diff                      @@
##           feature/feature-flagging    #2885      +/-   ##
============================================================
- Coverage                     70.74%   70.26%   -0.48%     
============================================================
  Files                           810      827      +17     
  Lines                         29666    30069     +403     
  Branches                       5079     5122      +43     
============================================================
+ Hits                          20987    21127     +140     
- Misses                         7265     7497     +232     
- Partials                       1414     1445      +31     
Files with missing lines Coverage Δ
...in/com/datadog/android/flags/FlagsConfiguration.kt 100.00% <ø> (ø)
...d/flags/featureflags/internal/NoOpFlagsProvider.kt 85.71% <100.00%> (ø)
.../flags/featureflags/internal/model/FlagsContext.kt 100.00% <100.00%> (ø)
...reflags/internal/model/PrecomputedFlagConstants.kt 66.67% <ø> (ø)
...lags/internal/repository/DefaultFlagsRepository.kt 44.12% <ø> (ø)
...eflags/internal/repository/net/PrecomputeMapper.kt 8.82% <ø> (ø)
...droid/flags/featureflags/model/FeatureFlagsUser.kt 100.00% <ø> (ø)
...ndroid/flags/featureflags/model/ProviderContext.kt 100.00% <ø> (ø)
.../datadog/android/flags/featureflags/FlagsClient.kt 69.70% <50.00%> (ø)
...lags/featureflags/internal/DatadogFlagsProvider.kt 80.65% <50.00%> (ø)
... and 3 more

... and 32 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@typotter typotter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Thanks for getting our CI to green

?.log(
InternalLogger.Level.WARN,
InternalLogger.Target.USER,
{ NO_PROVIDER_REGISTERED_MESSAGE.format(Locale.US, sdkCore.name) }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ooc, what what is the detekt rule that is against what looks like a pretty clean string build?

@jonathanmos jonathanmos Sep 18, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

UnsafeThirdPartyFunctionCall (format potentially throwing IllegalFormatException)

@jonathanmos
jonathanmos marked this pull request as ready for review September 18, 2025 14:36
@jonathanmos
jonathanmos requested review from a team as code owners September 18, 2025 14:36
@jonathanmos
jonathanmos merged commit ccf1684 into feature/feature-flagging Sep 18, 2025
26 checks passed
@jonathanmos
jonathanmos deleted the jmoskovich/fix-flags-ci branch September 18, 2025 14:36
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.

3 participants