veganstraightedge, to random
@veganstraightedge@ruby.social avatar

Is there a rule to disallow using a trailing slash for a multiline string?

bad

"foo" \
"bar" \
"baz"

good

"foo bar baz"

<<~STRING.squish
foo
bar
baz
STRING

veganstraightedge, to random
@veganstraightedge@ruby.social avatar

What is the rule to require that all methods are be either on the same line or each on its own line?

Same for method chaining? All on one line or each on its own line?

args

bad

method(arg1, arg2,
argthreeeeeeeeeee)

good

method(arg1, arg2, argthreeeeeeeeeee)

method(
arg1,
arg2,
argthreeeeeeeeeee
)

chained

bad

foo.bar
.baaaaaaaaaaaaaz

good

foo.bar.baaaaaaaaaaaaaz

good

foo
.bar
.baaaaaaaaaaaaaz

masukomi, to ruby
@masukomi@connectified.com avatar

/ geeks

It took me a while to figure out the collection of magical incantations required to get to run on ONLY the changed files in a GitHub Workflow. So, I made a quick blog post with the details. I also included a variation for when you're ready to have it run on all your files. I recommend the latter.

https://weblog.masukomi.org/2023/06/19/github-rubocop-workflow/

masukomi, to random
@masukomi@connectified.com avatar

Any geek know what is smoking here?

It's simultaneously telling me I'm violating a "cop" AND telling me my disabling of warnings about violating that cop are "unnecessary"

ivan18rod, to random

I was surprised that according to , a for , my code, consisting of 7 files, committed ~171 "offenses." Yikes!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • cubers
  • DreamBathrooms
  • everett
  • magazineikmin
  • osvaldo12
  • Youngstown
  • khanakhh
  • slotface
  • mdbf
  • rosin
  • thenastyranch
  • kavyap
  • Durango
  • JUstTest
  • InstantRegret
  • tester
  • ethstaker
  • GTA5RPClips
  • tacticalgear
  • cisconetworking
  • ngwrru68w68
  • normalnudes
  • provamag3
  • modclub
  • Leos
  • anitta
  • lostlight
  • All magazines