Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rubocop and add Style/MutableConstant #4

Merged
merged 1 commit into from Sep 30, 2020
Merged

Conversation

the-wendell
Copy link
Contributor

No description provided.

Comment on lines +74 to +75
Lint/TrailingCommaInAttributeDeclaration:
Enabled: true
Copy link
Member

Choose a reason for hiding this comment

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

If this does what I think, then we don't want it (because we don't want trailing commas).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines +72 to +73
Lint/TopLevelReturnWithArgument:
Enabled: true
Copy link
Member

Choose a reason for hiding this comment

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

What does this mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nsommer
Copy link
Member

nsommer commented Sep 29, 2020

Do we really want to add all new cops? We initially said we want to keep the config lean and not include stuff by default, which I really liked. I don't even understand half of the cops added without looking them up.

@the-wendell
Copy link
Contributor Author

Do we really want to add all new cops? We initially said we want to keep the config lean and not include stuff by default, which I really liked. I don't even understand half of the cops added without looking them up.

Classic Nils!!

Anyways... all the cops that are Lint/ we 100% want. They do not check for style but for runtime errors and valid code. The Lint cops actually caught a few bugs in insurance service and payment service when I first added rubocop.

@nsommer
Copy link
Member

nsommer commented Sep 29, 2020

Anyways... all the cops that are Lint/ we 100% want.

Makes total sense, I didn't realize those are all lint comments ...

@the-wendell the-wendell merged commit ea1d6f2 into master Sep 30, 2020
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.

None yet

2 participants