You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a property is declared in the primary constructor (especially in a data class), the static analysis should count an issue if the property isn't documented.
Observed Behavior
Only properties declared in the class body are flagged when left public and undocumented.
Steps to Reproduce
Create a class with properties declared in the primary constructor but don't add @property or KDoc reference in a comment
Context
Your Environment
Version of detekt used: 1.6.0
Operating System and version: OSX
The text was updated successfully, but these errors were encountered:
* Check primary ctor in UndocumentedPublicProperty
Closes#2468
* Add test case for an undocumented property
* Add test case for non-public property
* Check for val + var declaration on ctor parameters
This has to be done in order to not flag the following use case.
isPublicNotOverridden() returns true even though it's not public.
class Test(a: Int)
Expected Behavior
If a property is declared in the primary constructor (especially in a data class), the static analysis should count an issue if the property isn't documented.
Observed Behavior
Only properties declared in the class body are flagged when left public and undocumented.
Steps to Reproduce
Create a class with properties declared in the primary constructor but don't add
@property
or KDoc reference in a commentContext
Your Environment
The text was updated successfully, but these errors were encountered: