ItemButton,
ItemDangerButton,
ItemDivider,
+ LightLabel,
SubTitle,
} from 'design-system';
import { countBy } from 'lodash';
</div>
</div>
{qualityGate.isBuiltIn && (
- <p className="sw-mt-4">
- <FormattedMessage
- defaultMessage="quality_gates.is_built_in.description"
- id="quality_gates.is_built_in.description"
- tagName="p"
- values={{
- link: (
- <DocumentationLink to="/user-guide/clean-as-you-code/">
- {translate('clean_as_you_code')}
- </DocumentationLink>
- ),
- }}
- />
- </p>
+ <>
+ <LightLabel className="sw-mt-2">
+ <FormattedMessage
+ defaultMessage="quality_gates.is_built_in.cayc.description"
+ id="quality_gates.is_built_in.cayc.description"
+ values={{
+ link: (
+ <DocumentationLink to="/user-guide/clean-as-you-code/">
+ {translate('clean_as_you_code')}
+ </DocumentationLink>
+ ),
+ }}
+ />
+ </LightLabel>
+ <span className="sw-mt-9">
+ <FormattedMessage
+ defaultMessage="quality_gates.is_built_in.description"
+ id="quality_gates.is_built_in.description"
+ values={{
+ link: (
+ <DocumentationLink to="/user-guide/quality-gates/#recommended-quality-gate">
+ {translate('learn_more')}
+ </DocumentationLink>
+ ),
+ }}
+ />
+ </span>
+ </>
)}
</div>
{actionsCount === 1 && (
quality_gates.cannot_set_default_no_cayc=You must make this quality gate Clean as You Code compliant to make this the default quality gate.
quality_gates.cannot_copy_no_cayc=You must make this quality gate Clean as You Code compliant to copy.
quality_gates.is_default_no_conditions=This is the default quality gate, but it has no configured conditions. Please configure at least 1 condition for this quality gate.
-quality_gates.is_built_in.description=The only quality gate you need to practice {link}
+quality_gates.is_built_in.description=Sonar Way is recommended for most projects. {link}
+quality_gates.is_built_in.cayc.description=The only quality gate you need to practice {link}
quality_gates.conditions=Conditions
quality_gates.conditions.help=Your project will fail the Quality Gate if it crosses any metric thresholds set for New Code or Overall Code.
quality_gates.conditions.help.link=See also: Clean as You Code