Skip to content

Check: Constant Interface

Madeline Kahn edited this page Mar 26, 2024 · 1 revision
  • Name: "constantInterface"
  • Default: Enabled

Configuration

Name Type Description
allowMarkerInterfaces boolean If true, interfaces with no fields nor methods ("marker interfaces") will be ignored. (Defaults to false.)

Description

Generates a warning if an interface is a "constant interface" that contains only fields and no methods. Unless allowMarkerInterfaces is true, also generates a warning if an interface is completely empty.