checkmate5 4.1.0.dev35__py3-none-any.whl → 4.1.0.dev37__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,10 +14,10 @@ import re
14
14
  logger = logging.getLogger(__name__)
15
15
 
16
16
 
17
- class GptAnalyzer(BaseAnalyzer):
17
+ class AiGraphCodeScanAnalyzer(BaseAnalyzer):
18
18
 
19
19
  def __init__(self, *args, **kwargs):
20
- super(GptAnalyzer, self).__init__(*args, **kwargs)
20
+ super(AiGraphCodeScanAnalyzer, self).__init__(*args, **kwargs)
21
21
 
22
22
  def summarize(self, items):
23
23
  pass
@@ -0,0 +1,13 @@
1
+ from .analyzer import AiGraphCodeScanAnalyzer
2
+ from .issues_data import issues_data
3
+
4
+ analyzers = {
5
+ 'aigraphcodescan':
6
+ {
7
+ 'name': 'aigraphcodescan',
8
+ 'title': 'aigraphcodescan',
9
+ 'class': AiGraphCodeScanAnalyzer,
10
+ 'language': 'all',
11
+ 'issues_data': issues_data,
12
+ },
13
+ }
@@ -550,8 +550,8 @@ class CodeEnvironment(object):
550
550
  three = self.analyze_file_revision(file_revision, {"trufflehog3": analyzer_params})
551
551
  if analyzer_name == "yara":
552
552
  four = self.analyze_file_revision(file_revision, {"yara": analyzer_params})
553
- if analyzer_name == "gptanalyzer":
554
- five = self.analyze_file_revision(file_revision, {"gptanalyzer": analyzer_params})
553
+ if analyzer_name == "aigraphcodescan":
554
+ five = self.analyze_file_revision(file_revision, {"aigraphcodescan": analyzer_params})
555
555
  if analyzer_name == "privategptanalyzer":
556
556
  six = self.analyze_file_revision(file_revision, {"privategptanalyzer": analyzer_params})
557
557
 
@@ -106,8 +106,8 @@ def get_project(project_path, project_config, settings, backend):
106
106
  project_class = project_config.get('project_class', 'Project')
107
107
  ProjectClass = settings.models[project_class]
108
108
 
109
- # Attempt to find the project by project_id
110
- project = backend.filter({'pk': project_config['project_id']}).first()
109
+ project = backend.filter(ProjectClass).first()
110
+
111
111
 
112
112
  # If the project doesn't exist, create a new one
113
113
  if project is None:
@@ -17,7 +17,7 @@ plugins = {
17
17
  'git': 'checkmate.contrib.plugins.git',
18
18
  'bandit': 'checkmate.contrib.plugins.python.bandit',
19
19
  'gostaticcheck': 'checkmate.contrib.plugins.golang.gostaticcheck',
20
- 'gptanalyzer': 'checkmate.contrib.plugins.all.gptanalyzer',
20
+ 'aigraphcodescan': 'checkmate.contrib.plugins.all.aigraphcodescan',
21
21
  'brakeman': 'checkmate.contrib.plugins.ruby.brakeman',
22
22
  'tfsec': 'checkmate.contrib.plugins.iac.tfsec',
23
23
  'kubescape': 'checkmate.contrib.plugins.iac.kubescape',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: checkmate5
3
- Version: 4.1.0.dev35
3
+ Version: 4.1.0.dev37
4
4
  Summary: A meta-code checker written in Python.
5
5
  Author: Andreas Dewes
6
6
  License: AGPL-3.0
@@ -2,10 +2,10 @@ checkmate/__init__.py,sha256=h0A5VNAgY_KCei1186pBJXycyUYDdeInykmh26yrxOM,1121
2
2
  checkmate/__main__.py,sha256=f39qxz9fNWmRBKiqJij6cYBO-ekZghr7dDOqAF6xvjU,1182
3
3
  checkmate/contrib/__init__.py,sha256=h0A5VNAgY_KCei1186pBJXycyUYDdeInykmh26yrxOM,1121
4
4
  checkmate/contrib/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- checkmate/contrib/plugins/all/gptanalyzer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- checkmate/contrib/plugins/all/gptanalyzer/analyzer.py,sha256=IMdPr5a_WhncSa50nx6z0UntE67dIH_bgO4qkXb1FlY,3165
7
- checkmate/contrib/plugins/all/gptanalyzer/issues_data.py,sha256=pUC6pC33TEpgRProHoAJPvEr7wYaWgQvDXruWCTO_NE,252
8
- checkmate/contrib/plugins/all/gptanalyzer/setup.py,sha256=60GttDlkRy7Ne_upLOoBgkatBKeKumHi86eEaBz1hzY,304
5
+ checkmate/contrib/plugins/all/aigraphcodescan/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ checkmate/contrib/plugins/all/aigraphcodescan/analyzer.py,sha256=5CLYKjtKqxmtq5s9PYYrW8qnSN6eG55HoqWHQ4Kf7Nc,3189
7
+ checkmate/contrib/plugins/all/aigraphcodescan/issues_data.py,sha256=pUC6pC33TEpgRProHoAJPvEr7wYaWgQvDXruWCTO_NE,252
8
+ checkmate/contrib/plugins/all/aigraphcodescan/setup.py,sha256=ojrkDPRHVOC3mK34alu1d994uc0VpixFXsOJuZmr0pY,340
9
9
  checkmate/contrib/plugins/cve/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  checkmate/contrib/plugins/cve/text4shell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  checkmate/contrib/plugins/cve/text4shell/analyzer.py,sha256=RgYq1dIGLLRdn8GeehXbjmyaE5nJDh0qRfeI22xTO2g,1850
@@ -77,13 +77,13 @@ checkmate/lib/models.py,sha256=bmS_QDDBEMaqC0TiKNaoRBCHuVUK9S-TSBB7BYYJz7Q,7404
77
77
  checkmate/lib/analysis/__init__.py,sha256=_JpM1GkChWCfLKqPqEz3-8DCPwNe7lPwQDMoF_6Ore0,45
78
78
  checkmate/lib/analysis/base.py,sha256=R9Zy6rKKCw1LSAsBBBaBbgFEo6Fkdx8DTtp7bsYoywE,3309
79
79
  checkmate/lib/code/__init__.py,sha256=a_z91IbpJCeWSjv4Qh2NAlcLhSfesGJ_fFXiz7i5JGI,84
80
- checkmate/lib/code/environment.py,sha256=UibucBYu1JfTk4ufXpSg6m9j6DoJRLo6HLJsXl3uIJo,34584
80
+ checkmate/lib/code/environment.py,sha256=znU37Zh7DNRNkzycUGFO7c8INKjWZipAIpXN_THQAaY,34592
81
81
  checkmate/lib/stats/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
82
82
  checkmate/lib/stats/helpers.py,sha256=X21Pb7dz3PWubDRoqUjbxwonl43TRxqKEcwyM80tS6U,535
83
83
  checkmate/lib/stats/mapreduce.py,sha256=rGdA_HninEZSeowtBn5R02c6wyT5dxcu-0T2ftlMnY0,782
84
84
  checkmate/management/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
85
85
  checkmate/management/decorators.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
86
- checkmate/management/helpers.py,sha256=Kdd7P876dPeU0h6Stovbe3pSn7MmbZNrSVKvrSo_hAc,4619
86
+ checkmate/management/helpers.py,sha256=k4STjKlijvZvkC3EJc2IKGycU23bBbrjctYDZbO_umI,4548
87
87
  checkmate/management/commands/__init__.py,sha256=XAi0y8z1NviyGvLB68Oxnzr6Nw5AP8xgbcSSnc1Zcvw,766
88
88
  checkmate/management/commands/alembic.py,sha256=DTWH8hcY6UmWDo0wMwcID_wQIa-es7nyJHV6p1_T4FQ,718
89
89
  checkmate/management/commands/analyze.py,sha256=J1rawVEGjbrXT9ArfUVpfoLNs2JaFkV4mCrBnEIrXaw,1159
@@ -110,10 +110,10 @@ checkmate/scripts/__init__.py,sha256=XAi0y8z1NviyGvLB68Oxnzr6Nw5AP8xgbcSSnc1Zcvw
110
110
  checkmate/scripts/manage.py,sha256=mpioBaxzirAKXZtbxO-y4dbOcc6UoP0MaAMsNuKHbz0,4253
111
111
  checkmate/settings/__init__.py,sha256=z32hPz-kGS-tTGa6dWCFjrrrbS_eagLd-YrqBP3gjWI,33
112
112
  checkmate/settings/base.py,sha256=3WBXZITqoWepIja96bo5JTi-TDpQALPTCugL0E8z-yE,4551
113
- checkmate/settings/defaults.py,sha256=uK1KB50ukDbk2rACyiCQuXTNSr2M7GXE-2_GTFupbv0,2728
114
- checkmate5-4.1.0.dev35.dist-info/licenses/LICENSE.txt,sha256=SGQTFjJQjkYGoK1PCFfMKpfgRLm3yL0h9Mq2o26sm2E,151451
115
- checkmate5-4.1.0.dev35.dist-info/METADATA,sha256=Nu3r4Pc3ssTK_s65lAfuPCVJrelvwlDqoOZNf0TL_8U,1262
116
- checkmate5-4.1.0.dev35.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- checkmate5-4.1.0.dev35.dist-info/entry_points.txt,sha256=FbGnau5C4z98WmBYpMJqUzobQEr1AIi9aZApSavNojQ,60
118
- checkmate5-4.1.0.dev35.dist-info/top_level.txt,sha256=tl6eIJXedpLZbcbmYEwlhEzuTaSt0TvIRUesOb8gtng,10
119
- checkmate5-4.1.0.dev35.dist-info/RECORD,,
113
+ checkmate/settings/defaults.py,sha256=JaR9H5fciWy4PMX3oqIeaui7HDzjWSIhsXZD3tj4mSc,2736
114
+ checkmate5-4.1.0.dev37.dist-info/licenses/LICENSE.txt,sha256=SGQTFjJQjkYGoK1PCFfMKpfgRLm3yL0h9Mq2o26sm2E,151451
115
+ checkmate5-4.1.0.dev37.dist-info/METADATA,sha256=q-xFQvicITOCN3j7q6oSMCB4_lLyQif81cX65Vctung,1262
116
+ checkmate5-4.1.0.dev37.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ checkmate5-4.1.0.dev37.dist-info/entry_points.txt,sha256=FbGnau5C4z98WmBYpMJqUzobQEr1AIi9aZApSavNojQ,60
118
+ checkmate5-4.1.0.dev37.dist-info/top_level.txt,sha256=tl6eIJXedpLZbcbmYEwlhEzuTaSt0TvIRUesOb8gtng,10
119
+ checkmate5-4.1.0.dev37.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- from .analyzer import GptAnalyzer
2
- from .issues_data import issues_data
3
-
4
- analyzers = {
5
- 'gptanalyzer':
6
- {
7
- 'name': 'gptanalyzer',
8
- 'title': 'gptanalyzer',
9
- 'class': GptAnalyzer,
10
- 'language': 'all',
11
- 'issues_data': issues_data,
12
- },
13
- }