Skip to content

Exclude intentional src/Polyfills boilerplate from duplicate-code reporting#8593

Merged
Evangelink merged 2 commits into
mainfrom
copilot/duplicate-code-polyfill-file-structure
May 26, 2026
Merged

Exclude intentional src/Polyfills boilerplate from duplicate-code reporting#8593
Evangelink merged 2 commits into
mainfrom
copilot/duplicate-code-polyfill-file-structure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 26, 2026

The duplicate-code detector flagged repeated polyfill file scaffolding (auto-generated header + preprocessor/type-forwarding structure) across src/Polyfills/** as high-severity duplication. This PR narrows detector scope so intentional polyfill boilerplate is treated as non-actionable.

  • Dedup scan scope (jscpd)

    • Updated .github/workflows/dedup-analysis.yml to ignore **/src/Polyfills/**, preventing this known generated/structural pattern from being surfaced as duplication findings.
  • Detector policy guidance

    • Updated .github/workflows/duplicate-code-detector.md “Skip These Patterns” to explicitly classify polyfill structure boilerplate in src/Polyfills/** as ignorable noise.
  • Representative config change

    --ignore "**/bin/**,**/obj/**,**/artifacts/**,**/*.Designer.cs,**/*.g.cs,**/*.xlf,**/*.resx,**/PublicAPI.*.txt,**/test/**,**/samples/**,**/formal-verification/**,**/src/Polyfills/**"

Copilot AI requested review from Copilot and removed request for Copilot May 26, 2026 05:44
Copilot AI linked an issue May 26, 2026 that may be closed by this pull request
9 tasks
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot May 26, 2026 05:57
Copilot AI changed the title [WIP] Remove duplicate code in polyfill file structure Exclude intentional src/Polyfills boilerplate from duplicate-code reporting May 26, 2026
Copilot AI requested a review from Evangelink May 26, 2026 05:59
@Evangelink Evangelink marked this pull request as ready for review May 26, 2026 06:46
Copilot AI review requested due to automatic review settings May 26, 2026 06:46
@Evangelink Evangelink enabled auto-merge (squash) May 26, 2026 06:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR tunes the repository’s duplicate-code detection workflow and its operator guidance to treat intentional polyfill scaffolding under src/Polyfills/** as non-actionable noise, preventing high-severity duplication reports driven by boilerplate.

Changes:

  • Updated the jscpd ignore list in the dedup-analysis workflow to exclude **/src/Polyfills/**.
  • Documented the src/Polyfills/** boilerplate pattern as a “Skip These Patterns” item in the duplicate-code detector guidance.
Show a summary per file
File Description
.github/workflows/duplicate-code-detector.md Adds explicit guidance to ignore known src/Polyfills/** boilerplate patterns during duplicate triage.
.github/workflows/dedup-analysis.yml Excludes src/Polyfills/** from jscpd scanning to avoid flagging intentional scaffolding as duplication.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@Evangelink Evangelink disabled auto-merge May 26, 2026 07:47
@Evangelink Evangelink merged commit 3670f86 into main May 26, 2026
29 checks passed
@Evangelink Evangelink deleted the copilot/duplicate-code-polyfill-file-structure branch May 26, 2026 07:47
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.

[duplicate-code] Duplicate Code: Polyfill File Structure Boilerplate

3 participants