Reports duplicate declarations of classes, modules, interfaces, constants, global variables, type aliases, and methods.

A quick fix is available to navigate to the duplicate declaration.

Example:

# Duplicate interface declaration
interface _Example
end

# Duplicate interface declaration
interface _Example
end