MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / _check_scheme

Method _check_scheme

client/node/localtask/projectmgr.py:115–139  ·  view source on GitHub ↗

判断分析方案是否存在

(self, repo_schemes)

Source from the content-addressed store, hash-verified

113 sys.exit(0) # 正常退出
114
115 def _check_scheme(self, repo_schemes):
116 """判断分析方案是否存在"""
117 url_mgr = UrlMgr(self._front_end_url, repo_id=self._repo_id, org_sid=self._org_sid, team_name=self._team_name)
118 is_scheme_existed, scheme_params = SchemeManager.check_and_create_scheme(self._repo_id,
119 repo_schemes,
120 self._scan_plan,
121 self._ref_scheme_id,
122 self._scheme_template_ids,
123 self._scheme_templates,
124 self._languages,
125 url_mgr,
126 self._dog_server,
127 self._org_sid,
128 self._team_name,
129 self._source_dir,
130 self._include_paths,
131 self._exclude_paths,
132 self._proj_id)
133 if is_scheme_existed is False and scheme_params == "EmptyLanguage":
134 # 项目不包含语言,直接退出
135 self.__check_no_language_exit()
136
137 scheme_name = scheme_params.get("name")
138
139 return scheme_name, is_scheme_existed
140
141 def check_and_create_proj(self, scan_path):
142 """

Callers 1

check_and_create_projMethod · 0.95

Calls 4

UrlMgrClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected