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-1399 Clean and standardize configuration p...
  • SONARPLUGINS-1029

Change sonar.php.cpd.skip option into sonar.phpcpd.skip

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: PHP-0.3
  • Fix Version/s: PHP-0.5
  • Component/s: PHP
  • Labels:
    None
  • Number of attachments :
    0

Description

The option sonar.phpcpd.shouldRun allows user to disable phpcpd execution.
Moreover, there is another useless option named sonar.php.cpd.skip that does the same job.

A standard sonar option named sonar.cpd.skip already exists, and it should nice if phpcpd is disabled if this option is also set.

The rule could be:
if one of the options says disable it, phpcpd must be disabled.

Activity

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

As discussed Akram, I have kept both sonar.php.cpd.skip and sonar.phpcpd.shouldRun as deprecated options (see SONARPLUGINS-975), and introduced sonar.cpd.skip option.

From 0.5 release though I will remove both of them and make it more "sonar compatible" with sonar.cpd.skip and sonar.cpd.php.skip options available, the latter taking the precedence.

Show
Sebastian Marek added a comment - 22/Mar/11 4:04 PM As discussed Akram, I have kept both sonar.php.cpd.skip and sonar.phpcpd.shouldRun as deprecated options (see SONARPLUGINS-975 ), and introduced sonar.cpd.skip option. From 0.5 release though I will remove both of them and make it more "sonar compatible" with sonar.cpd.skip and sonar.cpd.php.skip options available, the latter taking the precedence.
Hide
Permalink
Fabrice Bellingard added a comment - 04/Oct/11 12:11 PM

I changed "sonar.php.cpd.skip" option into "sonar.phpcpd.skip" to be consistent in parameter naming.

I removed "sonar.cpd.skip" as I don't think we should align on this property, which was introduced for Java CPD at the beginning. IMO, each tools should have their own parameters.

"sonar.phpcpd.shouldRun" is still available, and will be removed in a couple of next versions.

Show
Fabrice Bellingard added a comment - 04/Oct/11 12:11 PM I changed "sonar.php.cpd.skip" option into "sonar.phpcpd.skip" to be consistent in parameter naming. I removed "sonar.cpd.skip" as I don't think we should align on this property, which was introduced for Java CPD at the beginning. IMO, each tools should have their own parameters. "sonar.phpcpd.shouldRun" is still available, and will be removed in a couple of next versions.

People

  • Assignee:
    Fabrice Bellingard
    Reporter:
    Akram Ben Aissi
Vote (1)
Watch (1)

Dates

  • Created:
    13/Mar/11 4:32 PM
    Updated:
    10/Oct/11 3:37 AM
    Resolved:
    04/Oct/11 12:11 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.