Help to work with SSLR Toolkit

plsql
sonarqube
custom_rules

(Eduardo Siguas) #1

Hi,
Please i need help, i need to write a custom rules for PL/SQL, but i dont have idea how to start, i download a JAR slr-plsql-toolkit-3.4.1.2576.jar. But i need the next steps for convert code PLSQL to AST and write the XPATH.

Anyone have a project to do that.

Thanks for help me.


(Pierre-Yves Nicolas) #2

Hi,

Did you read the documentation on writing XPath-based custom rules?
The toolkit is an application you have to run: it allows you to check the AST for a given piece of code.


(Eduardo Siguas) #3

Hi,
Yes thanks i read that link and run application, My problem now is write code in XPATH because sonar dont evaluate my new rule. in application evaluete correctly but in sonar dont works.

Thanks


(Pierre-Yves Nicolas) #4

What doesn’t “work”? What do you see?
As mentioned in the documentation:

  • Did you activate the rule in a quality profile?
  • Did you assign your project to that quality profile?
  • Did you re-run an analysis of your project?