jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Sonar Plugins
  • Sonar Plugins
  • SONARPLUGINS-975

phpcpd always running

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

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

Description

phpcpd tool always running no matter settings in sonar configuration or in the pom.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Sebastian Marek added a comment - 23/Feb/11 4:51 PM

There is a typo in PhpCpdConfiguration, the option should be sonar.phpcpd.analyzeOnly not sonar.phpcpd.analyseOnly. Also the logic in PhpCpdSensor.analyse() needs changing to take into account this option and an option needs to be added to Sonar configuration panel to allow to configure it from there.

Show
Sebastian Marek added a comment - 23/Feb/11 4:51 PM There is a typo in PhpCpdConfiguration, the option should be sonar.phpcpd.analyzeOnly not sonar.phpcpd.analyseOnly . Also the logic in PhpCpdSensor.analyse() needs changing to take into account this option and an option needs to be added to Sonar configuration panel to allow to configure it from there.
Hide
Permalink
Sebastian Marek added a comment - 22/Mar/11 3:55 PM

There was also a bug in the logic detecting whether the tool should be executed or not. Fixed. phpcpd execution can be controlled with the following 3 options:

  • sonar.cpd.skip (true - don't run, false run)
  • sonar.php.cpd.skip (true - don't run, false run)
  • sonar.phpcpd.shouldRun (true - run, false don't run)

Sonar will check whether one of them has been set in configuration in the order above. If none of them is set the tool will be executed by default.

Show
Sebastian Marek added a comment - 22/Mar/11 3:55 PM There was also a bug in the logic detecting whether the tool should be executed or not. Fixed. phpcpd execution can be controlled with the following 3 options: sonar.cpd.skip (true - don't run, false run) sonar.php.cpd.skip (true - don't run, false run) sonar.phpcpd.shouldRun (true - run, false don't run) Sonar will check whether one of them has been set in configuration in the order above. If none of them is set the tool will be executed by default.

People

  • Assignee:
    Sebastian Marek
    Reporter:
    Miguel Andrade
Vote (0)
Watch (0)

Dates

  • Created:
    13/Feb/11 1:42 PM
    Updated:
    07/Apr/11 5:01 PM
    Resolved:
    22/Mar/11 4:16 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.