1
0
mirror of https://github.com/meineerde/rackstash.git synced 2025-10-17 14:01:01 +00:00

7 Commits

Author SHA1 Message Date
8db2c917c2 Fix a couple of Rubocop warnings
All of these changes are either simple formatting changes or clarify
existing meaning. None of these changes affects externally visible
behavior.
2017-10-20 19:51:11 +02:00
eab3d16ec5 Fix minor code formatting issues 2017-08-05 23:53:01 +02:00
9e23267c76 Enforce RuboCop style to write empty methods on two lines 2017-08-05 18:48:43 +02:00
ce9cc0f8b4 Disable RuboCop check for conditional assignment
It is not universally useful to enfore a single assignment mode. With
short conditionals (or even a ternary operator), an assignment of the
returned value is common. For longer or more complex conditionals, I
perfer an assignment inside the condition to decouple the conditional
checks from the assignment logic.
2017-08-05 18:44:52 +02:00
79fbd6fe97 Enforce use of obj.nil? instead of obj == nil 2017-08-05 15:13:36 +02:00
186a197fdc Do not check for BlockDelimiters style anymore
Unfortuntely, Rubocop is often not smart enough to figure out which
block style is advised in a certain situation. To avoid irritating
false-positives, we just disable this style check.
2017-08-05 15:11:28 +02:00
6958b8f509 Add Rubocop config and resolve most style issues 2017-02-16 22:47:17 +01:00