rubocop
Here are 326 public repositories matching this topic...
I'm seeing double/instance_double/class_double/object_double/spy etc. being called with sometimes a string, sometimes a symbol (perhaps because the rspec-mocks documentation explicitly allows both), and of course sometimes a constant referring to a class or module.
I think mixing string and symbol arguments is a bit of a mess, so I would propose making a new cop that enforces either one or the
-
Updated
Jul 6, 2022 - Ruby
-
Updated
Jun 27, 2022 - Ruby
-
Updated
May 13, 2022 - Ruby
-
Updated
Oct 29, 2020 - Vim script
-
Updated
Mar 10, 2022 - Python
Found bug on beta while testing unrelated changes. Line 509 in assignment_controller.rb was causing a crash when validate_assignment_questionnaires_weights() in assignment_form.rb found that weights did not add to 0 or 100.
In #2034 I made a patch for it to prevent the crash but the flash message is not as descriptive as it should be. Assignment_form.rb wants the error message to be '"Failed t
Hey guys not sure if this is still maintained, for some reason running rubocop -a is throwing several
GraphQL/ExtractInputType errors inside of an input type object
example of the error:
app/graphql/types/public/program_application_attributes.rb:11:7: C: GraphQL/ExtractInputType: Consider moving arguments to a new input type
argument :company_size, String, required: false, descri
-
Updated
Apr 6, 2022 - Ruby
-
Updated
May 17, 2022 - Ruby
-
Updated
Sep 12, 2020 - Ruby
We should add tests to avoid this (#31) kind of failure before merging it similar to https://github.com/reviewdog/action-template and other actions.
@mgrachev Can you work on it?
-
Updated
Jul 3, 2022 - Ruby
-
Updated
Aug 9, 2021 - Ruby
-
Updated
Jun 29, 2022 - Ruby
-
Updated
Sep 23, 2020 - Ruby
-
Updated
Aug 2, 2021 - Ruby
-
Updated
Jun 23, 2022 - Ruby
Improve this page
Add a description, image, and links to the rubocop topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the rubocop topic, visit your repo's landing page and select "manage topics."
The example in the documentation for
Style/GuardClause
is misleading because mentioned bad and good version don#t match execution.It says
However both versions behave differently and bad can't be replaced by good.
Imagine
something
beingtrue
and `f