Skip to content

Conversation

@ekohl
Copy link
Member

@ekohl ekohl commented Sep 26, 2023

No description provided.


def underscore(src)
src = src.gsub(/::/, '/')
src = src.gsub("::", '/')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would '::' also work? (I would have expected 👮 to yell at you)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this repo that cop is disabled. I'm not sure why RuboCop would prefer ".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, very well, then something for the future.

@@ -0,0 +1,23 @@
#!/usr/bin/env ruby
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this file added and how does it fix the Style/RedundantConstantBase cop?

not that I mind adding it, just puzzled how it fits into this PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wonders of git add with some local file that you didn't intend to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants