Skip to content

[2] Fix: Code style consistency#76

Open
redaranj wants to merge 17 commits intocontentauth:mainfrom
redaranj:fix/code-style-consistency
Open

[2] Fix: Code style consistency#76
redaranj wants to merge 17 commits intocontentauth:mainfrom
redaranj:fix/code-style-consistency

Conversation

@redaranj
Copy link
Member

@redaranj redaranj commented Mar 5, 2026

Changes in this pull request

  • Improve documentation formatting consistency
  • Break multi-class files into separate files
  • Refactor JSON handling
  • Code consistency improvements

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • All applicable changes have been documented
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment

tladesignz and others added 17 commits January 30, 2026 14:38
…map types to a string value manually. `SigningAlgorithm.rawValue` will automatically contain the case identifier as string. `CaseIterable` provides `.allCases` which makes sure, we catch all available algorithms in the test. Which, to be honest now became somewhat superfluous.
…e-form text string for a parameter which is only allowed to have 2 different values.
…ertible`. (Even when they're not localized. You're in good company with Apple…)
…chainSigner` to `SigningAlgorithm` to improve code clarity.
@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 70.96774% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.99%. Comparing base (af82aed) to head (d86b21a).

Files with missing lines Patch % Lines
Library/Sources/C2PAJson.swift 48.27% 15 Missing ⚠️
Library/Sources/C2PAError.swift 66.66% 10 Missing ⚠️
Library/Sources/SecureEnclaveSigner.swift 11.11% 8 Missing ⚠️
Library/Sources/WebServiceSigner.swift 84.84% 5 Missing ⚠️
Library/Sources/KeychainSigner.swift 50.00% 3 Missing ⚠️
Library/Sources/Signer.swift 84.61% 2 Missing ⚠️
Library/Sources/Builder.swift 66.66% 1 Missing ⚠️
Library/Sources/Reader.swift 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #76      +/-   ##
==========================================
- Coverage   77.09%   76.99%   -0.10%     
==========================================
  Files          39       42       +3     
  Lines        1301     1313      +12     
==========================================
+ Hits         1003     1011       +8     
- Misses        298      302       +4     
Flag Coverage Δ
unittests 76.99% <70.96%> (-0.10%) ⬇️

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.

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

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