Summary
SonarCloud analysis shows 5.0% duplicated lines on new code. This technical debt should be addressed to improve maintainability.
Duplication by Directory
| Directory |
Duplication % |
Duplicated Lines |
| OpenTDFKit |
4.4% |
308 |
| OpenTDFKitCLI |
6.8% |
124 |
| xtest |
14.1% |
34 |
| OpenTDFKitProfiler |
0.0% |
0 |
| .github/workflows |
0.0% |
0 |
| Package.swift |
0.0% |
0 |
Areas to investigate
-
OpenTDFKit (308 lines) - Likely candidates:
- Crypto operations across TDF/NanoTDF implementations
- Key derivation code in KeyStore/CryptoHelper
- Similar encryption/decryption patterns
-
OpenTDFKitCLI (124 lines) - Likely candidates:
- Command handling patterns
- Environment variable parsing
- File I/O operations
-
xtest (34 lines) - Lower priority, test/integration code
Suggested approach
Acceptance criteria
- Reduce overall duplication to < 3%
- No duplication in new code contributions
- Maintain or improve test coverage
Summary
SonarCloud analysis shows 5.0% duplicated lines on new code. This technical debt should be addressed to improve maintainability.
Duplication by Directory
Areas to investigate
OpenTDFKit (308 lines) - Likely candidates:
OpenTDFKitCLI (124 lines) - Likely candidates:
xtest (34 lines) - Lower priority, test/integration code
Suggested approach
Acceptance criteria