]> source.dussan.org Git - sonarqube.git/blob
ad368c1d951cceb4861f171c6594d061d047ae48
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <Fragment>
5   <div
6     className="display-inline-flex-center issue-message break-word"
7   >
8     <span
9       className="spacer-right"
10     >
11       Reduce the number of conditional operators (4) used in the expression
12     </span>
13   </div>
14   <ButtonLink
15     aria-label="issue.why_this_issue.long"
16     className="issue-see-rule spacer-right text-baseline"
17     onClick={[Function]}
18   >
19     issue.why_this_issue
20   </ButtonLink>
21 </Fragment>
22 `;
23
24 exports[`should render correctly: is deprecated rule 1`] = `
25 <Fragment>
26   <div
27     className="display-inline-flex-center issue-message break-word"
28   >
29     <span
30       className="spacer-right"
31     >
32       Reduce the number of conditional operators (4) used in the expression
33     </span>
34     <DocumentationTooltip
35       className="spacer-left"
36       content="rules.status.DEPRECATED.help"
37       links={
38         Array [
39           Object {
40             "href": "/documentation/user-guide/rules/",
41             "label": "see_x.rules",
42           },
43         ]
44       }
45     >
46       <span
47         className="spacer-right badge badge-error"
48       >
49         issue.resolution.DEPRECATED.rule_deprecated
50       </span>
51     </DocumentationTooltip>
52   </div>
53   <ButtonLink
54     aria-label="issue.why_this_issue.long"
55     className="issue-see-rule spacer-right text-baseline"
56     onClick={[Function]}
57   >
58     issue.why_this_issue
59   </ButtonLink>
60 </Fragment>
61 `;
62
63 exports[`should render correctly: is manual vulnerability 1`] = `
64 <Fragment>
65   <div
66     className="display-inline-flex-center issue-message break-word"
67   >
68     <span
69       className="spacer-right"
70     >
71       Reduce the number of conditional operators (4) used in the expression
72     </span>
73     <Tooltip
74       overlay="issue.manual_vulnerability.description"
75     >
76       <div
77         className="badge spacer-right text-baseline"
78       >
79         issue.manual_vulnerability
80       </div>
81     </Tooltip>
82   </div>
83   <ButtonLink
84     aria-label="issue.why_this_issue.long"
85     className="issue-see-rule spacer-right text-baseline"
86     onClick={[Function]}
87   >
88     issue.why_this_issue
89   </ButtonLink>
90 </Fragment>
91 `;
92
93 exports[`should render correctly: is removed rule 1`] = `
94 <Fragment>
95   <div
96     className="display-inline-flex-center issue-message break-word"
97   >
98     <span
99       className="spacer-right"
100     >
101       Reduce the number of conditional operators (4) used in the expression
102     </span>
103     <DocumentationTooltip
104       className="spacer-left"
105       content="rules.status.REMOVED.help"
106       links={
107         Array [
108           Object {
109             "href": "/documentation/user-guide/rules/",
110             "label": "see_x.rules",
111           },
112         ]
113       }
114     >
115       <span
116         className="spacer-right badge badge-error"
117       >
118         issue.resolution.REMOVED.rule_removed
119       </span>
120     </DocumentationTooltip>
121   </div>
122   <ButtonLink
123     aria-label="issue.why_this_issue.long"
124     className="issue-see-rule spacer-right text-baseline"
125     onClick={[Function]}
126   >
127     issue.why_this_issue
128   </ButtonLink>
129 </Fragment>
130 `;
131
132 exports[`should render correctly: with engine info 1`] = `
133 <Fragment>
134   <div
135     className="display-inline-flex-center issue-message break-word"
136   >
137     <span
138       className="spacer-right"
139     >
140       Reduce the number of conditional operators (4) used in the expression
141     </span>
142     <Tooltip
143       overlay="issue.from_external_rule_engine.js"
144     >
145       <div
146         className="badge spacer-right text-baseline"
147       >
148         js
149       </div>
150     </Tooltip>
151   </div>
152   <ButtonLink
153     aria-label="issue.why_this_issue.long"
154     className="issue-see-rule spacer-right text-baseline"
155     onClick={[Function]}
156   >
157     issue.why_this_issue
158   </ButtonLink>
159 </Fragment>
160 `;
161
162 exports[`should render correctly: with engine name 1`] = `
163 <Fragment>
164   <div
165     className="display-inline-flex-center issue-message break-word"
166   >
167     <span
168       className="spacer-right"
169     >
170       Reduce the number of conditional operators (4) used in the expression
171     </span>
172     <Tooltip
173       overlay="issue.from_external_rule_engine.JS"
174     >
175       <div
176         className="badge spacer-right text-baseline"
177       >
178         JS
179       </div>
180     </Tooltip>
181   </div>
182   <ButtonLink
183     aria-label="issue.why_this_issue.long"
184     className="issue-see-rule spacer-right text-baseline"
185     onClick={[Function]}
186   >
187     issue.why_this_issue
188   </ButtonLink>
189 </Fragment>
190 `;
191
192 exports[`should render correctly: with quick fix 1`] = `
193 <Fragment>
194   <div
195     className="display-inline-flex-center issue-message break-word"
196   >
197     <span
198       className="spacer-right"
199     >
200       Reduce the number of conditional operators (4) used in the expression
201     </span>
202     <Tooltip
203       mouseLeaveDelay={0.5}
204       overlay={
205         <FormattedMessage
206           defaultMessage="issue.quick_fix_available_with_sonarlint"
207           id="issue.quick_fix_available_with_sonarlint"
208           values={
209             Object {
210               "link": <a
211                 href="https://www.sonarqube.org/sonarlint/?referrer=sonarqube-quick-fix"
212                 rel="noopener noreferrer"
213                 target="_blank"
214               >
215                 SonarLint
216               </a>,
217             }
218           }
219         />
220       }
221     >
222       <SonarLintIcon
223         className="it__issues-sonarlint-quick-fix spacer-right"
224         size={15}
225       />
226     </Tooltip>
227   </div>
228   <ButtonLink
229     aria-label="issue.why_this_issue.long"
230     className="issue-see-rule spacer-right text-baseline"
231     onClick={[Function]}
232   >
233     issue.why_this_issue
234   </ButtonLink>
235 </Fragment>
236 `;