-
Notifications
You must be signed in to change notification settings - Fork 106
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
Sonarcloud optimizations #2425
Comments
Asked @pierluca for admin accesss on sonarcloud dedis/cothority |
Finally found the menu where they are stored. Changed it to:
|
You accept a single underscore here, but for example, in
|
Hmm - that one allows
which is more readable, too? |
I agree, that's not really nice.
It also allows for Something like the following? It also ensure a single underscore and a capital after it
(arf, it's getting uglier by the minute) NB: I don't quite agree with the functions starting by an underscore, IMO it's better to use a minuscule |
OK, we're getting there. Currently you disallow all public methods, which is a bit harsh. I know you prefer not to expose too many methods, but none? Sorry, couldn't resist... Also, if we suppose that it is
If my regexp-brain-centre is up-to-date, All in all, I think the |
Hoo right, I'm rereading the issue and the regex is not only for the tests, that's why 😅
Hum, make sense then, a bit hard to read but valid.
Exact, which I never saw anywhere and would be quite unreadable (maybe even uncallable?); why not remove it?
Soo, as that's for the whole code and not only the test packages, we only accept public functions beginning with "Test".. I'm going deeper in the rabbit hole, because I only want to support underscores inside test packages, not elsewhere
(damn you regex..) |
Oh dang - I log off. My regexp-part of the brain is shutting down... Why test for no
|
Right! That's way better! I think it's the right one 😄 I'm using |
More optimizations for the optimizations:
Ask your admin to set a New Code definition.
functions should match the regular expression ^(_|[a-zA-Z0-9]+)$
The text was updated successfully, but these errors were encountered: