Detecting Code Duplication In O365

Duplicated code impacts the quality of your Office 365 / Dynamics 365 environment. Every block of duplicated code detected across TypeScript files generates an issue in instance scans.

The severity of the issue depends on the total number of code lines that are repeated in the instance (size of the repeated block × number of lines in the block × number of repetitions). The minimum token length reported as a duplicate is set to 100.

You can find the code duplication issues on the Duplicated Code view. See also Code Duplication for a walkthrough of the dashboard, and the Code Duplication Rules List for the full rule catalogue.

Best Practice DescriptionConfiguration Element TypeIssue SeverityIssue Impact Area
Code DuplicationTypeScriptHIGH (if total number of duplicated lines is over 1000)MEDIUM (if total number of duplicated lines is between 100 and 1000)LOW (if total number of duplicated lines is between 10 and 100)MANAGEABILITY
Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!