chore: exclude 3rd party code from line duplication #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the SonarQube configuration to exclude specific third-party files from duplication analysis.
We are excluding the AnyCodable helper files from SonarQube's duplicated lines analysis because these files are derived from the open-source Flight-School/AnyCodable library (https://github.com/Flight-School/AnyCodable) and are considered vendor/third-party code. Refactoring or modifying them would make it difficult to update from the upstream source and is not recommended. Excluding such files from duplication checks is a standard practice for vendor code, as we are not responsible for their structure or code quality.
Configuration updates:
sonar-project.properties
: Addedsonar.cpd.exclusions
to excludeSources/FormbricksSDK/Helpers/AnyCodable/*.swift
from duplication checks. These files are derived from the open-sourceFlight-School/AnyCodable
library and are considered vendor code, making them unsuitable for refactoring or modification.