Skip to content

Commit 3293c24

Browse files
committed
refactor: Rename project and all internals to privlog
Completed a project-wide rename from 'logmaster' to 'privlog' for consistency with the published package name. This includes: - Renaming the source directory to 'privlog'. - Renaming the rules file to 'privlog.yml'. - Updating pyproject.toml to use 'privlog' for the package and script. - Updating all internal imports and file paths. - Deleting the old 'logmaster.egg-info' directory.
1 parent f91540c commit 3293c24

20 files changed

Lines changed: 30 additions & 58 deletions

AGENTS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ It explains what the project does and where the important code lives.
2121
- `README.md`
2222
- **Purpose:** Provides a high-level overview for human users.
2323

24-
- `logmaster/`
25-
- The main Python package directory. (Note: The project is named `privlog`, but the package directory is still `logmaster`).
24+
- `privlog/`
25+
- The main Python package directory.
2626

27-
- `logmaster/cli.py`
27+
- `privlog/cli.py`
2828
- **Purpose:** The main entry point for the CLI application.
2929
- **Responsibilities:** Defines commands and arguments using Typer. Implements the `--warnings`/`-w` flag and filters findings based on severity (`ERROR` vs. `WARNING`).
3030

31-
- `logmaster/runner.py`
31+
- `privlog/runner.py`
3232
- **Purpose:** The main analysis engine.
3333
- **Responsibilities:** Runs both Semgrep and AST checks, converts all findings into a common `Finding` object, and determines the final exit code based *only* on the presence of `ERROR`-level findings.
3434

35-
- `logmaster/formatter.py`
35+
- `privlog/formatter.py`
3636
- **Purpose:** Handles the presentation of results.
3737
- **Responsibilities:** Prints findings in a `Flake8`-like format, with color-coding for severities.
3838

39-
- `logmaster/ast_checks.py`
39+
- `privlog/ast_checks.py`
4040
- **Purpose:** A high-precision Python linter using the `ast` module. It is the core of the tool's intelligence.
4141
- **Responsibilities:**
4242
1. **Severity System**: Divides sensitive variable names into `HIGH_CONFIDENCE_SENSITIVE_NAMES` (`ERROR`) and `WARNING_SENSITIVE_NAMES` (`WARNING`).
@@ -52,6 +52,6 @@ It explains what the project does and where the important code lives.
5252
- `LM2302`: `json.dumps()` is used in a `print()` call. Severity is `WARNING`.
5353
- `LM2303`: `.to_dict()` is used in a `print()` call. Severity is `WARNING`.
5454

55-
- `logmaster/rules/logmaster.yml`
55+
- `privlog/rules/privlog.yml`
5656
- **Purpose:** The core Semgrep ruleset, which complements the AST checker by finding broader, less precise patterns.
5757
- **Responsibilities:** Defines rules for detecting PII, secrets, and unsafe logging patterns like payload dumping.

logmaster.egg-info/PKG-INFO

Lines changed: 0 additions & 12 deletions
This file was deleted.

logmaster.egg-info/SOURCES.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

logmaster.egg-info/dependency_links.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

logmaster.egg-info/entry_points.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

logmaster.egg-info/requires.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

logmaster.egg-info/top_level.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

logmaster/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.
-147 Bytes
Binary file not shown.
-10.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)