Skip to main content

EnvGene Linter

EnvGene Linter checks local EnvGene instance repositories for configuration placement, naming, secret handling and reference integrity. It saves an HTML report and prints its absolute path. Use --console to also print findings in the terminal.

This is an alpha release. Rule coverage is incomplete and findings should be reviewed before changing configuration. INT-1 schema validation is not yet implemented.

Installation

Requires Python 3.12 or newer.

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade qubership-envgene-linter
envgene-linter --help

The PyPI project name is qubership-envgene-linter. The installed command is envgene-linter.

On Windows PowerShell, activate with .venv\Scripts\Activate.ps1.

Usage

From an EnvGene instance repository root containing environments/, run:

envgene-linter check

The command creates or overwrites envgene-linter-report.html in that repository and prints its absolute path. Open the report in a browser. The report is self-contained and is added to the repository's .gitignore.

To also print findings in the terminal, or to check another repository:

envgene-linter check --console
envgene-linter check /path/to/instance-repository

Errors and parsing diagnostics remain visible without --console. The --html flag was removed in 0.0.2. Remove it from existing commands.

Checks run locally without network calls. The tool does not render Jinja, decrypt secrets, generate environments or automatically fix configuration. It checks objects selected by supported local references or known generator usage; unused files are not automatically included.

Implemented rules

  • Placement: PLACE-1, PLACE-2, PLACE-3, PLACE-4, PLACE-6, PLACE-7, PLACE-8, PLACE-9, PLACE-10.
  • Naming: NAME-2.
  • Secrets: SEC-1, SEC-3, SEC-4, SEC-5.
  • Integrity: INT-2.

Findings include a location, rule identifier and message. Security findings avoid displaying secret values. Review reports before sharing them: paths and other configuration information may still be sensitive.

Rule configuration

Package builders can set each rule to True or False in src/envgene_linter/rule_config.py before rebuilding. The rules listed above are enabled in this build. Installed packages use the configuration included in their build. There is no repository-level configuration file or CLI override. Disabled rules do not run and are listed as disabled in terminal and HTML reports. Invalid flags cause exit code 2.

Exit status

Exit code 0 means the check completed, even when findings were reported. Exit code 2 indicates a command or operational error. This alpha does not provide a findings-based CI failure threshold.

Release history

See the changelog for changes by version and migration instructions.

Metadata

Release files for qubership-envgene-linter 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qubership-envgene-linter 0.0.2
File Size Uploaded
qubership_envgene_linter-0.0.2.tar.gz 42.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qubership-envgene-linter 0.0.2
File Interpreter ABI Platform
qubership_envgene_linter-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 104.4 kB

Release files / qubership_envgene_linter-0.0.2.tar.gz

Download URL qubership_envgene_linter-0.0.2.tar.gz
Size 42.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4e3ef676c3e9d5c98232e90e450e7abe69ed19ee2c2bd28e4eb58dea00bd00b4
BLAKE2b-256 checksum
How to use checksums
d6f9f7a25f20033c1bec27efd0d15f364dd9d94f12c85bbb694944f0ec098135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.14 Linux/6.17.0-1022-azure

Release files / qubership_envgene_linter-0.0.2-py3-none-any.whl

Download URL qubership_envgene_linter-0.0.2-py3-none-any.whl
Size 62.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
669639f8777d74448f61567acfb252d4b3c75cdd2a3e159c158e97c23971394b
BLAKE2b-256 checksum
How to use checksums
37e3a499527ca2be612977cd34f915aeda74d4dfdc8bfcfab2fea158bd4bec7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.14 Linux/6.17.0-1022-azure

Release history Release notifications | RSS feed

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page