KT.COMPLEX_INTERFACE
Complex interface should be split into smaller interfaces and have clear responsibility
Complex interfaces which contain too many functions and/or properties indicate that this interface is handling too many things at once. Interfaces should follow the single-responsibility principle to also encourage implementations of this interface to not handle too many things at once. Large interfaces should be split into smaller interfaces which have a clear responsibility and are easier to understand and implement.
Options
-
threshold
(default:10
)the amount of definitions in an interface to trigger the rule
-
includeStaticDeclarations
(default:False
)whether static declarations should be included
-
includePrivateDeclarations
(default:False
)whether private declarations should be included