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
When declaring a variable, one can add a redundant ACL for setter.
Why should this rule be added? Share links to existing discussion about what
the community thinks about this.
This just adds extra noise. I don't think it's common enough for the community actively discuss it.
Provide several examples of what would and wouldn't trigger violations.
classFoo{
// should trigger
private(set)privatevarbar1:Intinternal(set)internalvarbar2:Intinternal(set)varbar3:Int // I'm not so sure about this one
fileprivate(set)fileprivatevarbar4:Intpublic(set)publicvarbar5:Intopen(set)openvarbar6:Int
// shouldn't trigger
private(set)varbar7:Intinternal(set)publicvarbar8:Int}
Should the rule be configurable, if so what parameters should be configurable?
Just severity
Should the rule be opt-in or enabled by default? Why?
See README.md for guidelines on when to mark a rule as opt-in.
Enabled, as I think this is rare enough.
The text was updated successfully, but these errors were encountered:
New Issue Checklist
Rule Request
When declaring a variable, one can add a redundant ACL for setter.
the community thinks about this.
This just adds extra noise. I don't think it's common enough for the community actively discuss it.
Just severity
See README.md for guidelines on when to mark a rule as opt-in.
Enabled, as I think this is rare enough.
The text was updated successfully, but these errors were encountered: