SonarQube PHP
  1. SonarQube PHP
  2. SONARPHP-83

sonar.phpcpd.excludes generates invalid phpcpd command line (missing space)

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: 0.4
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Setting the sonar.phpcpd.excludes option does not work correctly – the generated phpcpd command line is missing a space between the "--exclude" switch and the associated parameter list. For example:

      [INFO] Executing phpcpd with command 'phpcpd --min-lines 3 --min-tokens 5 --log-pmd /var/lib/hudson/jobs/VuFind/workspace/trunk/target/logs/php-cpd.xml --suffixes php,php3,php4,php5,phtml,inc --excludeweb/interface/compile web/sys/mobileesp /var/lib/hudson/jobs/VuFind/workspace/trunk'

      (note the "-excludeweb..." where "-exclude web..." is expected).

      Presumably this can be fixed with a fairly minor change to PhpCpdExecutor::getCommandLine().

        Activity

        Hide
        Akram Ben Aissi added a comment -

        Exclude Packages is not added to the result list of the command line, that make the plugin add the missing space between the modifier and the arguments

        Show
        Akram Ben Aissi added a comment - Exclude Packages is not added to the result list of the command line, that make the plugin add the missing space between the modifier and the arguments

          People

          • Assignee:
            Akram Ben Aissi
            Reporter:
            Anonymous
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: