Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rewrite-go/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rewrite/test-classpath.txt
test-classpath.txt
16 changes: 16 additions & 0 deletions rewrite-go/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: test parity

# Default test run — what CI executes. Build-tag-gated tests stay out.
test:
go test ./...

# Printer fidelity audit. Loads every fixture under
# test/printer-corpus/, parses + prints, and asserts byte-equality.
# Gated behind the `parityaudit` build tag so it never runs in CI;
# devs invoke it manually when investigating printer regressions.
#
# Trade-off (per the eng review's P2 decision): corpus regressions ship
# undetected by automation in exchange for fast iteration and simple
# test infra. Re-evaluate if a corpus-detectable bug ever lands.
parity:
go test -tags parityaudit ./pkg/printer/...
63 changes: 0 additions & 63 deletions rewrite-go/PLAN.md

This file was deleted.

6 changes: 6 additions & 0 deletions rewrite-go/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ tasks.withType<Javadoc>().configureEach {
exclude("**/G.java")
}

// Test fixtures for the GoMod conformance corpus are .gomod / .gosum / .json
// files; none of these formats accept a leading license header.
configure<nl.javadude.gradle.plugins.license.LicenseExtension> {
excludePatterns.addAll(listOf("**/*.gomod", "**/*.gosum", "**/*.json"))
}

val goBuild = tasks.register<Exec>("goBuild") {
workingDir = projectDir
// Use relative path to avoid absolute paths in cache key (Exec args are cache inputs)
Expand Down
Loading
Loading