Details

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

      Description

      I have multiple PHP projects in my SVN:

      /
      /myProject
      /mySubProject
      /mySubProject/subFolder
      /etc.
      

      The PHP sonar plugin consider all folders as "Package".
      I prefer to consider all root folders as "Sub-Project".

      Example of sub-projects in Sonar Java project:
      http://nemo.sonarsource.org/components/index/org.apache.activemq:activemq-parent

      Example of packages in Sonar Java projects:
      http://nemo.sonarsource.org/components/index/80826

      Please provide an option "-Dmaven.php.rootFoldersAsSubProject=true" to enable that.

        Issue Links

          Activity

          Hide
          Fabrice Bellingard added a comment -

          This should be possible with the ProjectBuilder extension introduced in Sonar 2.9. However, I'd like to postpone this ticket for the moment, as this API is not totally mature yet.

          Show
          Fabrice Bellingard added a comment - This should be possible with the ProjectBuilder extension introduced in Sonar 2.9. However, I'd like to postpone this ticket for the moment, as this API is not totally mature yet.
          Hide
          Gennadiy Litvinyuk added a comment -

          I think this feature should be more flexible. For example, some folders could be SubProjects, some other could be Libraries. Also there could be multiple Source Folders...

          Show
          Gennadiy Litvinyuk added a comment - I think this feature should be more flexible. For example, some folders could be SubProjects, some other could be Libraries. Also there could be multiple Source Folders...
          Hide
          Fabrice Bellingard added a comment -

          Multi-module support can be brought by Sonar Runner 2.0+, but it looks like the PHP plugin does not fully support it (see http://sonar.15.n6.nabble.com/Problem-with-PHP-CodeSniffer-tt5006043.html for instance).

          Show
          Fabrice Bellingard added a comment - Multi-module support can be brought by Sonar Runner 2.0+, but it looks like the PHP plugin does not fully support it (see http://sonar.15.n6.nabble.com/Problem-with-PHP-CodeSniffer-tt5006043.html for instance).
          Hide
          Fabrice Bellingard added a comment -

          Perfect Julien, this works on a home-made multi-module project. However, I keep it assigned to me for now as I'd like to test this feature on real-life projects like SugarCRM or the Symphony framework.

          Show
          Fabrice Bellingard added a comment - Perfect Julien, this works on a home-made multi-module project. However, I keep it assigned to me for now as I'd like to test this feature on real-life projects like SugarCRM or the Symphony framework.
          Hide
          Fabrice Bellingard added a comment -

          Nice! I could analyse the Symfony framework with a precise multi-module configuration. I'll make it available on Nemo as soon as PHP 1.2 is out.

          Show
          Fabrice Bellingard added a comment - Nice! I could analyse the Symfony framework with a precise multi-module configuration. I'll make it available on Nemo as soon as PHP 1.2 is out.
          Hide
          Julien HENRY added a comment -

          IT added

          Show
          Julien HENRY added a comment - IT added

            People

            • Assignee:
              Julien HENRY
              Reporter:
              Anonymous
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: