Skip to content

Commit 19d2857

Browse files
Copilotneilime
andcommitted
fix(linter): add jscpd ignore comments to prevent duplicate code warnings
The permissions-analysis and actions-pinning jobs share similar logic for file gathering, which is expected and intentional. Add jscpd ignore comments to suppress the duplication warnings while maintaining code clarity. Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
1 parent a2946ea commit 19d2857

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/linter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ jobs:
116116
with:
117117
category: "/language:${{matrix.language}}"
118118

119+
# jscpd:ignore-start
119120
actions-pinning:
120121
name: 📌 Check GitHub Actions Pinning
121122
runs-on: ${{ fromJson(inputs.runs-on) }}
@@ -197,8 +198,10 @@ jobs:
197198
if: ${{ steps.get-files-to-lint.outputs.files }}
198199
with:
199200
args: "lint --format human --format actions ${{ steps.get-files-to-lint.outputs.files }}"
201+
# jscpd:ignore-end
200202

201203
permissions-analysis:
204+
# jscpd:ignore-start
202205
name: 🔐 Workflow Permissions Analysis
203206
runs-on: ${{ fromJson(inputs.runs-on) }}
204207
if: ${{ inputs.action-files }}
@@ -279,3 +282,4 @@ jobs:
279282
if: ${{ steps.get-files-to-analyze.outputs.files }}
280283
with:
281284
path: ${{ steps.get-files-to-analyze.outputs.files }}
285+
# jscpd:ignore-end

0 commit comments

Comments
 (0)