{"repo":"ZacSweers/redacted-compiler-plugin","free":true,"listed":false,"github":"https://github.com/ZacSweers/redacted-compiler-plugin","clone":"git clone https://github.com/ZacSweers/redacted-compiler-plugin.git","description":"A Kotlin compiler plugin that generates redacted toString() implementations.","language":"Kotlin","stars":440,"topics":["kotlin","codegen","compiler-plugin","compiler"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"redacted-compiler-plugin ======================== A multiplatform Kotlin compiler plugin that generates redacted toString() implementations. Inspired by the auto-value-redacted extension for AutoValue. Usage Include the gradle plugin in your project, define a @Redacted annotation, and apply it to any properties that you wish to redact. When you call toString() any @Redacted properties are hidden: If your annotation is applied to the class, then toString() will emit a single replacement string: Installation Apply the gradle plugin. And that's it! The default configuration will add the multiplatform -annotations artifact (which has a @Redacted annotation you can use) and wire it all automatically. Just annotate what you want to redact. You can configure custom behavior with properties on the redacted extension. Snapshots of the development version are available in [Sonatype's snapshots repository][snapshots]. Supported platforms The compiler plugin itself supports all multiplatform project types. The first-party annotations artifact is also multiplatform and supports all common JVM, JS, and native targets. IDE Support FIR diagnostics can render in the IDE under the following conditions: 1. The K2 Kotlin IDE plugin must be enabled. 2. The IntelliJ kotlin.k2.only.bundled.compiler.plugins.enabled registry key must be set to false . Caveats - Kotlin compiler plugins are not a stable API! Compiled outputs from this plugin should be stable, but usage in newer versions of kotlinc are ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ZacSweers","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ZacSweers/redacted-compiler-plugin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}