Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7990493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:01:37+00:00 2026-06-04T13:01:37+00:00

During the test in sonar i just wanna some rules to be changed so

  • 0

During the test in sonar i just wanna some rules to be changed so i took a sample from

http://docs.codehaus.org/display/SONAR/Extend+PHP+coding+rules

and make a rule change in

scopeIndentIncorrect and it works . because they have given parameters which I have changed .

but now I want to change the

FunctionCallSignatureIndent
and want to pass a parameters for that

every result I made resulted in creating a new plugin so is there any other way to do it ?

<rule key="PEAR.Functions.FunctionCallSignature.Indent" priority="MAJOR">
<category name="Maintainability"/>
<name>CustomFunctionCallSignatureIndent</name>
<configKey>FUNCTION_CALL_SIGNATURE_INDENT</configKey>
<description><![CDATA[Multi-line function call not indented correctly; expected %s spaces but found %s]]></description>
<param>
  <key>indent</key>
  <description>The number of spaces code should be indented.</description>
  <defaultValue>4</defaultValue>
</param>

This is the entry I made in rules.xml

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:01:39+00:00Added an answer on June 4, 2026 at 1:01 pm

    No, you do not need to write a Sonar plugin for that. You just have to:

    1. Make your changes in FunctionCallSignatureIndent
    2. Add a new rule like explained in http://docs.codehaus.org/display/SONAR/Extend+PHP+coding+rules
    3. For this new rule, add a “” tag like you can see in the PHPMD example of http://docs.codehaus.org/display/SONAR/Extend+PHP+coding+rules

    And then, after restarting Sonar, you should be able to customize this rule in Sonar Web UI.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to load sample.properties from my classpath during my JUnit test execution and
This is one of the programming questions asked during written test from Microsoft. I
During the work on my iPhone application the icon changed from time to time.
During our build process, we run sqlldr to populate our database with some sample
During development, I usually test ASP.Net applications using the Web Development Server (sometimes called
I have a test project requiring some heavy jars which i put in ${M2_HOME}\test\src\main\resources\
I recently took an objective-c test to see how I would do. Turns out
During the test phase of my maven build I ave the following code in
I want to have a test resource that is available during my test and
I'm using testflightapp.com SDK in my project to track crashes during beta test which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.