MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / update_job_code_line

Method update_job_code_line

client/util/api/dogapi.py:423–441  ·  view source on GitHub ↗

上报分析任务job的代码行统计数据 :param job_id: :param code_line_dict: { "code_line_num": "comment_line_num": "blank_line_num": "total_line_num": } :return:

(self, task_params, job_id, code_line_dict)

Source from the content-addressed store, hash-verified

421 return self.get_data_from_result(rsp)
422
423 def update_job_code_line(self, task_params, job_id, code_line_dict):
424 """
425 上报分析任务job的代码行统计数据
426 :param job_id:
427 :param code_line_dict:
428 {
429 "code_line_num":
430 "comment_line_num":
431 "blank_line_num":
432 "total_line_num":
433 }
434 :return:
435 """
436 org_sid = task_params["org_sid"]
437 team_name = task_params["team_name"]
438 repo_id = task_params["repo_id"]
439 project_id = task_params["project_id"]
440 rel_url = f"api/orgs/{org_sid}/teams/{team_name}/repos/{repo_id}/projects/{project_id}/jobs/{job_id}/codeline/"
441 CodeDogHttpClient(self._server_url, rel_url, headers=self._headers, json_data=code_line_dict).put()
442
443 def get_scan_conf(self, org_sid, team_name, repo_id, proj_id):
444 """

Callers 1

runMethod · 0.80

Calls 2

CodeDogHttpClientClass · 0.85
putMethod · 0.45

Tested by

no test coverage detected