== Why is this an issue?

:operationName: function

include::../description.adoc[]

== How to fix it

=== Code examples

==== Noncompliant code example

[source,kotlin,diff-id=1,diff-type=noncompliant]
----
fun shouldNotBeEmpty() {  // Noncompliant - method is empty
}

fun notImplemented() {  // Noncompliant - method is empty
}

fun emptyOnPurpose() {  // Noncompliant - method is empty
}
----

==== Compliant solution

[source,kotlin,diff-id=1,diff-type=compliant]
----
fun shouldNotBeEmpty() {
  doSomething()
}

fun notImplemented() {
  throw UnsupportedOperationException("notImplemented() cannot be performed because ...")
}

fun emptyOnPurpose() {
  // comment explaining why the method is empty
}
----

ifdef::env-github,rspecator-view[]

'''
== Implementation Specification
(visible only on this page)

include::../message.adoc[]

'''
== Comments And Links
(visible only on this page)

include::../comments-and-links.adoc[]

endif::env-github,rspecator-view[]
