Skip to main content

Generate GDScript API indexes and enforce public API comment coverage.

Project description

GDScript API Comment Coverage

Generate a Markdown API index for Godot GDScript projects and enforce configurable comment coverage for public classes, signals, exported properties, constants, and public functions.

The goal is practical maintainability: a codebase-level map that can run in CI and catch undocumented public APIs before they spread.

Install

python -m pip install -e .

When published:

python -m pip install gdscript-api-comment-coverage

Quick Start

gdscript-api-coverage C:\Projects\MyGame --min-all 80
gdscript-api-coverage . --min-public-func 80 --min-signal 100
gdscript-api-coverage . --write-docs docs\API_INDEX.md
gdscript-api-coverage . --format json --output gdscript-api-report.json

Run against the sample:

gdscript-api-coverage examples\tiny-godot-project --write-docs API_INDEX.md --fail-on none

What It Finds

  • class_name declarations.
  • signal declarations.
  • @export var properties, including annotation-on-previous-line style.
  • Public func declarations that do not start with _.
  • Public constants.
  • Whether each item has an immediately preceding comment.

Comment Style

Prefer Godot doc comments:

## Emitted when data changes.
signal data_changed(id: String)

Single # comments are accepted, but ## is easier to distinguish as public documentation.

Documentation

Development

python -m pip install -e .
python -m unittest discover -s tests -v
gdscript-api-coverage examples\tiny-godot-project --min-all 60 --write-docs API_INDEX.md

Examples and fixtures are generic and should not expose private project content.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdscript_api_comment_coverage-0.1.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file gdscript_api_comment_coverage-0.1.1.tar.gz.

File metadata

File hashes

Hashes for gdscript_api_comment_coverage-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3a60a4759e0b99d1a0a90cd08ab1f3ec1ca25bb87cd61e84ffcf80253623882b
MD5 e888f99ccb29abff8d684688b1694369
BLAKE2b-256 85c4f6c1966750d871c586f74dbc2355470ca785a8b5402bc493e591fc55d046

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdscript_api_comment_coverage-0.1.1.tar.gz:

Publisher: publish-gdscript-api-comment-coverage.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gdscript_api_comment_coverage-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gdscript_api_comment_coverage-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c161cb765e471e0f5431232070b033d41aaca479ac389b3e42c5d8d81041bf88
MD5 aed4b5d8951af7dd82c3120f5d1770c8
BLAKE2b-256 454255be18e05dc885bb3da0cc96de7507eaa17a18f343360ea6812c08f802de

See more details on using hashes here.

Provenance

The following attestation bundles were made for gdscript_api_comment_coverage-0.1.1-py3-none-any.whl:

Publisher: publish-gdscript-api-comment-coverage.yml on NonniGB/godot-production-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page