cancelButton: byRole('button', { name: 'cancel' }),
removeButton: byRole('button', { name: 'remove' }),
ruleCleanCodeAttributeCategory: (category: CleanCodeAttributeCategory) =>
- byText(`rule.clean_code_attribute_category.${category}.title_short`),
+ byText(`rule.clean_code_attribute_category.${category}`),
ruleCleanCodeAttribute: (attribute: CleanCodeAttribute) =>
byText(new RegExp(`rule\\.clean_code_attribute\\.${attribute}$`)),
ruleSoftwareQuality: (quality: SoftwareQuality) => byText(`software_quality.${quality}`),
'April 23, 2019',
'System',
'quality_profiles.changelog.DEACTIVATED',
- 'Rule 0issue.clean_code_attribute_category.RESPONSIBLE.title_shortsoftware_quality.SECURITYsoftware_quality.MAINTAINABILITY',
+ 'Rule 0issue.clean_code_attribute_category.RESPONSIBLEsoftware_quality.SECURITYsoftware_quality.MAINTAINABILITY',
[/quality_profiles.deprecated_severity_set_to severity.MAJOR/],
);
ui.checkRow(
'',
'',
'',
- 'Rule 1issue.clean_code_attribute_category.RESPONSIBLE.title_shortsoftware_quality.SECURITYsoftware_quality.MAINTAINABILITY',
+ 'Rule 1issue.clean_code_attribute_category.RESPONSIBLEsoftware_quality.SECURITYsoftware_quality.MAINTAINABILITY',
[
/quality_profiles.deprecated_severity_set_to severity.CRITICAL/,
/quality_profiles.changelog.cca_and_category_changed.*COMPLETE.*INTENTIONAL.*LAWFUL.*RESPONSIBLE/,
cleanCodeAttribute?: CleanCodeAttribute;
}
-export function CleanCodeAttributePill(props: Props) {
+export function CleanCodeAttributePill(props: Readonly<Props>) {
const { className, cleanCodeAttributeCategory, cleanCodeAttribute, type = 'issue' } = props;
return (
>
<Pill variant="neutral" data-guiding-id="issue-1" className={className}>
<span className={classNames({ 'sw-font-semibold': !!cleanCodeAttribute })}>
- {translate(
- type,
- 'clean_code_attribute_category',
- cleanCodeAttributeCategory,
- 'title_short',
- )}
+ {translate(type, 'clean_code_attribute_category', cleanCodeAttributeCategory)}
</span>
{cleanCodeAttribute && (
<span> | {translate(type, 'clean_code_attribute', cleanCodeAttribute)}</span>
issue.clean_code_attribute_category.CONSISTENT=Consistency
issue.clean_code_attribute_category.CONSISTENT.title=This is a consistency issue.
issue.clean_code_attribute_category.CONSISTENT.advice=To be consistent, the code needs to be written in a uniform and conventional way.
-issue.clean_code_attribute_category.CONSISTENT.title_short=Consistency issue
issue.clean_code_attribute_category.INTENTIONAL=Intentionality
issue.clean_code_attribute_category.INTENTIONAL.title=This is an intentionality issue.
issue.clean_code_attribute_category.INTENTIONAL.advice=To be intentional, the code content needs to be precise and purposeful.
-issue.clean_code_attribute_category.INTENTIONAL.title_short=Intentionality issue
issue.clean_code_attribute_category.ADAPTABLE=Adaptability
issue.clean_code_attribute_category.ADAPTABLE.title=This is an adaptability issue.
issue.clean_code_attribute_category.ADAPTABLE.advice=To be adaptable, the code needs to be structured to be easy to evolve and develop with confidence.
-issue.clean_code_attribute_category.ADAPTABLE.title_short=Adaptability issue
issue.clean_code_attribute_category.RESPONSIBLE=Responsibility
issue.clean_code_attribute_category.RESPONSIBLE.title=This is a responsibility issue.
issue.clean_code_attribute_category.RESPONSIBLE.advice=To be responsible, the code must take into account its ethical obligations on data and potential impact of societal norms.
-issue.clean_code_attribute_category.RESPONSIBLE.title_short=Responsibility issue
issue.clean_code_attribute=Clean Code Attribute
issue.clean_code_attribute.CLEAR=Not clear
rule.clean_code_attribute_category.CONSISTENT=Consistency
rule.clean_code_attribute_category.CONSISTENT.title=This is a consistency rule.
-rule.clean_code_attribute_category.CONSISTENT.title_short=Consistency rule
rule.clean_code_attribute_category.INTENTIONAL=Intentionality
rule.clean_code_attribute_category.INTENTIONAL.title=This is an intentionality rule.
-rule.clean_code_attribute_category.INTENTIONAL.title_short=Intentionality rule
rule.clean_code_attribute_category.ADAPTABLE=Adaptability
rule.clean_code_attribute_category.ADAPTABLE.title=This is an adaptability rule.
-rule.clean_code_attribute_category.ADAPTABLE.title_short=Adaptability rule
rule.clean_code_attribute_category.RESPONSIBLE=Responsibility
rule.clean_code_attribute_category.RESPONSIBLE.title=This is a responsibility rule.
-rule.clean_code_attribute_category.RESPONSIBLE.title_short=Responsibility rule
rule.clean_code_attribute.CLEAR=Clear
rule.clean_code_attribute.CLEAR.title=This is an intentionality rule, the code should be clear.