actions-marketplace-validations/LOC Badge
Generate a badge to display total Lines of Code
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jun 22, 2022
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: actions-marketplace-validations/deathsy_gha-loc-badge@9cf618a681312e0ff55a9416549e4c71a751d177 # no releases — HEAD as of 2026-07-12tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| directory | The directory to scan. | no | ./ |
| badge | The output path to save the badge svg - including extension! | no | ./badge.svg |
| patterns | The file patterns to search for, separated by pipes ("|"). | no | ** |
| ignore | The file patterns to ignore, even if they matched "patterns", separated by pipes ("|"). | no | node_modules |
| badge_label | The label to use for the badge. | no | Lines of Code |
| badge_color | The color to use for the badge. | no | blue |
| badge_style | The body style to use for the badge. ('flat' or 'classic') | no | classic |
| badge_scale | The scale to resize this badge | no | 1 |
| badge_labelcolor | The color to use for this badge label. | no | 555 |
| debug | Enable debug logging | no | false |
Outputs
| name | description |
|---|---|
| total_lines | The total line count. |
| counted_files | A count of all files that were included in the total. |
| elapsed_ms | The time that this scan took. |
| output_path | The absolute path to the SVG that was generated. |
| output_dir | The absolute path to the directory that contains the output svg. |