Skip to content

Instantly share code, notes, and snippets.

@Calinou
Created April 28, 2021 23:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Calinou/40f2e1b1d1d28cf6cc6d5f54d7782670 to your computer and use it in GitHub Desktop.
Save Calinou/40f2e1b1d1d28cf6cc6d5f54d7782670 to your computer and use it in GitHub Desktop.
Metrics generator for the Godot Git repository (see https://github.com/asottile/git-code-debt)
# This is a sample metric config
# Sample Groups definition:
# Groups:
# Group1:
# metrics:
# - FooMetric
# - BarMetric
# metric_expressions:
# - ^.*Baz.*$
#
# This defines a group named Group1 which explicitly includes the metrics
# FooMetric and BarMetric and also includes all metrics which match ^.*Baz.*$.
# NOTE: metrics and metric_expressions may be omitted
Groups:
- Python:
metric_expressions:
- (?i)^.*Python.*$
- CurseWords:
metric_expressions:
- ^TotalCurseWords.*$
- LinesOfCode:
metric_expressions:
- ^TotalLinesOfCode.*$
# Sample ColorOverrides definition:
# ColorOverrides:
# - PartialTemplateCount
#
# This indicates that PartialTemplateCount should be colored the opposite of
# the usual coloring (the usual coloring is up = red, down = green).
ColorOverrides: []
# Sample CommitLinks for Commit page:
# CommitLinks:
# View on Github: https://github.com/asottile/git-code-debt/commit/{sha}
# ...
#
# These links will have the following variables substituted when displayed:
# {sha} - Points to the full (40-character) sha of the commit
CommitLinks:
View on Github: https://github.com/godotengine/godot/commit/{sha}
# These denote the metrics to show in the widget.
# (Currently the values are intentionally empty maps)
WidgetMetrics:
TotalLinesOfCode: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment