Uploaded image for project: 'SonarCOBOL'
  1. SonarCOBOL
  2. SONARCOBOL-1265

Set sonar.cpd.cobol.minimumLines to 30

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: Duplications
    • Labels:
      None

      Description

      Currently, SonarQube hardcodes the minimum number of lines for duplications:

        static int getDefaultBlockSize(String languageKey) {
          if ("cobol".equals(languageKey)) {
            return 30;
          } else if ("abap".equals(languageKey)) {
            return 20;
          } else {
            return 10;
          }
        }
      

      This should be the responsibility of the COBOL plugin, so that it can be removed from SonarQube.

        Attachments

          Activity

            People

            • Assignee:
              elena.vilchik Elena Vilchik
              Reporter:
              pierre-yves.nicolas Pierre-Yves Nicolas
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: