simplycop 2.34.4 → 2.34.5
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 +4 -4
- data/.custom_simplycop.yml +7 -0
- data/lib/simplycop/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3724c4a4e75c12cb3becba815516b7d11f9d3dd1e4e872dfc5d3d83a6319f1fe
|
|
4
|
+
data.tar.gz: f5d964bc6bd709bc246eb9223a973c26f5fa04983edaba765390c3cbea9d21fd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f019a16b3fdfa342e2e5b488ae409f5bded12aea92ab64da618ccfdaf8cf8ca5e842cb38ff24af5b4a573d7e8a39aafa3ab1b244d50b3f12e2a5eb42b6eb36c2
|
|
7
|
+
data.tar.gz: e7d8036de40de681a4e21f12eba7fe6a0e772a95c505adbb5d720d1c659efe4ca1c6ef2fe6e86492d9a61527d520eaf3309e703db679ba54fd8003e9c4d58dce
|
data/.custom_simplycop.yml
CHANGED
|
@@ -3,6 +3,7 @@ require:
|
|
|
3
3
|
- './lib/simplycop/custom_cops/dont_print_all_env.rb'
|
|
4
4
|
- './lib/simplycop/custom_cops/no_foreground_indices.rb'
|
|
5
5
|
- './lib/simplycop/custom_cops/variable_name_shadowing_method.rb'
|
|
6
|
+
- './lib/simplycop/custom_cops/version_comparison.rb'
|
|
6
7
|
|
|
7
8
|
AllCops:
|
|
8
9
|
ExtraDetails: true
|
|
@@ -31,3 +32,9 @@ CustomCops/VariableNameShadowingMethod:
|
|
|
31
32
|
This cop checks for local variable assignments that shadow method names in the same scope.
|
|
32
33
|
This can cause subtle bugs where the variable returns nil instead of calling the method,
|
|
33
34
|
since Ruby determines local variable scope at parse time, not runtime.
|
|
35
|
+
|
|
36
|
+
CustomCops/VersionComparison:
|
|
37
|
+
Enabled: true
|
|
38
|
+
Details: >-
|
|
39
|
+
This cop checks for string-based version comparisons which can produce incorrect results.
|
|
40
|
+
Use Gem::Version for reliable version comparisons.
|
data/lib/simplycop/version.rb
CHANGED