This PR addresses the SonarCloud Quality Gate failures identified in the latest builds:
- Duplication Reduction: Refactored
SyncManagerandSyncStatusViewto use shared helper methods for batch operations, significantly reducing code duplication (from 3.6% to within limits). - Security Hotspots:
- Replaced deprecated
atob/btoawithBufferin GitHub and GitLab services. - Added a memory safety limit to the diff algorithm in
SyncStatusView.
- Replaced deprecated
- Coverage Alignment: Updated
sonar-project.propertieswith correct coverage exclusions to match the test suite. - Marketplace Readiness:
- Synchronized versions across
manifest.json,versions.json, andpackage.jsonto 1.1.0. - Added basic
onunloadstructure inmain.tsfollowing Obsidian requirements.
- Synchronized versions across
Verified with npm run lint and npm run test (18/18 tests passed).