archspec 1.1.0.rc2 → 1.1.0
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/lib/archspec/rules/concern_rules.rb +5 -5
- data/lib/archspec/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: 8c675a4a926497ac7ff0228a2eebe90ad4eddb39463bdbbcd1732f60f078ba5e
|
|
4
|
+
data.tar.gz: 2bbde647e0e899bba0a20f7953028506cfb0dcc756101a75bd4c49c11282624e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c42af70bb7cfb04ad3f0feca6dc429b14bc1f9e55eb3b4001f4fd11aead8ca0061b22c14097def6b182d09435764e9c44e0132f02b4964718ba47fc64ee37544
|
|
7
|
+
data.tar.gz: 3505aa0af7fc166ce59d316eda7dfbe4deb24dbede4bbbc507f4516b82d0090c9c8b3eba4f70c3379978be6a9f582c6bb742c9416ac0b63529bb5f68aa90eb1b
|
|
@@ -35,14 +35,14 @@ module ArchSpec
|
|
|
35
35
|
next if consumers.empty?
|
|
36
36
|
|
|
37
37
|
target = graph.resolve_edge_constant(edge)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
next unless
|
|
38
|
+
owner = [edge.from_constant, *consumers]
|
|
39
|
+
.select { |namespace| within_namespace?(target, namespace) }
|
|
40
|
+
.max_by(&:length)
|
|
41
|
+
next unless consumers.include?(owner)
|
|
42
42
|
|
|
43
43
|
Diagnostic.new(
|
|
44
44
|
rule: id,
|
|
45
|
-
message: "#{edge.from_constant} must not reference its includer #{
|
|
45
|
+
message: "#{edge.from_constant} must not reference its includer #{owner}",
|
|
46
46
|
location: edge.location,
|
|
47
47
|
evidence: "#{edge.from_constant} #{edge.verb} #{target}"
|
|
48
48
|
)
|
data/lib/archspec/version.rb
CHANGED