Skip to content

Commit 80d6958

Browse files
author
轻游
committed
PullRequest: 82 修改ACR内样式问题,增加mock数据
1 parent 71e5d79 commit 80d6958

2 files changed

Lines changed: 78 additions & 1 deletion

File tree

packages/acr/src/normalize.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ html {
4747
list-style: none;
4848
}
4949

50-
.anticon .cursor {
50+
.anticon.cursor {
5151
background-color: #ffffff;
5252
color: inherit;
5353
}

packages/integrations/src/antcode-cr/antcode/mock.service.ts

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,83 @@ export const mockService = {
175175
updatedAt: '2021-09-14T18:03:40+0800',
176176
conclusion: '',
177177
},
178+
{
179+
annotations: [
180+
{
181+
bugId: null,
182+
bugType: null,
183+
bugTypeName: null,
184+
checkRunId: 6859915,
185+
details: '发现邮件地址',
186+
endCol: 0,
187+
endLine: 8,
188+
feedBackStatus: 'Init',
189+
feedBackUser: null,
190+
feedBackUserId: null,
191+
id: 1593269,
192+
level: 'Warning',
193+
message:
194+
'推测 "<span style="color:red">kaitian.typescript-basics@1.51.1-patch.1</span>" 是邮件地址,可能导致信息泄露<div><span>[【标为确认】](https://codeinsightapi.alipay.com/api/v1/review?review=Confirm&fingerprint=56eb887b589102e1f5aa50d96f4637ff19c0fdf4&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=o5CnV88uqiW8FkqM3mFf7w&__codeinsight_body_signature__=5c46baad56ba722d5c59a8260bc16ceb0edbcb02ff3241190aabcc16685cbbaa)</span><span>[【标为忽略】](https://codeinsightapi.alipay.com/api/v1/review?review=Ignore&fingerprint=56eb887b589102e1f5aa50d96f4637ff19c0fdf4&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=6Yt3Ox3orFr-uNlCVbmpHA&__codeinsight_body_signature__=05cd70fdf1a1230d7c4ebd9eb28f9e8e09eb98847800ff408f4fdeb1ca6a9941)</span><span>[【标为误报】](https://codeinsightapi.alipay.com/api/v1/review?review=FalsePositive&fingerprint=56eb887b589102e1f5aa50d96f4637ff19c0fdf4&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=xDiNqnkiJ4WXaGsNNdKISQ&__codeinsight_body_signature__=4156bf822dd3de24b774cc1f4a67a0731ff4ebb86b888565afd629a361e30245)</span></div>',
195+
path: '.ext.config.js',
196+
startCol: 0,
197+
startLine: 8,
198+
title: '源文件硬编码邮箱地址',
199+
},
200+
{
201+
bugId: null,
202+
bugType: null,
203+
bugTypeName: null,
204+
checkRunId: 6859915,
205+
details: '发现邮件地址',
206+
endCol: 0,
207+
endLine: 27,
208+
feedBackStatus: 'Init',
209+
feedBackUser: null,
210+
feedBackUserId: null,
211+
id: 1593270,
212+
level: 'Warning',
213+
message:
214+
'推测 "<span style="color:red">liangzhiyu.lzy@alipay.com</span>" 是邮件地址,可能导致信息泄露<div><span>[【标为确认】](https://codeinsightapi.alipay.com/api/v1/review?review=Confirm&fingerprint=f8307ccf9b49aaa50e990c20448fdf75815f0bed&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=VDM2B_IpFhAj7HKgM_w38g&__codeinsight_body_signature__=efbda3ee71474f134a22ceb3d8b8730ef8094a43f06f8cf18def89d39d529f49)</span><span>[【标为忽略】](https://codeinsightapi.alipay.com/api/v1/review?review=Ignore&fingerprint=f8307ccf9b49aaa50e990c20448fdf75815f0bed&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=bcoEIVhcVmBDQvBKWVh6_A&__codeinsight_body_signature__=76017fdbf1dc42ee743cdb640c8ad1b5d826a99cc7642d4006bdb4c069925a03)</span><span>[【标为误报】](https://codeinsightapi.alipay.com/api/v1/review?review=FalsePositive&fingerprint=f8307ccf9b49aaa50e990c20448fdf75815f0bed&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=OTmqTmB5XcEwy69bgu33XA&__codeinsight_body_signature__=714b9ed74812214efe582e1bb561b7727a05b1b24b9df437bd5c9c346525d280)</span></div>',
215+
path: 'src/mock/blame-list.ts',
216+
startCol: 0,
217+
startLine: 27,
218+
title: '源文件硬编码邮箱地址',
219+
},
220+
{
221+
bugId: null,
222+
bugType: null,
223+
bugTypeName: null,
224+
checkRunId: 6859915,
225+
details: '发现邮件地址',
226+
endCol: 0,
227+
endLine: 83,
228+
feedBackStatus: 'Init',
229+
feedBackUser: null,
230+
feedBackUserId: null,
231+
id: 1593271,
232+
level: 'Warning',
233+
message:
234+
'推测 "<span style="color:red">liangzhiyu.lzy@alipay.com</span>" 是邮件地址,可能导致信息泄露<div><span>[【标为确认】](https://codeinsightapi.alipay.com/api/v1/review?review=Confirm&fingerprint=f8307ccf9b49aaa50e990c20448fdf75815f0bed&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=IMG0RaPgOm23QeTSP3lH8A&__codeinsight_body_signature__=0045f967b5c714dfc66ad7486334cac94cc5e300f5a7fae1d11d655a664bff15)</span><span>[【标为忽略】](https://codeinsightapi.alipay.com/api/v1/review?review=Ignore&fingerprint=f8307ccf9b49aaa50e990c20448fdf75815f0bed&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=A5-29WnRWQjZT1Z2AfDOBQ&__codeinsight_body_signature__=918c477f86e003b78836729d7be9fcbdf24e1c7e348ee62df78e25e221d8c65a)</span><span>[【标为误报】](https://codeinsightapi.alipay.com/api/v1/review?review=FalsePositive&fingerprint=f8307ccf9b49aaa50e990c20448fdf75815f0bed&report_id=123011035610&scan_record_id=68810564&__codeinsight_body_salt__=1nXvNoQ-6uvlF-z09tYX_A&__codeinsight_body_signature__=9ef3437fee3173e27904ba46bd1071c502f10aac84b87e0a6e5cac545c3676ee)</span></div>',
235+
path: 'src/mock/blame-list.ts',
236+
startCol: 0,
237+
startLine: 83,
238+
title: '源文件硬编码邮箱地址',
239+
},
240+
],
241+
completedAt: '2021-06-10T11:55:28+0800',
242+
context:
243+
'<span style="color: rgb(251, 103, 58);">🔴 失败</span>: 0 <span style="color: rgb(250, 140, 22);"> 🟠️ 警告</span>: 10 <span style="color: rgb(250, 173, 20);"> ⚪ 通知</span>: 0\n\n已扫描项:\n- 源文件硬编码邮箱地址 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: green;">完成</span>, 发现10个警告级别风险&nbsp;&nbsp;\n\n\n[**查看结果**](https://ide.alipay.com/alex/code-insight/sarif?project=yxy167584%2Feditor-plugin-blame&commit=3a5fe8b385bab8b88518497ef1cb578de129af8e&reportId=123011035610&status=New&status=Leftover&status=Unknown&review=Unknown&review=Confirm)',
244+
createdAt: '2021-06-10T11:54:58+0800',
245+
detailUrl: '',
246+
externalId: '123011035610',
247+
id: 6859915,
248+
startedAt: '2021-06-10T11:54:57+0800',
249+
status: 'success',
250+
suiteId: 6641835,
251+
summary: 'CodeInsight 源代码扫描执行成功,发现 10 个结果',
252+
title: 'pinpoint checkrun',
253+
updateAt: '2021-06-10T11:55:28+0800',
254+
},
178255
],
179256
service: {
180257
accessLevel: 20,

0 commit comments

Comments
 (0)