Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Mailo Světel
    @roolo
    @jeantoledo Try integrated terminal or https://github.com/misogi/vscode-ruby-rubocop
    Jeff Dickey
    @jdickey
    @roolo https://semantic-ui.com/ is up; was it down? You might find http://isup.me helpful for figuring out if a site is really down
    Mailo Světel
    @roolo
    I noticed Rubocop::Cop::Style::SpecialGlobalVars is changing the variable name, but it is not checking for a requiring of English module
    Is it still a thing, or it is fixed by now? (We are using a bit older Rubocop -- 0.51)
    Maciej Mensfeld
    @mensfeld
    Hey guys
    will there be a 052.1 release to cover bug fixes?
    due to some of the problems we can't use 0.52.0 without fixes and we can't use bleeding edge as well
    mareczek
    @mareczek
    Hi guys, thank you for a implementing rubocop - it is very needed
    although I see it depends on Soft Tab indentation
    can it be reconfigured to prefer Hard Tab?
    Layout/Tab:
      Enabled: false
    is not enough, because this only disables the rule. I would like to force a rule to use Hard Tabs
    and other rules also depend on indentWith: ~ which only counts the number of spaces when it should be counting the number of tabs
    Mailo Světel
    @roolo
    Hola @mareczek, It doesn't seems to be configurable. I guess it is community voice for using spaces everywhere.
    Does some other technology ask You to use tabs?
    (You can try to open feature request for that and You'll see if somebody would implement it)
    mareczek
    @mareczek
    I want to use tabs :)
    I don't want to force people to use the same indent size, I'd much rather give them a choice to set a single tab size to 1, 2, 3, 4, <any> number of spaces
    Brandon Weiss
    @brandonweiss
    Hey! I want to verify that a node is the only thing on the rest of the line and I'm not quite sure what the right way to do that is. I'm looking at examples and it seems like there are so many different ways to do the same thing (or I just don't understand what the difference is).
    Is there a method on node that does this? I looked but didn't see anything obvious… I guess I'd have to combine node.single_line? with… something else?
    Brandon Weiss
    @brandonweiss
    I figured it out—checking node.arguments.empty? works for my case.
    Benjamin Quorning
    @bquorning
    Has anyone figured out how to use Rubocop caching on Circle CI. Their documentation (https://circleci.com/docs/2.0/caching/) says “Cache is immutable on write: once a cache is written for a particular key like node-cache-master, it cannot be written to again.” That doesn’t work well for a Rubocop cache.
    Ananthavijay
    @Ananthavijay
    hi
    how to create a fuse delay tweeting
    with ruby
    Jonas Arvidsson
    @jonas054
    @mareczek I think RuboCop would have to support SmartTabs rather than HardTabs, because otherwise alignment with something on the previous line will look different (wrong) depending on your tab setting. It's not trivial. But do open an issue in GitHub so we can discuss it.
    Aaron Rosenberg
    @agrberg
    Hi all, I'm having a little trouble with Rubocop and don't know if it's my system or if I'm misunderstanding something. We haven’t been the most attentive at keeping our todo file clean. I’m attempting to regenerate it with rubocop --auto-gen-config --exclude-limit 500 but it looks like it is only working part way. Unless I misunderstand --exclude-limit, I think it is getting ignored. The resulting todo file does not list the files that violate their respective cops. Worse, rubocop still fails after generating the todo. When I set it up ages ago I think it was supposed to pass once all the violations were collected.
    Benjamin Quorning
    @bquorning
    @agrberg And you are sure you are using the same version of rubocop for generating the todo list as you use for running your check afterwards (with e.g. bundle exec)?
    Aaron Rosenberg
    @agrberg
    I've done it both with bundle exec and without but I will do it again w/ bundle exec just to make sure I'm not delusional
    Benjamin Quorning
    @bquorning
    I am using the exact same command, and I get a working todo list.
    Aaron Rosenberg
    @agrberg
    running bundle exec rubocop --auto-gen-config --exclude-limit 500 now ... it can take a little while
    For reference rubocop -V yields "0.52.1 (using Parser 2.4.0.2, running on ruby 2.5.0 x86_64-darwin16)"
    Benjamin Quorning
    @bquorning
    Thought I have sometimes seen 1 or 2 cops that will fail still, where I had to manually add them to the config file afterwards.
    Aaron Rosenberg
    @agrberg

    Same problem :-( the biggest changes all look like the following:

    Metrics/AbcSize:
      Exclude:
        - 'app/controller/…'
        - 'app/controller/…'

    is changed to

    Metrics/AbcSize:
      Max: 341
    The other changes seem fine and if I discard all those changes I can run rubocop without failures
    Benjamin Quorning
    @bquorning
    That indeed looks like exclude-limit not working. Did you double check that the dashed aren’t long dashes (- vs –). Perhaps add a = before 500?
    Aaron Rosenberg
    @agrberg
    My potentially incorrect assumption is that --exclude-limit should stop that from happening. I don't recall needing another option to get the file list ages ago when it was first made.
    Benjamin Quorning
    @bquorning
    Hi again @agrberg – I usually have Metrics cops disabled. But I had an idea – I enabled my Metrics counts, and re-ran auto-gen-config. And indeed, all Metrics cops just had a Max limit, and no list of Exclude files.
    I don’t know if this is a bug or a feature, and when it was introduced.
    Aaron Rosenberg
    @agrberg
    Did rubocop still report offenses with the Max limit added?
    Benjamin Quorning
    @bquorning
    I didn’t try, but I would assume not.
    Which cops did you get offense reported from after you recreated the todo?
    Aaron Rosenberg
    @agrberg
    It was definitely the metrics ones. I can get you a full list but it'll take a sec.
    Aaron Rosenberg
    @agrberg
    Actually quite a lot more than I thought. I'm not sure why they disappear when it's only the listing of files under the metrics cops that are changing. I'm going to look into a few of them and see if I can't get a better picture of what's happening.
    Benjamin Quorning
    @bquorning
    :+1:
    Aaron Rosenberg
    @agrberg
    I also posted issue #5576 today about the other Rubocop abnormality I was experiencing. I'm not sure if I have something odd with my system since I didn't see any other issues or StackOverflow posts of people with similar problems.
    Aaron Rosenberg
    @agrberg
    I was mistaken, besides a number of Lint/UnneededDisable due to the increased Max the rest were RSpec/MultipleExpectations cops from older tests
    Which is one of the groups that had a list of files replaced by a Max
    Bill Mill
    @llimllib
    I found a bug in rubocop and am attempting to repro with a test in the official repo; what's the best way to run rubocop on itself?
    Mailo Světel
    @roolo
    @llimllib https://github.com/bbatsov/rubocop/blob/master/Rakefile#L48 seems like way to go (rake internal_investigation)
    Steven Zeck
    @stevenzeck
    Hi all. Question, is there a way to get the contents from --auto-correctwhile using --stdin apart from the end of stdout? I'm having trouble splitting the string between the report and the corrections, due to ==================== followed by a newline being different based on the OS and, seemingly, editor settings
    Csaba Apagyi
    @thisismydesign
    hi, i just wrote a post on making parallel auto-correct work, i wonder what you think about it? https://medium.com/@csaba.apagyi/how-to-rubocop-parallel-auto-correct-8d4b68a22d8b