felipebz / zpa

Parser and static code analysis tool for PL/SQL and Oracle SQL.
https://zpa.felipebz.com
GNU Lesser General Public License v3.0
211 stars 77 forks source link

Lines of Code Limit Rule for PL/SQL in SonarQube #174

Closed mgarciaLKS closed 11 months ago

mgarciaLKS commented 11 months ago

Problem Description

Currently, There is no rule in SonarQube that restricts the number of lines of code allowed in PL/SQL files. This can lead to the creation of extensive and difficult to maintain scripts. It is important to set a limit to encourage modularity and code readability.

Suggested Solution

I request that a new rule be implemented in SonarQube that allows a maximum line of code limit to be set for PL/SQL files. This rule will help keep code within manageable parameters and promote good development practices.

Benefits

Proposed Steps

  1. Implement a new rule in SonarQube for PL/SQL that allows to define a limit of lines of code.
  2. Allow users to configure this limit according to the needs of their projects.
  3. Provide detailed documentation on how to use this new rule.

I hope it is a proposal that you find interesting and useful, thank you very much in advance for your work.

Best regards.

mgarciaLKS commented 11 months ago

I have managed to create a custom rule that achieves what is explained in the Issue.