diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 1fafaf0..d7646db 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -31,7 +31,7 @@ jobs: - name: Install Node.js dependencies run: pnpm install - + - uses: actions/cache@v3 name: Setup pnpm cache with: @@ -70,7 +70,7 @@ jobs: - name: Install Node.js dependencies run: pnpm install - + - uses: actions/cache@v3 name: Setup pnpm cache with: diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml index be0df40..be837c2 100644 --- a/.github/workflows/lints.yml +++ b/.github/workflows/lints.yml @@ -31,7 +31,7 @@ jobs: - name: Install Node.js dependencies run: pnpm install - + - uses: actions/cache@v3 name: Setup pnpm cache with: diff --git a/.prettierignore b/.prettierignore index df1a0d2..7635077 100644 --- a/.prettierignore +++ b/.prettierignore @@ -12,4 +12,5 @@ yarn.lock bin/ views/ .vscode/ -documentation/ \ No newline at end of file +documentation/ +pnpm-lock.yaml \ No newline at end of file diff --git a/lib/simplecov-tailwindcss.rb b/lib/simplecov-tailwindcss.rb index 7658491..cc7da94 100644 --- a/lib/simplecov-tailwindcss.rb +++ b/lib/simplecov-tailwindcss.rb @@ -100,19 +100,18 @@ def generate_file_detail(file) template("file_detail").result(binding) end - # rubocop:disable Lint/SelfAssignment, Style/RedundantRegexpEscape + # rubocop:disable Lint/SelfAssignment def generate_group_page(title, files, created_date) - title_id = title.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-\_]/, "") + title_id = title.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-_]/, "") title_id = title_id template("group_page").result(binding) end def remove_spaces(name) - name.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-\_]/, "") + name.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-_]/, "") end - # rubocop:enable Lint/SelfAssignment, Style/RedundantRegexpEscape - + # rubocop:enable Lint/SelfAssignment def format_number(number) whole, decimal = number.to_s.split(".") whole_with_commas =