Skip to content

Test space consistency and unused states - #2347

Open
matt852 wants to merge 3 commits into
masterfrom
test_space_consistency
Open

Test space consistency and unused states#2347
matt852 wants to merge 3 commits into
masterfrom
test_space_consistency

Conversation

@matt852

@matt852 matt852 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This PR adds a new pytest file with a few new checks:

  • test_template_compiles - Tests that all submitted templates successfully compile.
  • test_rule_indentation - TextFSM compiles with 1 space, 2 spaces, or a tab. This rule enforces 2 spaces as a standard.
  • test_no_unused_states - Verifies that every defined state is reachable from another rule.

Additionally, this PR cleans up multiple files not currently using the standard 2 spaces, as well as ones that have unreachable "Done" states at the end of them.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant