-
Notifications
You must be signed in to change notification settings - Fork 885
New rule: memberNoDefaultAccess. Disallows public access modifiers th… #552
Conversation
…at are not explicit in the class
This is the old pull request: #404 |
@@ -5,6 +5,7 @@ | |||
"arguments", | |||
"statements"], | |||
"ban": false, | |||
"member-no-default-access": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be alphabetical by prop (rule) name
I think I got all of them. By that rule should be refactored, did you mean the hasModifiers utility? Because I changed to the snippet of code you suggested. The tests pass, but take a look so that it looks sane (I haven't looked into that utility very much to be honest :) |
} | ||
} | ||
|
||
interface IModifiers { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this interface is no longer being used and can be removed
thanks for the revisions @meros! just a few more small comments. I'd still like this rule to be named Overall, I think the rule reads better as "member-access ensure that all class members have access modifiers" rather than "member-no-default-access bans the default access modifier (a.k.a. the lack of an access modifier)" |
@adidahiya Here you go :) |
New rule: memberNoDefaultAccess. Disallows public access modifiers th…
great, thanks @meros! |
…at are not explicit in the class
This pull request replaces a previous one since I had to rebase it onto current master. Sorry about that.