Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefpansancolt committed Nov 23, 2023
1 parent 7739201 commit 0bcb404
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Install Node.js dependencies
run: pnpm install

- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:

- name: Install Node.js dependencies
run: pnpm install

- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Install Node.js dependencies
run: pnpm install

- uses: actions/cache@v3
name: Setup pnpm cache
with:
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ yarn.lock
bin/
views/
.vscode/
documentation/
documentation/
pnpm-lock.yaml
9 changes: 4 additions & 5 deletions lib/simplecov-tailwindcss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 0bcb404

Please sign in to comment.