ktlint: Replace TAG properties with extension

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-12-30 12:53:04 +08:00
parent 00c07d0a98
commit d2831ab3d2
47 changed files with 61 additions and 87 deletions

View File

@@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: 2025 The Calyx Institute
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.aurora.extensions
/**
* Simple extension method to provide logging TAG
*/
inline val <reified T> T.TAG: String
get() = when {
T::class.java.isAnonymousClass -> T::class.java.name
else -> T::class.java.simpleName
}