checkmate5 4.0.93__py3-none-any.whl → 4.0.95__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.
- checkmate/contrib/plugins/__init__.py +0 -0
- checkmate/contrib/plugins/cve/__init__.py +0 -0
- checkmate/contrib/plugins/cve/text4shell/__init__.py +0 -0
- checkmate/contrib/plugins/cve/text4shell/analyzer.py +0 -0
- checkmate/contrib/plugins/cve/text4shell/issues_data.py +0 -0
- checkmate/contrib/plugins/cve/text4shell/setup.py +0 -0
- checkmate/contrib/plugins/git/__init__.py +0 -0
- checkmate/contrib/plugins/git/commands/__init__.py +0 -0
- checkmate/contrib/plugins/git/commands/analyze.py +0 -0
- checkmate/contrib/plugins/git/commands/base.py +0 -0
- checkmate/contrib/plugins/git/commands/diff.py +0 -0
- checkmate/contrib/plugins/git/commands/init.py +0 -0
- checkmate/contrib/plugins/git/commands/update_stats.py +0 -0
- checkmate/contrib/plugins/git/hooks/__init__.py +0 -0
- checkmate/contrib/plugins/git/hooks/project.py +0 -0
- checkmate/contrib/plugins/git/lib/__init__.py +0 -0
- checkmate/contrib/plugins/git/lib/repository.py +0 -0
- checkmate/contrib/plugins/git/lib/repository_pygit2.py +0 -0
- checkmate/contrib/plugins/git/models.py +0 -0
- checkmate/contrib/plugins/git/setup.py +0 -0
- checkmate/contrib/plugins/golang/__init__.py +0 -0
- checkmate/contrib/plugins/golang/gostaticcheck/__init__.py +0 -0
- checkmate/contrib/plugins/golang/gostaticcheck/analyzer.py +0 -0
- checkmate/contrib/plugins/golang/gostaticcheck/issues_data.py +0 -0
- checkmate/contrib/plugins/golang/gostaticcheck/setup.py +0 -0
- checkmate/contrib/plugins/iac/__init__.py +0 -0
- checkmate/contrib/plugins/iac/kubescape/__init__.py +0 -0
- checkmate/contrib/plugins/iac/kubescape/analyzer.py +0 -0
- checkmate/contrib/plugins/iac/kubescape/issues_data.py +0 -0
- checkmate/contrib/plugins/iac/kubescape/setup.py +0 -0
- checkmate/contrib/plugins/iac/tfsec/__init__.py +0 -0
- checkmate/contrib/plugins/iac/tfsec/analyzer.py +0 -0
- checkmate/contrib/plugins/iac/tfsec/issues_data.py +0 -0
- checkmate/contrib/plugins/iac/tfsec/setup.py +0 -0
- checkmate/contrib/plugins/java/__init__.py +0 -0
- checkmate/contrib/plugins/java/semgrepjava/__init__.py +0 -0
- checkmate/contrib/plugins/java/semgrepjava/analyzer.py +0 -0
- checkmate/contrib/plugins/java/semgrepjava/issues_data.py +0 -0
- checkmate/contrib/plugins/java/semgrepjava/setup.py +0 -0
- checkmate/contrib/plugins/javascript/__init__.py +0 -0
- checkmate/contrib/plugins/javascript/semgrepeslint/__init__.py +0 -0
- checkmate/contrib/plugins/javascript/semgrepeslint/analyzer.py +0 -0
- checkmate/contrib/plugins/javascript/semgrepeslint/issues_data.py +0 -0
- checkmate/contrib/plugins/javascript/semgrepeslint/setup.py +0 -0
- checkmate/contrib/plugins/perl/__init__.py +0 -0
- checkmate/contrib/plugins/perl/graudit/__init__.py +0 -0
- checkmate/contrib/plugins/perl/graudit/analyzer.py +0 -0
- checkmate/contrib/plugins/perl/graudit/issues_data.py +0 -0
- checkmate/contrib/plugins/perl/graudit/setup.py +0 -0
- checkmate/contrib/plugins/python/__init__.py +0 -0
- checkmate/contrib/plugins/python/bandit/__init__.py +0 -0
- checkmate/contrib/plugins/python/bandit/analyzer.py +0 -0
- checkmate/contrib/plugins/python/bandit/issues_data.py +0 -0
- checkmate/contrib/plugins/python/bandit/setup.py +0 -0
- checkmate/contrib/plugins/ruby/__init__.py +0 -0
- checkmate/contrib/plugins/ruby/brakeman/__init__.py +0 -0
- checkmate/contrib/plugins/ruby/brakeman/analyzer.py +0 -0
- checkmate/contrib/plugins/ruby/brakeman/issues_data.py +0 -0
- checkmate/contrib/plugins/ruby/brakeman/setup.py +0 -0
- checkmate/helpers/__init__.py +0 -0
- checkmate/helpers/facts.py +0 -0
- checkmate/helpers/hashing.py +0 -0
- checkmate/helpers/issue.py +0 -0
- checkmate/helpers/settings.py +0 -0
- checkmate/lib/__init__.py +0 -0
- checkmate/lib/analysis/__init__.py +0 -0
- checkmate/lib/analysis/base.py +0 -0
- checkmate/lib/code/__init__.py +0 -0
- checkmate/lib/code/environment.py +0 -0
- checkmate/lib/models.py +3 -0
- checkmate/lib/stats/__init__.py +0 -0
- checkmate/lib/stats/helpers.py +0 -0
- checkmate/lib/stats/mapreduce.py +0 -0
- checkmate/management/__init__.py +0 -0
- checkmate/management/commands/__init__.py +0 -0
- checkmate/management/commands/alembic.py +0 -0
- checkmate/management/commands/analyze.py +0 -0
- checkmate/management/commands/analyzers.py +0 -0
- checkmate/management/commands/base.py +0 -0
- checkmate/management/commands/compare.py +0 -0
- checkmate/management/commands/export.py +0 -0
- checkmate/management/commands/info.py +0 -0
- checkmate/management/commands/init.py +0 -0
- checkmate/management/commands/issues.py +0 -0
- checkmate/management/commands/props/__init__.py +0 -0
- checkmate/management/commands/props/delete.py +0 -0
- checkmate/management/commands/props/get.py +0 -0
- checkmate/management/commands/props/set.py +0 -0
- checkmate/management/commands/reset.py +0 -0
- checkmate/management/commands/shell.py +0 -0
- checkmate/management/commands/snapshots.py +0 -0
- checkmate/management/commands/stats.py +0 -0
- checkmate/management/commands/summary.py +0 -0
- checkmate/management/commands/sync.py +0 -0
- checkmate/management/commands/trend.py +0 -0
- checkmate/management/commands/watch.py +0 -0
- checkmate/management/decorators.py +0 -0
- checkmate/management/helpers.py +9 -8
- checkmate/scripts/__init__.py +0 -0
- checkmate/scripts/manage.py +0 -0
- checkmate/settings/__init__.py +0 -0
- checkmate/settings/base.py +0 -0
- checkmate/settings/defaults.py +0 -0
- {checkmate5-4.0.93.dist-info → checkmate5-4.0.95.dist-info}/METADATA +1 -1
- {checkmate5-4.0.93.dist-info → checkmate5-4.0.95.dist-info}/RECORD +8 -8
- {checkmate5-4.0.93.dist-info → checkmate5-4.0.95.dist-info}/WHEEL +1 -1
- {checkmate5-4.0.93.dist-info → checkmate5-4.0.95.dist-info}/LICENSE.txt +0 -0
- {checkmate5-4.0.93.dist-info → checkmate5-4.0.95.dist-info}/entry_points.txt +0 -0
- {checkmate5-4.0.93.dist-info → checkmate5-4.0.95.dist-info}/top_level.txt +0 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
checkmate/helpers/__init__.py
CHANGED
|
File without changes
|
checkmate/helpers/facts.py
CHANGED
|
File without changes
|
checkmate/helpers/hashing.py
CHANGED
|
File without changes
|
checkmate/helpers/issue.py
CHANGED
|
File without changes
|
checkmate/helpers/settings.py
CHANGED
|
File without changes
|
checkmate/lib/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
checkmate/lib/analysis/base.py
CHANGED
|
File without changes
|
checkmate/lib/code/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
checkmate/lib/models.py
CHANGED
|
@@ -432,6 +432,9 @@ class ProjectIssueClass(BaseDocument):
|
|
|
432
432
|
class Project(BaseDocument):
|
|
433
433
|
|
|
434
434
|
IssueClass = IssueClass
|
|
435
|
+
project_id = IntegerField(indexed=True, unique=True)
|
|
436
|
+
|
|
437
|
+
|
|
435
438
|
|
|
436
439
|
# contains a hash of the project configuration that will be used to mark
|
|
437
440
|
# snapshots, diffs, file revisions etc.
|
checkmate/lib/stats/__init__.py
CHANGED
|
File without changes
|
checkmate/lib/stats/helpers.py
CHANGED
|
File without changes
|
checkmate/lib/stats/mapreduce.py
CHANGED
|
File without changes
|
checkmate/management/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
checkmate/management/helpers.py
CHANGED
|
@@ -91,12 +91,12 @@ def get_backend(project_path, project_config, settings, echo=False, initialize_d
|
|
|
91
91
|
if not connection_string:
|
|
92
92
|
raise ValueError("Connection string is required for the 'sql' backend.")
|
|
93
93
|
engine = create_engine(connection_string)
|
|
94
|
-
backend =
|
|
94
|
+
backend = SQLBackend(engine)
|
|
95
95
|
elif backend_type == "sqlite":
|
|
96
96
|
if not connection_string:
|
|
97
97
|
connection_string = f"sqlite:///{project_path}/database.db"
|
|
98
98
|
engine = create_engine(connection_string, echo=echo)
|
|
99
|
-
backend =
|
|
99
|
+
backend = FileBackend(engine)
|
|
100
100
|
else:
|
|
101
101
|
raise ValueError("Unsupported backend type specified.")
|
|
102
102
|
|
|
@@ -112,15 +112,16 @@ def get_project(project_path, project_config, settings, backend):
|
|
|
112
112
|
project_class = project_config.get('project_class', 'Project')
|
|
113
113
|
ProjectClass = settings.models[project_class]
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
# Attempt to find the project by project_id
|
|
116
|
+
project = backend.filter(ProjectClass, {'pk': project_config['project_id']}).first()
|
|
117
|
+
|
|
118
|
+
# If the project doesn't exist, create a new one
|
|
119
|
+
if project is None:
|
|
118
120
|
project = ProjectClass(pk=project_config['project_id'])
|
|
119
121
|
backend.add(project)
|
|
120
|
-
project
|
|
122
|
+
# If needed, ensure that the project is persisted
|
|
123
|
+
backend.commit() # If your backend requires an explicit commit
|
|
121
124
|
|
|
122
|
-
project.path = project_path
|
|
123
|
-
backend.add(project)
|
|
124
125
|
return project
|
|
125
126
|
|
|
126
127
|
def main():
|
checkmate/scripts/__init__.py
CHANGED
|
File without changes
|
checkmate/scripts/manage.py
CHANGED
|
File without changes
|
checkmate/settings/__init__.py
CHANGED
|
File without changes
|
checkmate/settings/base.py
CHANGED
|
File without changes
|
checkmate/settings/defaults.py
CHANGED
|
File without changes
|
|
@@ -72,7 +72,7 @@ checkmate/helpers/issue.py,sha256=7wImtI8uZR5VcE_1u7mI8qvEXU97p6Rzkb1bbJkqXKQ,38
|
|
|
72
72
|
checkmate/helpers/settings.py,sha256=97zsz4vNq7EpUpRME4XQvvp5LUp3618ZvSfNTce_4j4,322
|
|
73
73
|
checkmate/lib/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
74
74
|
checkmate/lib/backend.py,sha256=dO3rMqI70D8-9CrgL3qu3fqKf0BXvJCDIgSIys8IRyM,3683
|
|
75
|
-
checkmate/lib/models.py,sha256=
|
|
75
|
+
checkmate/lib/models.py,sha256=rqIMCwyZjgDz59QDZGX8HSKSBNT2oNkOubFuDolVWjk,20254
|
|
76
76
|
checkmate/lib/analysis/__init__.py,sha256=_JpM1GkChWCfLKqPqEz3-8DCPwNe7lPwQDMoF_6Ore0,45
|
|
77
77
|
checkmate/lib/analysis/base.py,sha256=R9Zy6rKKCw1LSAsBBBaBbgFEo6Fkdx8DTtp7bsYoywE,3309
|
|
78
78
|
checkmate/lib/code/__init__.py,sha256=a_z91IbpJCeWSjv4Qh2NAlcLhSfesGJ_fFXiz7i5JGI,84
|
|
@@ -82,7 +82,7 @@ checkmate/lib/stats/helpers.py,sha256=X21Pb7dz3PWubDRoqUjbxwonl43TRxqKEcwyM80tS6
|
|
|
82
82
|
checkmate/lib/stats/mapreduce.py,sha256=rGdA_HninEZSeowtBn5R02c6wyT5dxcu-0T2ftlMnY0,782
|
|
83
83
|
checkmate/management/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
84
84
|
checkmate/management/decorators.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
85
|
-
checkmate/management/helpers.py,sha256=
|
|
85
|
+
checkmate/management/helpers.py,sha256=sWxdeJTK1UbqWW8B1xxaWuSFdMkJAHerFxGGfombRV8,5469
|
|
86
86
|
checkmate/management/commands/__init__.py,sha256=XAi0y8z1NviyGvLB68Oxnzr6Nw5AP8xgbcSSnc1Zcvw,766
|
|
87
87
|
checkmate/management/commands/alembic.py,sha256=DTWH8hcY6UmWDo0wMwcID_wQIa-es7nyJHV6p1_T4FQ,718
|
|
88
88
|
checkmate/management/commands/analyze.py,sha256=J1rawVEGjbrXT9ArfUVpfoLNs2JaFkV4mCrBnEIrXaw,1159
|
|
@@ -110,9 +110,9 @@ checkmate/scripts/manage.py,sha256=mpioBaxzirAKXZtbxO-y4dbOcc6UoP0MaAMsNuKHbz0,4
|
|
|
110
110
|
checkmate/settings/__init__.py,sha256=z32hPz-kGS-tTGa6dWCFjrrrbS_eagLd-YrqBP3gjWI,33
|
|
111
111
|
checkmate/settings/base.py,sha256=3WBXZITqoWepIja96bo5JTi-TDpQALPTCugL0E8z-yE,4551
|
|
112
112
|
checkmate/settings/defaults.py,sha256=HJoZIin2BHT_gBCngGZNh7WgSNLqIDTK--iW7hXez4Q,5084
|
|
113
|
-
checkmate5-4.0.
|
|
114
|
-
checkmate5-4.0.
|
|
115
|
-
checkmate5-4.0.
|
|
116
|
-
checkmate5-4.0.
|
|
117
|
-
checkmate5-4.0.
|
|
118
|
-
checkmate5-4.0.
|
|
113
|
+
checkmate5-4.0.95.dist-info/LICENSE.txt,sha256=9cSf5btiPmglu3yzhXkXcf7GNT8XC9o7Y54tfhvfDp8,213739
|
|
114
|
+
checkmate5-4.0.95.dist-info/METADATA,sha256=f9YnctawSaJrWbF4h5btY6FnDUFfianTFkFtGoO8VvA,1234
|
|
115
|
+
checkmate5-4.0.95.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
116
|
+
checkmate5-4.0.95.dist-info/entry_points.txt,sha256=FbGnau5C4z98WmBYpMJqUzobQEr1AIi9aZApSavNojQ,60
|
|
117
|
+
checkmate5-4.0.95.dist-info/top_level.txt,sha256=tl6eIJXedpLZbcbmYEwlhEzuTaSt0TvIRUesOb8gtng,10
|
|
118
|
+
checkmate5-4.0.95.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|