2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2020-06-30 12:47:33 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Noncompliant code example
|
2020-06-30 12:47:33 +02:00
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,vbnet]
|
2020-06-30 12:47:33 +02:00
|
|
|
----
|
|
|
|
Class Foo ' Non-Compliant - depends on too many other classes
|
|
|
|
Dim a1 As T1 ' Foo is coupled to T1
|
|
|
|
Dim a2 As T2 ' Foo is coupled to T2
|
|
|
|
Dim a3 As T3 ' Foo is coupled to T3
|
|
|
|
Dim a4 As T4 ' etc.
|
|
|
|
Dim a5 As T5
|
|
|
|
Dim a6 As T6
|
|
|
|
Dim a7 As T7
|
|
|
|
Dim a8 As T8
|
|
|
|
Dim a9 As T9
|
|
|
|
Dim a10 As T10
|
|
|
|
Dim a11 As T11
|
|
|
|
Dim a12 As T12
|
|
|
|
Dim a13 As T13
|
|
|
|
Dim a14 As T14
|
|
|
|
Dim a15 As T15
|
|
|
|
Dim a16 As T16
|
|
|
|
Dim a17 As T17
|
|
|
|
Dim a18 As T18
|
|
|
|
Dim a19 As T19
|
|
|
|
Dim a20 As T20
|
|
|
|
Dim a21 As T21
|
|
|
|
End Class
|
|
|
|
----
|
2021-06-02 20:44:38 +02:00
|
|
|
|
2021-06-03 09:05:38 +02:00
|
|
|
ifdef::env-github,rspecator-view[]
|
2021-09-20 15:38:42 +02:00
|
|
|
|
|
|
|
'''
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::../message.adoc[]
|
|
|
|
|
2023-05-25 14:18:12 +02:00
|
|
|
=== Parameters
|
|
|
|
|
|
|
|
.couplingThreshold
|
|
|
|
****
|
|
|
|
_INTEGER_
|
|
|
|
|
|
|
|
----
|
|
|
|
20
|
|
|
|
----
|
|
|
|
|
|
|
|
Maximum number of classes a single class is allowed to depend upon
|
|
|
|
****
|
|
|
|
|
2021-09-20 15:38:42 +02:00
|
|
|
|
2021-06-08 15:52:13 +02:00
|
|
|
'''
|
2021-06-02 20:44:38 +02:00
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::../comments-and-links.adoc[]
|
2023-06-22 10:38:01 +02:00
|
|
|
|
2021-06-03 09:05:38 +02:00
|
|
|
endif::env-github,rspecator-view[]
|