123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
-
- exports[`should render correctly: default 1`] = `
- <div
- className="display-inline-flex-center issue-message break-word"
- >
- <span
- className="spacer-right"
- >
- Reduce the number of conditional operators (4) used in the expression
- </span>
- <ButtonLink
- aria-label="issue.why_this_issue.long"
- className="issue-see-rule spacer-right text-baseline"
- onClick={[Function]}
- >
- issue.why_this_issue
- </ButtonLink>
- </div>
- `;
-
- exports[`should render correctly: is deprecated rule 1`] = `
- <div
- className="display-inline-flex-center issue-message break-word"
- >
- <span
- className="spacer-right"
- >
- Reduce the number of conditional operators (4) used in the expression
- </span>
- <ButtonLink
- aria-label="issue.why_this_issue.long"
- className="issue-see-rule spacer-right text-baseline"
- onClick={[Function]}
- >
- issue.why_this_issue
- </ButtonLink>
- <DocumentationTooltip
- className="spacer-left"
- content="rules.status.DEPRECATED.help"
- links={
- Array [
- Object {
- "href": "/documentation/user-guide/rules/",
- "label": "see_x.rules",
- },
- ]
- }
- >
- <span
- className="spacer-right badge badge-error"
- >
- rules.status.DEPRECATED
- </span>
- </DocumentationTooltip>
- </div>
- `;
-
- exports[`should render correctly: is manual vulnerability 1`] = `
- <div
- className="display-inline-flex-center issue-message break-word"
- >
- <span
- className="spacer-right"
- >
- Reduce the number of conditional operators (4) used in the expression
- </span>
- <ButtonLink
- aria-label="issue.why_this_issue.long"
- className="issue-see-rule spacer-right text-baseline"
- onClick={[Function]}
- >
- issue.why_this_issue
- </ButtonLink>
- <Tooltip
- overlay="issue.manual_vulnerability.description"
- >
- <div
- className="badge spacer-right text-baseline"
- >
- issue.manual_vulnerability
- </div>
- </Tooltip>
- </div>
- `;
-
- exports[`should render correctly: is removed rule 1`] = `
- <div
- className="display-inline-flex-center issue-message break-word"
- >
- <span
- className="spacer-right"
- >
- Reduce the number of conditional operators (4) used in the expression
- </span>
- <ButtonLink
- aria-label="issue.why_this_issue.long"
- className="issue-see-rule spacer-right text-baseline"
- onClick={[Function]}
- >
- issue.why_this_issue
- </ButtonLink>
- <DocumentationTooltip
- className="spacer-left"
- content="rules.status.REMOVED.help"
- links={
- Array [
- Object {
- "href": "/documentation/user-guide/rules/",
- "label": "see_x.rules",
- },
- ]
- }
- >
- <span
- className="spacer-right badge badge-error"
- >
- rules.status.REMOVED
- </span>
- </DocumentationTooltip>
- </div>
- `;
-
- exports[`should render correctly: with engine info 1`] = `
- <div
- className="display-inline-flex-center issue-message break-word"
- >
- <span
- className="spacer-right"
- >
- Reduce the number of conditional operators (4) used in the expression
- </span>
- <ButtonLink
- aria-label="issue.why_this_issue.long"
- className="issue-see-rule spacer-right text-baseline"
- onClick={[Function]}
- >
- issue.why_this_issue
- </ButtonLink>
- <Tooltip
- overlay="issue.from_external_rule_engine.js"
- >
- <div
- className="badge spacer-right text-baseline"
- >
- js
- </div>
- </Tooltip>
- </div>
- `;
-
- exports[`should render correctly: with engine name 1`] = `
- <div
- className="display-inline-flex-center issue-message break-word"
- >
- <span
- className="spacer-right"
- >
- Reduce the number of conditional operators (4) used in the expression
- </span>
- <ButtonLink
- aria-label="issue.why_this_issue.long"
- className="issue-see-rule spacer-right text-baseline"
- onClick={[Function]}
- >
- issue.why_this_issue
- </ButtonLink>
- <Tooltip
- overlay="issue.from_external_rule_engine.JS"
- >
- <div
- className="badge spacer-right text-baseline"
- >
- JS
- </div>
- </Tooltip>
- </div>
- `;
-
- exports[`should render correctly: with quick fix 1`] = `
- <div
- className="display-inline-flex-center issue-message break-word"
- >
- <span
- className="spacer-right"
- >
- Reduce the number of conditional operators (4) used in the expression
- </span>
- <Tooltip
- mouseLeaveDelay={0.5}
- overlay={
- <FormattedMessage
- defaultMessage="issue.quick_fix_available_with_sonarlint"
- id="issue.quick_fix_available_with_sonarlint"
- values={
- Object {
- "link": <a
- href="https://www.sonarqube.org/sonarlint/?referrer=sonarqube-quick-fix"
- rel="noopener noreferrer"
- target="_blank"
- >
- SonarLint
- </a>,
- }
- }
- />
- }
- >
- <SonarLintIcon
- className="it__issues-sonarlint-quick-fix spacer-right"
- size={15}
- />
- </Tooltip>
- <ButtonLink
- aria-label="issue.why_this_issue.long"
- className="issue-see-rule spacer-right text-baseline"
- onClick={[Function]}
- >
- issue.why_this_issue
- </ButtonLink>
- </div>
- `;
|