{"action":"created","issue":{"url":"https://api.github.com/repos/wenns/sonar-cxx/issues/467","labels_url":"https://api.github.com/repos/wenns/sonar-cxx/issues/467/labels{/name}","comments_url":"https://api.github.com/repos/wenns/sonar-cxx/issues/467/comments","events_url":"https://api.github.com/repos/wenns/sonar-cxx/issues/467/events","html_url":"https://github.com/wenns/sonar-cxx/issues/467","id":68861608,"number":467,"title":"Sqale support for 'other' rules","user":{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wenns/sonar-cxx/labels/discussion","name":"discussion","color":"eb6420"},{"url":"https://api.github.com/repos/wenns/sonar-cxx/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-16T07:15:07Z","updated_at":"2015-04-17T15:33:32Z","closed_at":null,"body":"With new API it is no problem to set default values for Sqale/Technical Debt:\r\nhttp://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.sonar/sonar-plugin-api/4.5.2/org/sonar/api/server/rule/RulesDefinition.java#RulesDefinition.NewRule\r\n```\r\n[Public Method] setDebtRemediationFunction(DebtRemediationFunction) : RulesDefinition.NewRule\r\n[Public Method] setDebtSubCharacteristic(String) : RulesDefinition.NewRule\r\n[Public Method] setEffortToFixDescription(String) : RulesDefinition.NewRule\r\n```\r\nQuestion is only what is 'default'?\r\n\r\nThe current used RulesDefinitionXmlLoader does not support Technical Debt values:\r\nhttp://javadocs.sonarsource.org/4.4/apidocs/org/sonar/api/server/rule/RulesDefinitionXmlLoader.html\r\n\r\n```XML\r\n<rules>\r\n   <rule>\r\n     <!-- required fields -->\r\n     <key>the-rule-key</key>\r\n     <name>The purpose of the rule</name>\r\n\r\n     <!-- optional fields -->\r\n     <description>\r\n       <![CDATA[The description]]>\r\n     </description>\r\n     <internalKey>Checker/TreeWalker/LocalVariableName</internalKey>\r\n     <severity>BLOCKER</severity>\r\n     <cardinality>MULTIPLE</cardinality>\r\n     <status>BETA</status>\r\n     <param>\r\n       <key>the-param-key</key>\r\n       <tag>style</tag>\r\n       <tag>security</tag>\r\n       <description>\r\n         <![CDATA[the param-description]]>\r\n       </description>\r\n       <defaultValue>42</defaultValue>\r\n     </param>\r\n     <param>\r\n       <key>another-param</key>\r\n     </param>\r\n\r\n     <!-- deprecated fields -->\r\n     <configKey>Checker/TreeWalker/LocalVariableName</configKey>\r\n     <priority>BLOCKER</priority>\r\n   </rule>\r\n </rules>\r\n```\r\n\r\nIdea could be to extend this file with Sqale values for the rules, so everything is together in one file?\r\n\r\n```XML\r\n<rule>\r\n  ...\r\n  <sqale>\r\n    <chc>\r\n      <key>PORTABILITY</key>\r\n      <name>Portability</name>\r\n        <chc>\r\n          <key>COMPILER_RELATED_PORTABILITY</key>\r\n          <name>Compiler related portability</name>\r\n            <chc>\r\n              <rule-repo>cppcheck</rule-repo>\r\n              <rule-key>AssignmentAddressToInteger</rule-key>\r\n              <prop>\r\n                <key>remediationFunction</key>\r\n                <txt>linear</txt>\r\n              </prop>\r\n              <prop>\r\n                <key>remediationFactor</key>\r\n                <val>5</val>\r\n                <txt>mn</txt>\r\n              </prop>\r\n              <prop>\r\n                <key>offset</key>\r\n                <val>0.0</val>\r\n                <txt>d</txt>\r\n              </prop>\r\n            ...\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/wenns/sonar-cxx/issues/comments/94010304","html_url":"https://github.com/wenns/sonar-cxx/issues/467#issuecomment-94010304","issue_url":"https://api.github.com/repos/wenns/sonar-cxx/issues/467","id":94010304,"user":{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T15:33:32Z","updated_at":"2015-04-17T15:33:32Z","body":"See #469 for first demo to set a 'default' sqale value."}}