]> source.dussan.org Git - sonarqube.git/commitdiff
drop unused "extra" field in rule parameters
authorStas Vilchik <stas.vilchik@sonarsource.com>
Wed, 2 Jan 2019 13:13:35 +0000 (14:13 +0100)
committerSonarTech <sonartech@sonarsource.com>
Mon, 7 Jan 2019 19:21:00 +0000 (20:21 +0100)
server/sonar-web/src/main/js/app/types.d.ts
server/sonar-web/src/main/js/apps/coding-rules/components/ActivationFormModal.tsx
server/sonar-web/src/main/js/apps/coding-rules/components/CustomRuleFormModal.tsx

index 9e4bcbd0e1c42dc093a4c13ce6d52b38876760db..7a8d8da249931eb517daa049735892a8bf67d9ec 100644 (file)
@@ -687,8 +687,6 @@ declare namespace T {
   export type RuleInheritance = 'NONE' | 'INHERITED' | 'OVERRIDES';
 
   export interface RuleParameter {
-    // TODO is this extra really returned?
-    extra?: string;
     defaultValue?: string;
     htmlDesc?: string;
     key: string;
index d06a8779c346107487105202b8adbdcb495ada4c..e9ffd00fa0dd560ae7ef3776afcdf3670e553db0 100644 (file)
@@ -229,7 +229,6 @@ export default class ActivationFormModal extends React.PureComponent<Props, Stat
                     className="note"
                     dangerouslySetInnerHTML={{ __html: param.htmlDesc || '' }}
                   />
-                  {param.extra && <div className="note">{param.extra}</div>}
                 </div>
               ))
             )}
index 56714395d4ceba2cb06719378fa6b4b134cc67ce..a0d0385a8ecff2802756e6ddca5215042bc8762a 100644 (file)
@@ -329,7 +329,6 @@ export default class CustomRuleFormModal extends React.PureComponent<Props, Stat
           />
         )}
         <div className="note" dangerouslySetInnerHTML={{ __html: param.htmlDesc || '' }} />
-        {param.extra && <div className="note">{param.extra}</div>}
       </td>
     </tr>
   );