Custom Rule to nomenclature to Package/Class

14 views
Skip to first unread message

miguel8...@gmail.com

unread,
May 2, 2018, 3:38:34 PM5/2/18
to SonarQube
I need create rule to validate class' nomenclature in base to package's name

Example
If the package's name ---> com.enterprise.service
The class' name should be NameService , <Name> + Service

package 01: 
com.enterprise.controller  
class: 
                <Name Class> + <Name Package>
NameClassOneController
NameClassTwoController
package 02:
 com.enterprise.service  
class:
NameClassOneService
NameClassTwoService
package N: 
com.enterprise.util  
class:
NameClassOneUtil
NameClassTwoUtil
Etc. }

Thanks for your attention

Nicolas Peru

unread,
May 3, 2018, 2:44:02 AM5/3/18
to miguel8...@gmail.com, SonarQube
Hi, 

in order for any one to help you out, could you please :  explain as clearly as possible your problem : specify the language you are working with, The api you are working with, the product, the version. Please describe your problem in a concise and reproductible way. Please also explain what you've tried and what did not work. 

Please ask a precise question : asking for "please help me develop my rule" is way too broad for anyone to jump in and help you. 

All in all, please be kind to your readers : we have no idea what you are doing and what you are trying to achieve, explain it precisely to us.

Thanks for your understanding.

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/72e90e6b-984e-4882-900e-3133383384bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Nicolas Peru | SonarSource
Reply all
Reply to author
Forward
0 new messages