Skip to content

G-1050: Make guideline less strict by using a threshold parameter #180

Closed
@PhilippSalvisberg

Description

@PhilippSalvisberg

As mentioned in #179, the guideline is too strict IMO. SonarSource defines a similar rule plsql:S1192 - String literals should not be duplicated. For this rule a threshold can be defined as parameter.

I like the idea of using parameters in rules. This concept can be applied in various rules (for example to configure the prefix and suffix for naming conventions).

We should start to introduce the the concept of parameters in the guidelines. In this case a threshold with the meaning Number of times a literals must be duplicated to trigger an issue. The default will be 0 will be identical to the current behavior. The db* CODECOP tool suite needs to be enhanced to support this threshold. This gives the users a better option than disabling to complete guideline.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions