Skip to content

Commit

Permalink
further simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewparmet committed Sep 20, 2024
1 parent c6225ac commit 271721d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@

package build.buf.gradle

import com.google.common.truth.Truth.assertThat
import org.gradle.language.base.plugins.LifecycleBasePlugin.CHECK_TASK_NAME
import org.junit.jupiter.api.Test
import java.nio.file.Paths

class LintWithProtobufGradleTest : ConfigOverrideableLintTests, AbstractLintTest() {
@Test
Expand Down Expand Up @@ -47,11 +44,6 @@ class LintWithProtobufGradleTest : ConfigOverrideableLintTests, AbstractLintTest

@Test
fun `lint a file with an implementation dependency and a lint config with the protobuf-gradle-plugin`() {
val result = gradleRunner().withArguments(":$CHECK_TASK_NAME").buildAndFail()
assertThat(result.output).contains("Enum zero value name \"BROKEN_ENUM_NONSPECIFIED\" should be suffixed with \"_UNSPECIFIED\"")

Paths.get(projectDir.path, "buf.yaml").toFile().replace("#", "")

assertSuccess()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ lint:
use:
- DEFAULT
except:
#- ENUM_ZERO_VALUE_SUFFIX
- ENUM_ZERO_VALUE_SUFFIX

0 comments on commit 271721d

Please sign in to comment.