rspec/rules/S2341/rule.adoc

37 lines
497 B
Plaintext
Raw Normal View History

== Why is this an issue?
The fact that an enumeration type is actually an enumeration should not be duplicated in its name.
=== Noncompliant code example
2022-02-04 17:28:24 +01:00
[source,text]
----
Enum FooEnum ' Noncompliant
Foo
End Enum
----
=== Compliant solution
2022-02-04 17:28:24 +01:00
[source,text]
----
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)
=== Message
Rename "xxx" to remove the "Enum" suffix.
2022-01-25 18:36:46 +01:00
endif::env-github,rspecator-view[]