rubocop-dev_doc 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c36d2d77bcdffd7f74968817e83dbdb75134e3e3d63b953127e4475f7c1841f9
|
|
4
|
+
data.tar.gz: db6ef7a22d41f10f30e6e6ffedfdb1c7605bc849907290930f9d1eae4f0c49b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a874f22bc4773c0abaeb6de19587b5c1934061d40fb608831b2c725d060acdc39c8817689f38cab35041d1a67d99cfc12daf995a4bc3780fcc91a4f99901dfcb
|
|
7
|
+
data.tar.gz: 9966867628667e9fee6dd869345d1943e936db024a426b6dbd7433f14ae93396c5d8edeffba3a97b1259aac8f831ada7f288d93fdfceb14c34b4893d03fe613d
|
|
@@ -12,7 +12,10 @@ module DevDoc
|
|
|
12
12
|
# module for the rationale.
|
|
13
13
|
class EnqueueDisableNamingChecker
|
|
14
14
|
DIRECTIVE = %r{rubocop:(?:disable|todo)[^#]*DevDoc/Rails/NoPerformLaterInModel}
|
|
15
|
-
|
|
15
|
+
# Handles the inline-visibility form (`private def foo`) too — without
|
|
16
|
+
# it, a disable inside such a method would false-positive as
|
|
17
|
+
# "no enclosing method".
|
|
18
|
+
DEF_PATTERN = /\A(\s*)(?:private\s+|protected\s+|public\s+)?def\s+(?:self\.)?([a-zA-Z_][a-zA-Z0-9_]*[!?=]?)/
|
|
16
19
|
|
|
17
20
|
# Bare `notify`/`send`/`deliver` (with optional !/?) count too — the
|
|
18
21
|
# prefix convention is about the verb being first, not about
|