A linter for Ignition JSON files
Project description
Ignition Lint
Static analysis for Ignition Perspective view.json files. Catches naming inconsistencies, performance problems, broken component references, dead custom properties, and Python errors in embedded scripts — before they hit the gateway.
Why
Perspective views are JSON-encoded UI definitions with embedded Python scripts. There's no compiler, no IDE checker, no type system. A typo in an event handler, a now() polling interval that hammers the gateway, or a custom property nobody references will survive happily in source control until somebody hits the bad path in production.
Ignition Lint runs at design time. It builds an object model of every component, binding, and script in your views, then checks it against a configurable set of rules. Plug it into pre-commit to gate developers, into CI to gate pull requests, or run it standalone to audit an existing project.
Quick start
pip install ign-lint
ign-lint path/to/view.json
To lint many views with a project-wide config:
ign-lint --config rule_config.json --files "views/**/view.json"
Built-in rules
| Rule | What it catches |
|---|---|
NamePatternRule |
Component, property, and script names that don't match a configured convention |
BadComponentReferenceRule |
Brittle traversal patterns (.getSibling(), .getParent(), relative paths) |
ComponentReferenceValidationRule |
Relative references that don't resolve to a real component |
PollingIntervalRule |
now() polling intervals below a configurable minimum |
UnusedCustomPropertiesRule |
Custom properties and view parameters defined but never referenced |
ExcessiveContextDataRule |
Large datasets stored in custom properties (arrays, breadth, depth, total volume) |
PylintScriptRule |
Pylint findings across every script in the view |
Every rule is configurable. Severity is per-rule (error or warning). Several rules support auto-fix.
Documentation
The full documentation covers configuration, every rule (user guide plus full technical reference), pre-commit and GitHub Actions integration, debug output, and the framework internals for writing custom rules.
Read the docs: bw-design-group.github.io/ignition-lint
Highlights:
- Tutorial — first-run walkthrough on a real view, reading the output, and configuring a rule
- Per-rule pages — common configurations, examples drawn from real fixtures, and what each rule's auto-fix does
- Developer guide — the visitor pattern, base classes, registry API, and a step-by-step for writing your own rule
Project status
The package publishes to PyPI as ign-lint. Release history lives in CHANGELOG.md (and is mirrored in the docs site). Release process is documented in RELEASING.md.
License
MIT — see LICENSE.
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 ign_lint-0.5.2.tar.gz.
File metadata
- Download URL: ign_lint-0.5.2.tar.gz
- Upload date:
- Size: 79.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4ecb343917c0ade4755cf1d362c6552f7ff2b282f522bb69fdedf503ee568cf
|
|
| MD5 |
2688989dd37b23f15d9b91be91e730eb
|
|
| BLAKE2b-256 |
fc3e4ddb77c1c2d0483684aae4b44629899520401a471818cb3069ba2b64f3a6
|
Provenance
The following attestation bundles were made for ign_lint-0.5.2.tar.gz:
Publisher:
publish.yml on bw-design-group/ignition-lint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ign_lint-0.5.2.tar.gz -
Subject digest:
e4ecb343917c0ade4755cf1d362c6552f7ff2b282f522bb69fdedf503ee568cf - Sigstore transparency entry: 1706441934
- Sigstore integration time:
-
Permalink:
bw-design-group/ignition-lint@b300b36a470a75db16850088dbd15278150ac286 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/bw-design-group
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b300b36a470a75db16850088dbd15278150ac286 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ign_lint-0.5.2-py3-none-any.whl.
File metadata
- Download URL: ign_lint-0.5.2-py3-none-any.whl
- Upload date:
- Size: 95.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51ad5dee5cf9dbb7124166ed454ed01836f3c2f57cb16365d7bd7a2b5e88d6f1
|
|
| MD5 |
21eb52432a6696ae8adfb09f9e2363cb
|
|
| BLAKE2b-256 |
98a2814511cdaf265ef02ce8ed101b9484a51531e8186c0234ffba1fb22f8f6a
|
Provenance
The following attestation bundles were made for ign_lint-0.5.2-py3-none-any.whl:
Publisher:
publish.yml on bw-design-group/ignition-lint
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ign_lint-0.5.2-py3-none-any.whl -
Subject digest:
51ad5dee5cf9dbb7124166ed454ed01836f3c2f57cb16365d7bd7a2b5e88d6f1 - Sigstore transparency entry: 1706441971
- Sigstore integration time:
-
Permalink:
bw-design-group/ignition-lint@b300b36a470a75db16850088dbd15278150ac286 -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/bw-design-group
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b300b36a470a75db16850088dbd15278150ac286 -
Trigger Event:
push
-
Statement type: