raprogramm/Rust PR Diff Analyzer

Analyze and limit PR size by distinguishing production code from test code using Rust AST analysis

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 22, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: raprogramm/rust-prod-diff-checker@887eced80cb9047d3fc202120f7d1cc484c8186b # v1.6.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
max_prod_unitsMaximum number of production units allowedno30
max_weighted_scoreMaximum weighted score allowedno100
max_prod_linesMaximum production lines addedno""
fail_on_exceedFail the action if limits are exceedednotrue
output_formatOutput format (github, json, human)nogithub
config_filePath to configuration fileno""
post_commentPost analysis as PR commentnofalse
update_commentUpdate existing comment instead of creating newnotrue
namedescription
prod_functions_changedNumber of production functions changed
prod_structs_changedNumber of production structs changed
prod_other_changedNumber of other production units changed
test_units_changedNumber of test units changed
prod_lines_addedLines added in production code
prod_lines_removedLines removed from production code
test_lines_addedLines added in test code
test_lines_removedLines removed from test code
weighted_scoreWeighted score of changes
exceeds_limitWhether limits were exceeded