Modify rule S6210: Rephrase requirement on private element access (#213)

This commit is contained in:
Dorian Burihabwa 2021-07-14 18:25:24 +02:00 committed by GitHub
parent deb97adb76
commit 42d04dee44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)