checkmate5 5.1.0.dev4__py3-none-any.whl → 5.1.0.dev5__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.
- {checkmate5-5.1.0.dev4.dist-info → checkmate5-5.1.0.dev5.dist-info}/METADATA +49 -3
- {checkmate5-5.1.0.dev4.dist-info → checkmate5-5.1.0.dev5.dist-info}/RECORD +6 -6
- {checkmate5-5.1.0.dev4.dist-info → checkmate5-5.1.0.dev5.dist-info}/WHEEL +0 -0
- {checkmate5-5.1.0.dev4.dist-info → checkmate5-5.1.0.dev5.dist-info}/entry_points.txt +0 -0
- {checkmate5-5.1.0.dev4.dist-info → checkmate5-5.1.0.dev5.dist-info}/licenses/LICENSE.txt +0 -0
- {checkmate5-5.1.0.dev4.dist-info → checkmate5-5.1.0.dev5.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: checkmate5
|
|
3
|
-
Version: 5.1.0.
|
|
3
|
+
Version: 5.1.0.dev5
|
|
4
4
|
Summary: A meta-code checker written in Python.
|
|
5
5
|
Author: Andreas Dewes
|
|
6
6
|
License: AGPL-3.0
|
|
@@ -37,6 +37,8 @@ Checkmate is a cross-language (meta-)tool for static code analysis, written in P
|
|
|
37
37
|
|
|
38
38
|
# Description
|
|
39
39
|
|
|
40
|
+
# Checkmate5: Backend Configuration, PK-Key, & Snapshots Usage
|
|
41
|
+
|
|
40
42
|
This guide explains how to configure the backend parameter for Checkmate5 (SQLite/Postgres), details the role and usage of the `pk` ("primary key") parameter, and describes how "snapshots" are used to associate findings with file hashes in project history.
|
|
41
43
|
|
|
42
44
|
---
|
|
@@ -59,8 +61,14 @@ You can specify the backend when initializing a new project or via configuration
|
|
|
59
61
|
|
|
60
62
|
#### Example CLI Usage
|
|
61
63
|
```bash
|
|
62
|
-
|
|
63
|
-
checkmate init --backend
|
|
64
|
+
# Initialize a new project using PostgreSQL
|
|
65
|
+
checkmate init --backend sql --backend-opts "postgresql://user:password@localhost/mydatabase" --pk myproject123
|
|
66
|
+
|
|
67
|
+
# Initialize a new project using SQLite (file-based)
|
|
68
|
+
checkmate init --backend sqlite --backend-opts "sqlite:///path/to/db.sqlite" --pk myproject456
|
|
69
|
+
|
|
70
|
+
# Initialize a new project using SQLite (in-memory, good for testing)
|
|
71
|
+
checkmate init --backend sqlite --backend-opts "sqlite:///:memory:" --pk testproject
|
|
64
72
|
```
|
|
65
73
|
|
|
66
74
|
#### Configuration Structure Example (`.checkmate/config.json`)
|
|
@@ -156,6 +164,44 @@ Checkmate can compare ("diff") snapshots to show what changed between two states
|
|
|
156
164
|
|
|
157
165
|
---
|
|
158
166
|
|
|
167
|
+
## Sample Usage
|
|
168
|
+
|
|
169
|
+
### Initialize a New Project
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
# Using PostgreSQL as backend
|
|
173
|
+
checkmate init --backend sql --backend-opts "postgresql://user:password@localhost/mydatabase" --pk myproject123
|
|
174
|
+
|
|
175
|
+
# Using SQLite as backend
|
|
176
|
+
checkmate init --backend sqlite --backend-opts "sqlite:///myproject.db" --pk myproject456
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Run Analysis
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Analyze the current state (creates a new snapshot)
|
|
183
|
+
checkmate analyze
|
|
184
|
+
|
|
185
|
+
# Analyze a specific branch or commit (for git-enabled projects)
|
|
186
|
+
checkmate analyze --branch main
|
|
187
|
+
|
|
188
|
+
# Analyze and generate summary/diffs between snapshots (for history comparison)
|
|
189
|
+
checkmate summary
|
|
190
|
+
checkmate snapshots
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### View and Export Findings
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
# Show detected issues (optionally for a specific snapshot)
|
|
197
|
+
checkmate issues --snapshot <snapshot_id>
|
|
198
|
+
|
|
199
|
+
# Export findings to HTML or JSON report
|
|
200
|
+
checkmate issues html
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
159
205
|
## Summary Table
|
|
160
206
|
|
|
161
207
|
| Parameter | Description | Example Value |
|
|
@@ -67,9 +67,9 @@ checkmate/scripts/manage.py,sha256=vb4L171yfctLbZpQxn_kZ1hQLtCDqdQQGiq7BJlnQ2A,4
|
|
|
67
67
|
checkmate/settings/__init__.py,sha256=z32hPz-kGS-tTGa6dWCFjrrrbS_eagLd-YrqBP3gjWI,33
|
|
68
68
|
checkmate/settings/base.py,sha256=3WBXZITqoWepIja96bo5JTi-TDpQALPTCugL0E8z-yE,4551
|
|
69
69
|
checkmate/settings/defaults.py,sha256=qZqK82L4Qb96JkUP7J240rL_SPa3CNi3emZBh2LvSf4,1825
|
|
70
|
-
checkmate5-5.1.0.
|
|
71
|
-
checkmate5-5.1.0.
|
|
72
|
-
checkmate5-5.1.0.
|
|
73
|
-
checkmate5-5.1.0.
|
|
74
|
-
checkmate5-5.1.0.
|
|
75
|
-
checkmate5-5.1.0.
|
|
70
|
+
checkmate5-5.1.0.dev5.dist-info/licenses/LICENSE.txt,sha256=SGQTFjJQjkYGoK1PCFfMKpfgRLm3yL0h9Mq2o26sm2E,151451
|
|
71
|
+
checkmate5-5.1.0.dev5.dist-info/METADATA,sha256=hRIjiRKiF6Sjkvk8FQYN6zrokv_EyZe_9LYiPJeNqog,8340
|
|
72
|
+
checkmate5-5.1.0.dev5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
73
|
+
checkmate5-5.1.0.dev5.dist-info/entry_points.txt,sha256=FbGnau5C4z98WmBYpMJqUzobQEr1AIi9aZApSavNojQ,60
|
|
74
|
+
checkmate5-5.1.0.dev5.dist-info/top_level.txt,sha256=tl6eIJXedpLZbcbmYEwlhEzuTaSt0TvIRUesOb8gtng,10
|
|
75
|
+
checkmate5-5.1.0.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|