2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2020-12-21 15:38:52 +01:00
|
|
|
The fact that an enumeration type is actually an enumeration should not be duplicated in its name.
|
|
|
|
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Noncompliant code example
|
2020-12-21 15:38:52 +01:00
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,text]
|
2020-12-21 15:38:52 +01:00
|
|
|
----
|
|
|
|
Enum FooEnum ' Noncompliant
|
|
|
|
Foo
|
|
|
|
End Enum
|
|
|
|
----
|
|
|
|
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Compliant solution
|
2020-12-21 15:38:52 +01:00
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,text]
|
2020-12-21 15:38:52 +01:00
|
|
|
----
|
|
|
|
Enum Foo
|
|
|
|
Foo
|
|
|
|
End Enum
|
|
|
|
----
|
|
|
|
|
2022-01-25 18:36:46 +01:00
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
|
|
|
|
'''
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
2023-05-25 14:18:12 +02:00
|
|
|
=== Message
|
|
|
|
|
|
|
|
Rename "xxx" to remove the "Enum" suffix.
|
|
|
|
|
2022-01-25 18:36:46 +01:00
|
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|