Owner:
Baron Roberts
Counts lines of code in a project using the fast and highly accurate locc4j library (https://github.com/cthing/locc4j). Supports over 250 computer languages and properly handles nested comments and embedded languages (e.g. CSS in HTML).
Version 1.0.1
Created 18 April 2024.
Counts lines of code in a project using the fast and highly accurate locc4j library (https://github.com/cthing/locc4j). Supports over 250 computer languages and properly handles nested comments and embedded languages (e.g. CSS in HTML).
Add this plugin to your build using the plugins DSL:
plugins {
id("org.cthing.locc") version "1.0.1"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts):dependencies { implementation("org.cthing.locc:org.cthing.locc.gradle.plugin:1.0.1") }It can then be applied in the precompiled script plugin:plugins { id("org.cthing.locc") } -
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("org.cthing.locc:org.cthing.locc.gradle.plugin:1.0.1") } } apply(plugin = "org.cthing.locc") - Applying plugins to all subprojects .