Closed viquezclaudio closed 6 years ago
@elopio You are right, I will add tests for explicit internal and private declarations.
Regarding your question, do you mean creating a rule to reject public variables with underscore suffix ?
Thanks @viquezclaudio. With your help and after a few iterations with this rules, we realized that if we required all state variables to be private, we could prefix them with an underscore (like on python), and there will be no conflict with function parameters that will be without underscore. I'm closing this one in favor of #32. I copied your code with a few tweaks, so it would be nice if you can review it.
New rule for "_" suffix for internal variables: variables with no visibility qualifier or private or internal variables. Does not apply for variables in a function