== Why is this an issue?

:operationName: function

include::../description.adoc[]

== How to fix it

=== Code examples

==== Noncompliant code example

[source,flex,diff-id=1,diff-type=noncompliant]
----
public function shouldNotBeEmpty():void {  // Noncompliant - method is empty
}

public function notImplemented():void {  // Noncompliant - method is empty
}

public override function emptyOnPurpose():void {  // Noncompliant - method is empty
}
----

==== Compliant solution

[source,flex,diff-id=1,diff-type=compliant]
----
public function shouldNotBeEmpty():void {
  doSomething();
}

public function notImplemented():void {
  throw new Error("notImplemented() cannot be performed because ...");
}

public override function emptyOnPurpose():void {
  // 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[]
