Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/ronin-rb/rubocop-ronin
rubocop configuration for the ronin-rb project
https://github.com/ronin-rb/rubocop-ronin
9573ea9b3f2b638e4c1045139b1ca2b4f6eb9da2 authored about 1 year ago
d122f65ee10a335de2324757be8eee57589d47f7 authored about 1 year ago
* This rule is flagging compound logical statements with parenthesis,
and I feel like the pare...
1f0f1bac8de68f09190b82b60a1f1f0e12c34b04 authored over 1 year ago
61f974cc5e10c6048df8636b09ef78854de7bd90 authored over 1 year ago
38e1e1c9934180be673891717d35c70bf5bacd5a authored over 1 year ago
04eded96a04beea52b5e494d31b22bd6fcab7e82 authored over 1 year ago
f2ca9459ea9a80fa9c5b4044e9011ed25da8f7ad authored over 1 year ago
b5e02e86195afb358ced56a0074eda5ba4636a20 authored over 1 year ago
aa26ac6bb920ea229e3f7c9e1531b2cf16dd48d3 authored over 1 year ago
9f987ac85d22eeac59675a7ff14f8e3de5bb79ef authored over 1 year ago
ac618c3baeb95b34cc18b7e4e1496ece887875d5 authored over 1 year ago
e11736173a2b347219fe0b4a0ee771c4d9dc5294 authored over 1 year ago
f77323c2329649489e7418c8f6846bfc439330ad authored almost 2 years ago
9f8bffd69ec9b8f4c1a7e21ea909f1b8873c44ab authored almost 2 years ago
be95fb8ba4607672a097bc2f537e5a1f01234743 authored almost 2 years ago
65a935e6d11af1f24781d8ae3fbb42e06dfed3a3 authored almost 2 years ago
853922b849579ad59183d400c426fbf7d5148b8f authored almost 2 years ago
* I am not a fan of single-line empty methods:
```ruby
def foo; end
```
70b6ce6dd021a8f23c1142f0c92d1b5761346333 authored almost 2 years ago
c28de8335e0b60a6b81ba9503e8ecf30b3142e66 authored almost 2 years ago
d819f104c4d710869f7033151e20bbaa2a47af8a authored almost 2 years ago
22cff2a6a207193c62cef36d09c7c8558f43b039 authored almost 2 years ago
5ca97c492e85099ddb233e7fcec164e54c0ce6c2 authored almost 2 years ago
9de92fe48b3a838474a419924d719f484eea5090 authored almost 2 years ago
28b5f2f7a7c03ec2b2d075c91720d1f20fd69e49 authored almost 2 years ago
* This rule is not aware of when keyword arguments are vertically
aligned with the first keywo...
* It's useful to use STDOUT directly in specs, but otherwise use
`$stdout` in `lib/` code.
* I prefer `has_foo?` style method names.
c698a5b8031920877a4ced74df124579adf78a60 authored almost 2 years ago
* This conflicts with methods where a required keyword argument is at
the very end of the keyw...
e74a7f760146d8c90d8fd5cdda911a232c4e04ef authored almost 2 years ago
e89b9074939c2fd63226f682d8f7cb8555b8ad23 authored almost 2 years ago
4faeee537a9c7d998b73f2502e3ffe983fabf6b9 authored almost 2 years ago
7b2705de1135e1c803d43afb40d05c78b77fd8a3 authored almost 2 years ago
* I use a space before the comma to indicate that a keyword argument
requires a value:
```r...
ad55e374422cc23c765279757554a42bad6e5604 authored almost 2 years agoe296c305033b986160040e02aaca1e5ab8cf047e authored almost 2 years ago
43f89f1696a3c76a6b69e142e5bca64aace49cdf authored almost 2 years ago
* I prefer to use double quotes for english text, URLs, RSpec descriptions.
086511ad023473e610ed282b4d2f6a97ef1aa032 authored almost 2 years ago19d42550a8fd0b5578603ec0647dcd6db0c6ffe7 authored almost 2 years ago
b0ea6adb9cd96c5b084bacb9a0fe265bd135af52 authored almost 2 years ago
235d01acbfda5295bc5a2adf01fecd2621eb893e authored almost 2 years ago
4ef1e68adbfb7f2468db06f28067e28f303f81ef authored almost 2 years ago
abda9b88e7316c518173c4e75c4e81517cd50ce4 authored almost 2 years ago
* I use sole-nested conditions frequently instead of safe-navigation or
to breakup complex if ...
* If the programmer uses `rescue => error` without an exception class,
then they most likely w...
f11992878f4a94057795aa5bd03ff7510b91f3bb authored almost 2 years ago
* I prefer to escape the `.` within regexp `[ ]` character sets, even
though it's apparently n...
6b9f01c18d8fd3ac159c170f8c47d0743ce5d439 authored almost 2 years ago
* I always use double quotes when created quoted Symbols.
83882c08d1496d68b3f2bf15ecd755e167fa5e32 authored almost 2 years ago* I prefer `has_key?`/`has_value?` to `key?`/`value?`.
ef7a6118e79ef108bfff8def70d10958b32cf302 authored almost 2 years ago* Let the programmer group conditions using parentheses as they see fit.
44d86cc0295668ce30f999df4fc309387a778828 authored almost 2 years ago1bbc25e24415d576634ac65880445cb1bb875c39 authored almost 2 years ago
* I often prefer to use explicit `return`s to indicate the return value.
36405239883de4eddd74df45ed18d4e88dad568a authored almost 2 years ago988d9294eedeb30d8f639cffe60557813201b50a authored almost 2 years ago
* This rule cannot detect when blocks are aligned after an `=`
assignment:
```ruby
foo = ...
* Sometimes I prefer using `%w[]` word arrays, and sometimes I prefer to
use explicit `[]` Str...
37a75c8df1168d2fb28edf7de2b63af56e19f989 authored almost 2 years ago
* I am not a fan of the new safe-navigation operator (`&.`).
63975f8b380f4971487f4d8e8cebbc06e8875d6f authored almost 2 years agod79cf6ebd35f0a53c2672f1d38e167df7f935d45 authored almost 2 years ago
* Configure it to prefer stabby lambdas.
c4e59fce3c3b47025fa0bca9f6a8ef4e632019f5 authored almost 2 years agod2703902f8a519c730416dbf28fdb8885b4f1293 authored almost 2 years ago
* I prefer to define accessors one per-line. Sometimes I will group them
in the specs.
f885b6d1e3871fe49a87994d2ac63cfab399e33c authored almost 2 years ago
* Exclude specific files that do not need to call `super()` because the
superclass does not de...
a39cef07a61782b47c10c7237be7e7abb2fdb3ad authored almost 2 years ago
69ccca6aab5433e52cefa3b3cef53719dfc9b3cc authored almost 2 years ago
* We are adult programmers here, we can compare values to `0` or greater
than `0` without usin...
fca7db2de489bcf9e1a4aa93030ea3564ce08c40 authored almost 2 years ago
* Sometimes it might be necessary to leave constants mutable.
de048e2c297ffbc1e25e22051c11d3247f629bb8 authored almost 2 years agobd2db2534d7e09aae4dab9ffdcd33d1477f45a6f authored almost 2 years ago
372ccbf24408b275d382671bbb5f2944f7757463 authored almost 2 years ago
c42987e852ee0829ea8a8365fe4ceaa75905783d authored almost 2 years ago
21a51507bc9ad25690c529144537d52e996695ba authored almost 2 years ago
ca31b9179d6c783fca055bee9b14db9730229d4f authored almost 2 years ago
* It is valid to put optional arguments at the beginning or in the
middle of a method's argume...
* Exclude the `spec/` directory though.
ce318ddd94ea968e272735e9c6347da1f838892a authored almost 2 years ago9c01a66aab77aaf5f0a8d0c952b01edd1765a60d authored almost 2 years ago
* Exclude files which need to define empty place holder methods.
8243e5ba950ae7676708da86774e7a12a67e9733 authored almost 2 years ago
* I prefer to define keyword arguments in the order they will typically
be given to a method-c...
12046ffe3e71aef4023c6ea4f1a6c68071bed11b authored almost 2 years ago
398bd507972c87bfa49c2e3373ae10b2abc6e3d0 authored almost 2 years ago
* I prefer to sometimes compress `if`/`else` statements to three lines:
```ruby
if conditio...
* The `$/` global variable, which represents the Operating System's
new-line deliminator, is u...
* I prefer to use explicit multi-line `if`/`unless` when raising
exceptions or returning value...
* Not a fan of *always* using guard clauses (ex: `return unless var`)
over explicit `if`/`unle...
d35b1bec903dbd8c8ea2609f796360a035ad24a9 authored almost 2 years ago
* Exclude the `spec/` directory though.
9ed4ec538cb8e047f2ffbbc5fc9cb08eda3497ec authored almost 2 years ago500d6be5f845688f4592fc9ceb51e32536ef5044 authored almost 2 years ago
* This clashes with Ronin's overall style of not adding a space after
`{` or before `}`.
82a8da464a71a1f10de07ca595b14edd286de41e authored almost 2 years ago
* Variable names should be descriptive. Shortening `error` to `e` makes
the code *less* readable.
* I am a fan of `.kind_of?(ClassName)` over `.is_a?(ClassName)`.
906686afed4cb7f33abaff838232cb7ebf6c2033 authored almost 2 years ago
* The defacto rule is to use `{` `}` blocks when chaining together
multiple method calls. This...
* This rule is not configurable and we use spaces after the comma for
Hashes and method-calls ...
* It's unaware of different alignments of groupings of keys/values,
and tries to validate alig...
bf20359e4e73915449df734a521edc96cd28d534 authored almost 2 years ago
00f443c50831c8aa7536faed80c1d4b28dc38c91 authored almost 2 years ago
2d5f7f4e8aaf33e94ba0a610e229fba57c73b52a authored almost 2 years ago
6cbcb4fd6f2d09f302e56be501fa463bf595b3ef authored about 2 years ago
d1569c0ed3bad9972301b577d96cd691e0756e70 authored over 2 years ago