From 91da4bfe576baa1d0339bb82d3839274ca83a58d Mon Sep 17 00:00:00 2001 From: Juuz <6596629+Juuxel@users.noreply.github.com> Date: Sat, 18 Mar 2023 16:11:35 +0200 Subject: [PATCH] ModsTomlTest: Suppress GStringExpressionWithinString It's intentional in the code in question - it really is a Groovy template used via Gradle's ProcessResources task. --- .../net/fabricmc/loom/test/unit/forge/ModsTomlTest.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/groovy/net/fabricmc/loom/test/unit/forge/ModsTomlTest.groovy b/src/test/groovy/net/fabricmc/loom/test/unit/forge/ModsTomlTest.groovy index ec1d021d..5e497b5f 100644 --- a/src/test/groovy/net/fabricmc/loom/test/unit/forge/ModsTomlTest.groovy +++ b/src/test/groovy/net/fabricmc/loom/test/unit/forge/ModsTomlTest.groovy @@ -40,11 +40,13 @@ class ModsTomlTest extends Specification { |[[mods]] |modId="world" '''.stripMargin() + // codenarc-disable GStringExpressionWithinString public static final String BROKEN_INPUT = ''' |[[mods.${MOD_ID}]] |modId = "hello_world" '''.stripMargin() + // codenarc-enable GStringExpressionWithinString @TempDir Path tempDir