adding fmt third_party library + adding cloc support

This commit is contained in:
2026-10-04 22:41:42 -07:00
parent 6cc8bf4262
commit 31089f3539
4 changed files with 19 additions and 0 deletions
+7
View File
@@ -96,6 +96,13 @@ class DevCommand(GiteaCommand, RenderDocCommand, ShadersCommand, TracyCommand):
# Custom helpers
##
# Counts lines of code from the project root, skipping paths listed in
# .clocignore. Any arguments are passed through to cloc.
# dev cloc [args...]
def cloc(self, *args, **kwargs):
self._run_in_root(["cloc", "--exclude-list-file=.clocignore", *args, "."])
def ownit(self, *args, **kwargs):
file_or_directory = args[0] if args else None
if file_or_directory is None: