From b12e3b5b1315f0817e3f648037ef6281ea80b8d6 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sun, 8 Jun 2025 13:24:05 -0700 Subject: [PATCH] Fix lint errors --- .github/workflows/ci.yml | 7 +++++-- .github/workflows/linter.yml | 5 ++++- .jscpd.json | 5 +++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d90acb..74f0dca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,10 @@ name: CI on: pull_request: - branches: [ '**' ] + branches: ["**"] + +permissions: + contents: read jobs: # Set the job key. The key is displayed as the job name @@ -10,7 +13,7 @@ jobs: tests: strategy: matrix: - ruby: [ '3.4', '3.3', '3.2' ] + ruby: ["3.4", "3.3", "3.2"] name: Tests - Ruby ${{ matrix.ruby }} # Set the type of machine to run on diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 5c253c5..36cffbe 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -16,7 +16,10 @@ name: Lint Code Base ############################# on: pull_request: - branches: [ '**' ] + branches: ["**"] + +permissions: + contents: read ############### # Set the Job # diff --git a/.jscpd.json b/.jscpd.json index 6db8ed8..4a9eb29 100644 --- a/.jscpd.json +++ b/.jscpd.json @@ -1,4 +1,5 @@ { "threshold": 1, - "ignore": ["spec/**"] -} \ No newline at end of file + "ignore": ["spec/**"], + "reporters": ["threshold"] +}