Static analysis engine for AI-generated code reliability, security, and CI gating
Project description
devguard-core
devguard-core is a Python static analysis engine for security and reliability checks in application code.
It is designed for local developer workflows, CI pull request gates, and SARIF-based security tooling.
Install
python -m pip install devguard-core
Features
- Rule metadata model (
id,severity,match_type,description,fix) - File walker with language detection
- Built-in checks for common AI-code risks
- AST-backed Python checks for SQL injection, unsafe deserialization, and hardcoded secrets
- JSON and SARIF output
- Baseline input/output for incremental CI rollout
Built-In Rules
DG001: potential SQL injection patternsDG002: potential unsafe deserialization callsDG003: potential hardcoded secretsDG004: potential expensive allocations in loopsDG005: potential async/network calls without local error handling
Quick Run
devguard-core scan ./src --format json
Scan with CI-friendly filters:
devguard-core scan ./src --min-severity medium --min-confidence 0.7 --format sarif --output devguard.sarif
Scan changed files only:
git diff --name-only --diff-filter=ACMR origin/main...HEAD > changed-files.txt
devguard-core scan . --file-list changed-files.txt --format json
Baseline workflow:
devguard-core scan ./src --baseline-out .devguard-baseline.json --format json
devguard-core scan ./src --baseline-in .devguard-baseline.json --format json
Output Formats
json: machine and script friendly outputsarif: GitHub Code Scanning and security platform integration
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file devguard_core-0.1.3.post1.tar.gz.
File metadata
- Download URL: devguard_core-0.1.3.post1.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b67dee12138f11b60f9a6de107aaacfd7136ae575c01bb9a4a3fcd73a4e0ec7
|
|
| MD5 |
174b3ed6cc1a0f13c92a6895650fe052
|
|
| BLAKE2b-256 |
774bb1b0ff64aac852b141ee1577dabdd4b2a75eb827488e0bcc2a5d4a467087
|
File details
Details for the file devguard_core-0.1.3.post1-py3-none-any.whl.
File metadata
- Download URL: devguard_core-0.1.3.post1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
024f0f2c4b0ea80cbe4fe26e0d54037f5f5b5d201d5718b10885608d8afc7581
|
|
| MD5 |
f4557c261afd008ae769837d48806dd9
|
|
| BLAKE2b-256 |
f8c297bea7f78c1b4f3858ca19b6baef4fc07d09c1986445d2eac438afee6f59
|