home.social

#rubocop — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #rubocop, aggregated by home.social.

  1. RuboCop: Layout/LineLength: Line is too long. [81/80]. One character. The centurion is not amused.

    #Rubycon2026 #Ruby #RuboCop #DevHumor #Rimini

  2. 🎉 Behold, the latest in the never-ending quest to make #Emacs less user-friendly! The #Rubocop creator has decided to grace us with #Neocaml, because apparently OCaml wasn't hard enough already without some #TreeSitter magic. 🤪 Embrace the chaos, developers! 🖥️🔧
    github.com/bbatsov/neocaml #developerchaos #HackerNews #ngated

  3. I added a new configuration option to the `Naming/PredicateName` RuboCop rule: `UseSorbetSigs`. And it’s now released.

    If set, it will take into account Sorbet sigs. So it will only complain if the method doesn’t start/end with the right things (like is_, has_, question mark) if there’s a `returns(T::Boolean)` sig.

    Setting this option has reduced the number of TODOs for this rule in the `github/github` codebase by over 50%.

    #Ruby #RuboCop #Sorbet

  4. @MoskitoHero there's a #ruby convention about that:

    rubystyle.guide/#safe-because-

    But I've seen them disabled on most #rubocop configurations I've seen so far.

    There's also something similar in #reek:

    github.com/sdurko/reek/blob/ma

    Anyway, I do support that convention, but I lean more on not use them that often. I do prefer "safe" methods (functional style much) and I don't use it for side effect - it's implicit in their module names.

  5. @MoskitoHero there's a #ruby convention about that:

    rubystyle.guide/#safe-because-

    But I've seen them disabled on most #rubocop configurations I've seen so far.

    There's also something similar in #reek:

    github.com/sdurko/reek/blob/ma

    Anyway, I do support that convention, but I lean more on not use them that often. I do prefer "safe" methods (functional style much) and I don't use it for side effect - it's implicit in their module names.

  6. @MoskitoHero there's a #ruby convention about that:

    rubystyle.guide/#safe-because-

    But I've seen them disabled on most #rubocop configurations I've seen so far.

    There's also something similar in #reek:

    github.com/sdurko/reek/blob/ma

    Anyway, I do support that convention, but I lean more on not use them that often. I do prefer "safe" methods (functional style much) and I don't use it for side effect - it's implicit in their module names.

  7. @MoskitoHero there's a #ruby convention about that:

    rubystyle.guide/#safe-because-

    But I've seen them disabled on most #rubocop configurations I've seen so far.

    There's also something similar in #reek:

    github.com/sdurko/reek/blob/ma

    Anyway, I do support that convention, but I lean more on not use them that often. I do prefer "safe" methods (functional style much) and I don't use it for side effect - it's implicit in their module names.

  8. @MoskitoHero there's a #ruby convention about that:

    rubystyle.guide/#safe-because-

    But I've seen them disabled on most #rubocop configurations I've seen so far.

    There's also something similar in #reek:

    github.com/sdurko/reek/blob/ma

    Anyway, I do support that convention, but I lean more on not use them that often. I do prefer "safe" methods (functional style much) and I don't use it for side effect - it's implicit in their module names.

  9. Seriously considering launching myself as able to take on #freelance work on #Ruby, #RuboCop, #Sorbet, etc stuff.

    There’s something very satisfying about fixing a list of things and making a codebase better in terms of consistency and developer experience. And I know a lot of people don’t enjoy that.

    Very part-time. I love my “real” job and everything else I do (OSS, events). After my maths exam would make more sense. But I’m still bored at weekends and the winter electricity bills are 📈😩.

  10. @here_for_code @evilmartians I like #standardrb because it uses #RuboCop but only implements basic and non-controversial rules that help with linting.

    I occasionally use #RubyMine for the (putatively) automated refactorings and to play around with #AI integrations, but I'm a #CLI guy and don't find IDE's very intuitive. I use heavily customized #vim, #ack or #thesilversearcher, and #ctags for day to day stuff. It just seems faster to me, but that could just be muscle memory and habit. 😄