Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bug) No space detected where there should be a single space #312

Open
alec-c4 opened this issue Mar 10, 2023 · 0 comments
Open

(bug) No space detected where there should be a single space #312

alec-c4 opened this issue Mar 10, 2023 · 0 comments

Comments

@alec-c4
Copy link

alec-c4 commented Mar 10, 2023

Hey!
I've met a strange bug. When I run erb-lint from my pre-commit hook with

bundle exec erblint --lint-all --autocorrect

I see following errors

  EXECUTE > erb-lint
Linting 70 files with 13 linters...

No space detected where there should be a single space.
In file: app/views/layouts/_application_header.html.erb:18

No space detected where there should be a single space.
In file: app/views/layouts/_application_header.html.erb:95

No space detected where there should be a single space.
In file: app/views/layouts/_application_header.html.erb:133

No space detected where there should be a single space.
In file: app/views/layouts/_application_header.html.erb:137

No space detected where there should be a single space.
In file: app/views/layouts/_application_header.html.erb:151

No space detected where there should be a single space.
In file: app/views/layouts/_application_header.html.erb:219

No space detected where there should be a single space.
In file: app/views/layouts/_application_header.html.erb:238

7 error(s) were found in ERB files

but when I run

bundle exec erblint --lint-all --autocorrect

from console, I see

❯ bundle exec erblint --lint-all --autocorrect
Linting and autocorrecting 70 files with 13 linters (10 autocorrectable)...

No errors were found in ERB files

There are one of problematic lines

<path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0" />

and I have no idea what's wrong with this line

Tasks

No tasks being tracked yet.
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

No branches or pull requests

1 participant