#rubocop — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #rubocop, aggregated by home.social.
-
Did anyone ask for a bunch of #RuboCop bug-fixes? Here you go https://github.com/rubocop/rubocop/releases/tag/v1.86.2
-
RuboCop: Layout/LineLength: Line is too long. [81/80]. One character. The centurion is not amused.
-
🎉 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! 🖥️🔧
https://github.com/bbatsov/neocaml #developerchaos #HackerNews #ngated -
Neocaml – Rubocop Creator's New OCaml Mode for Emacs
-
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%.
-
@MoskitoHero there's a #ruby convention about that:
https://rubystyle.guide/#safe-because-unsafe
But I've seen them disabled on most #rubocop configurations I've seen so far.
There's also something similar in #reek:
https://github.com/sdurko/reek/blob/master/docs/Prima-Donna-Method.md
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.
-
@MoskitoHero there's a #ruby convention about that:
https://rubystyle.guide/#safe-because-unsafe
But I've seen them disabled on most #rubocop configurations I've seen so far.
There's also something similar in #reek:
https://github.com/sdurko/reek/blob/master/docs/Prima-Donna-Method.md
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.
-
@MoskitoHero there's a #ruby convention about that:
https://rubystyle.guide/#safe-because-unsafe
But I've seen them disabled on most #rubocop configurations I've seen so far.
There's also something similar in #reek:
https://github.com/sdurko/reek/blob/master/docs/Prima-Donna-Method.md
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.
-
@MoskitoHero there's a #ruby convention about that:
https://rubystyle.guide/#safe-because-unsafe
But I've seen them disabled on most #rubocop configurations I've seen so far.
There's also something similar in #reek:
https://github.com/sdurko/reek/blob/master/docs/Prima-Donna-Method.md
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.
-
@MoskitoHero there's a #ruby convention about that:
https://rubystyle.guide/#safe-because-unsafe
But I've seen them disabled on most #rubocop configurations I've seen so far.
There's also something similar in #reek:
https://github.com/sdurko/reek/blob/master/docs/Prima-Donna-Method.md
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.
-
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 📈😩.
-
@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. 😄