-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule 6.1.7: in case of using "implicit backing property" scheme, the name of real and back property should be the same #443
Comments
aktsay6
added a commit
that referenced
this issue
Oct 30, 2020
### What's done: * First logic * Added tests
aktsay6
added a commit
that referenced
this issue
Oct 30, 2020
### What's done: * Logic made * Added warn tests
5 tasks
aktsay6
added a commit
that referenced
this issue
Oct 30, 2020
#443) # Conflicts: # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt # info/available-rules.md
aktsay6
added a commit
that referenced
this issue
Nov 20, 2020
#443) # Conflicts: # diktat-analysis.yml # diktat-rules/src/main/kotlin/generated/WarningNames.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/DiktatRuleSetProvider.kt # diktat-rules/src/main/resources/diktat-analysis-huawei.yml # diktat-rules/src/main/resources/diktat-analysis.yml # info/available-rules.md
aktsay6
added a commit
that referenced
this issue
Nov 23, 2020
#443) # Conflicts: # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt
aktsay6
added a commit
that referenced
this issue
Nov 23, 2020
aktsay6
added a commit
that referenced
this issue
Nov 23, 2020
#443) # Conflicts: # diktat-analysis.yml # diktat-rules/src/main/kotlin/generated/WarningNames.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt # diktat-rules/src/main/resources/diktat-analysis-huawei.yml # diktat-rules/src/main/resources/diktat-analysis.yml
aktsay6
added a commit
that referenced
this issue
Nov 23, 2020
aktsay6
added a commit
that referenced
this issue
Nov 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kotlin has a mechanism of backing properties.
In some cases implicit backing is not enough and it should be done explicitly:
In this case the name of backing property (
_table
) should be the same to the name of real property (table
), but should have underscore (_
) prefix.It is one of the exceptions from the identifier names rule
The text was updated successfully, but these errors were encountered: