Code Monkey home page Code Monkey logo

Comments (21)

RonaldDijkstra avatar RonaldDijkstra commented on July 24, 2024 16
AllCops:
  Exclude:
    - "**/*.erb"

Putting this in .rubocop.yml fixed this issue for me.

from linter-rubocop.

vzamanillo avatar vzamanillo commented on July 24, 2024 4

I am experiencing this issue, first time, after upgrading Atom

Software versions:

Ubuntu 18.10
language-ruby: 0.72.14
language-ruby-on-rails: 0.25.3
linter-ruby: 1.2.6
linter-rubocop: 2.2.3
Rubocop: 0.60.0
Atom: 1.32.2

.rubocop.yml

AllCops:
  TargetRubyVersion: 2.3

Metrics/LineLength:
  Max: 100

Style/AsciiComments:
  Enabled: false

from linter-rubocop.

vdhpieter avatar vdhpieter commented on July 24, 2024 3

@RonaldDijkstra for me not really option as I share my config with my team :-(

from linter-rubocop.

project0 avatar project0 commented on July 24, 2024 1

seems to be an problem with the language-ruby plugin.
same problem like in linter-ruby. AtomLinter/linter-ruby#26

from linter-rubocop.

vdhpieter avatar vdhpieter commented on July 24, 2024 1

I think what happened here is that this line prevented rubocop from parsing a .erb file in the old versions:

command.push('--stdin', filePath)

But after the change the value of the -stdin does not have an effect anymore. So the real issue here is the same as before I guess to make sure a .erb file is not marked as a ruby file

from linter-rubocop.

amerov avatar amerov commented on July 24, 2024 1

it happens again 😿
atom-linter-erb

from linter-rubocop.

tony-rowan avatar tony-rowan commented on July 24, 2024 1
AllCops:
  Exclude:
    - "**/*.erb"

Putting this in .rubocop.yml fixed this issue for me.

for me not really option as I share my config with my team :-(

You can add it to a personal config file at $HOME/.rubocop.yml that way it won't conflict with your project / team. Not a perfect solution but it's workable work around.

from linter-rubocop.

SxDx avatar SxDx commented on July 24, 2024

I also have this Problem but I'm not sure which update introduced it.

from linter-rubocop.

jensljungblad avatar jensljungblad commented on July 24, 2024

Have this as well. Is it possible to work around until a fix is made available?

from linter-rubocop.

aar0nr avatar aar0nr commented on July 24, 2024

A workaround is to switch the language of the file to HTML (Rails) instead of HTML (Ruby - ERB), and then reopen the file.

from linter-rubocop.

nickpoorman avatar nickpoorman commented on July 24, 2024

+1

from linter-rubocop.

Arcanemagus avatar Arcanemagus commented on July 24, 2024

As mentioned over in AtomLinter/linter-ruby#26 this is a bug in language-ruby, you can try installing language-ruby-on-rails which properly marks embedded ruby code as source.embedded.ruby, which this plugin (correctly) does not mark itself as being able to handle.

I'm marking this as closed since this isn't an issue that can or should be fixed here.

from linter-rubocop.

Arcanemagus avatar Arcanemagus commented on July 24, 2024

Filed an issue over there as it seems nobody had bothered to yet 😉.

from linter-rubocop.

rutgerfarry avatar rutgerfarry commented on July 24, 2024

@Arcanemagus could this issue be opened again until it's fixed? It seems the requested scope changes were made in atom/language-ruby#114, but the linter still attempts to run against .html.erb files

from linter-rubocop.

Arcanemagus avatar Arcanemagus commented on July 24, 2024

@rutgerfarry This issue has been fixed since Atom v1.4.0-beta0. If you are still experiencing this can you file a new issue with the scopes you are seeing when you run Editor: Log Cursor Scopes?

from linter-rubocop.

RonaldDijkstra avatar RonaldDijkstra commented on July 24, 2024

Me too!

from linter-rubocop.

PetrKaleta avatar PetrKaleta commented on July 24, 2024

Same here, happening again with:

Atom 1.33.0
linter 2.2.0
linter-rubocop 2.2.3
language-ruby 0.72.14
language-ruby-on-rails 0.25.3

from linter-rubocop.

vdhpieter avatar vdhpieter commented on July 24, 2024

Same here:

Atom 1.33.0
linter 2.2.0
linter-erb 1.1.1
linter-rubocop 2.2.3
linter-ruby 1.2.6
language-ruby 0.72.14
language-ruby-on-rails 0.25.3

Can you reopen this issue?

from linter-rubocop.

meap avatar meap commented on July 24, 2024

+1

from linter-rubocop.

vdhpieter avatar vdhpieter commented on July 24, 2024

I dug a bit deeper here and found that it is broken because of a rubocop update related to this issue rubocop/rubocop#4666. It breaks on rubocop 0.56.0

from linter-rubocop.

ahukkanen avatar ahukkanen commented on July 24, 2024

Same thing happening here.

This provides a remediation but does not fix the underlying issue:
#48 (comment)

from linter-rubocop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.