Comments (21)
AllCops:
Exclude:
- "**/*.erb"
Putting this in .rubocop.yml
fixed this issue for me.
from linter-rubocop.
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.
@RonaldDijkstra for me not really option as I share my config with my team :-(
from linter-rubocop.
seems to be an problem with the language-ruby plugin.
same problem like in linter-ruby. AtomLinter/linter-ruby#26
from linter-rubocop.
I think what happened here is that this line prevented rubocop from parsing a .erb
file in the old versions:
Line 231 in 9492d9b
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.
from linter-rubocop.
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.
I also have this Problem but I'm not sure which update introduced it.
from linter-rubocop.
Have this as well. Is it possible to work around until a fix is made available?
from linter-rubocop.
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.
+1
from linter-rubocop.
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.
Filed an issue over there as it seems nobody had bothered to yet 😉.
from linter-rubocop.
@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.
@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.
Me too!
from linter-rubocop.
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.
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.
+1
from linter-rubocop.
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.
Same thing happening here.
This provides a remediation but does not fix the underlying issue:
#48 (comment)
from linter-rubocop.
Related Issues (20)
- switching on --autocorrect HOT 1
- Performance Cops will be removed from RuboCop 0.68 HOT 17
- chruby - Unable to parse rubocop version from command output: .0.67.2 (note leading dot) HOT 2
- Minimum Atom version too low HOT 10
- No rule doc available HOT 1
- Avoid opening error popups when rubocop is not found HOT 14
- Rubocop 0.72.0 changes documentation URL breaking specs HOT 2
- Error running RuboCop - Layout errors HOT 18
- Exclude flag not respected HOT 2
- CI is broken after Rubocop release 0.76 HOT 1
- Cannot read property 'stdout' of null HOT 5
- Use `bundler` to execute Rubocop configuration option does not check if bundler exists HOT 1
- Opiton to disable popup messages for the current line HOT 1
- Linter shows formatted offense documentation HOT 1
- Project-specific commands HOT 1
- False positive: Use snake_case for source file names on all Ruby files HOT 14
- Unnecessary running lint on .erb HOT 1
- Action Required: Fix Renovate Configuration
- Support for Command Substitution HOT 2
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter-rubocop.