Wrong default value in rule description (php:S100)

61 views
Skip to first unread message

qua...@rikkeisoft.com

unread,
Sep 15, 2017, 3:42:29 AM9/15/17
to SonarQube
Hi,

I want to report a problem with the rule php:S100


As you see, it's said that "default provided regular expression: ^[a-z][_a-zA-Z0-9]*$".
But the real default provided regular expression is "^[a-z][a-zA-Z0-9]*$" (without underscore).

qua...@rikkeisoft.com

unread,
Sep 20, 2017, 5:19:41 AM9/20/17
to SonarQube
Hi,
Soneone please update this rule.

Elena Vilchik

unread,
Sep 21, 2017, 3:13:02 AM9/21/17
to SonarQube
Hi,

Thanks for the feedback.

Am I right that you expect update of description rather than of default value?

Elena

qua...@rikkeisoft.com

unread,
Sep 21, 2017, 3:29:20 AM9/21/17
to SonarQube
Hi Elena,

Yes, I expect description to be updated to "With default provided regular expression: ^[a-z][a-zA-Z0-9]*$" (At Noncompliant Code Example section) to avoid confusing.

Elena Vilchik

unread,
Sep 21, 2017, 5:42:47 AM9/21/17
to SonarQube
Good! I've updated specification for the rule, in next sprint we will update it in the plugin.

qua...@rikkeisoft.com

unread,
Sep 21, 2017, 6:09:32 AM9/21/17
to SonarQube
Thanks, Elena.
Reply all
Reply to author
Forward
0 new messages