Modify rule S6210: Rephrase requirement on private element access (#213)
This commit is contained in:
parent
deb97adb76
commit
42d04dee44
@ -9,8 +9,8 @@ A compact constructor doesn't have parameters defined explicitly, parentheses ar
|
||||
|
||||
This rule reports an issue when a canonical constructor can be easily replaced by a compact version when these requirements are met:
|
||||
|
||||
* the last statements are trivial field initialization
|
||||
* besides this, there is no access to private members through ``++this++``
|
||||
* the last statements are trivial field initializations
|
||||
* no statement reads from fields or components
|
||||
* there are other statements in the constructor (case covered by S6207: redundant constructors in records)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user