rspec/rules/S1186/why-dotnet.adoc
2023-06-09 14:51:36 +02:00

27 lines
845 B
Plaintext

An empty {operationName} is generally considered bad practice and can lead to confusion, readability, and maintenance issues.
Empty {operationName}s bring no functionality and are misleading to others as they might think the {operationName} implementation fulfills a specific and identified requirement.
Such {operationName}s should be avoided and possibly removed.
include::{emptyCode}[]
However, there are some cases where a {operationName} needs to be empty. In those cases, it is essential to minimize confusion and enhance clarity.
Here are a few examples:
* The {operationName} will never be implemented.
+
--
include::{notsupportedCode}[]
--
* The {operationName} will be implemented in the future.
+
--
include::{notimplementedCode}[]
--
* The {operationName} implementation is empty intentionally.
+
--
include::{commentCode}[]
--