Skip to content

Commit 1627c8a

Browse files
Flatten the project structure (#39)
1 parent ad20d34 commit 1627c8a

439 files changed

Lines changed: 303 additions & 309 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CLAUDE.md

Lines changed: 6 additions & 7 deletions

README.md

Lines changed: 9 additions & 14 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
package codequality
66

77
import (
8-
"github.com/moderneinc/recipes-go/recipes-code-quality/recipes"
8+
"github.com/moderneinc/recipes-go/recipes"
99
"github.com/openrewrite/rewrite/rewrite-go/pkg/recipe"
1010
)
1111

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fun findGo(): String {
9898

9999
// Register build/test tasks for a Go module directory
100100
fun registerGoModule(taskPrefix: String, dirName: String, needsRpcServer: Boolean = false) {
101-
val moduleDir = projectDir.resolve(dirName)
101+
val moduleDir = if (dirName == ".") projectDir else projectDir.resolve(dirName)
102102

103103
val modDownload = tasks.register("${taskPrefix}Restore", Exec::class.java) {
104104
group = "go"
@@ -173,4 +173,4 @@ fun registerGoModule(taskPrefix: String, dirName: String, needsRpcServer: Boolea
173173
// Module registrations
174174
// ============================================
175175

176-
registerGoModule("codeQuality", "recipes-code-quality", needsRpcServer = false)
176+
registerGoModule("codeQuality", ".", needsRpcServer = false)

deck/deck.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ <h2 class="headline s">Where we go <span class="em">from here</span>.</h2>
306306
<div class="s"><span class="eyebrow">Next Steps</span></div>
307307
<h2 class="headline s" style="margin-top: 16px;">Ready to run <span class="em">on your repos</span>.</h2>
308308
<p class="subhead s mt-16" style="max-width: 640px;">The recipes are built and tested. Here's what running them looks like:</p>
309-
<pre class="s mt-24" style="text-align: left; display: inline-block;">mod config recipes go install github.com/moderneinc/recipes-go/recipes-code-quality
309+
<pre class="s mt-24" style="text-align: left; display: inline-block;">mod config recipes go install github.com/moderneinc/recipes-go
310310
mod build . --no-download
311311
mod run . --recipe org.openrewrite.golang.codequality.SimplifyBooleanExpression</pre>
312312
<p class="subhead s mt-24" style="max-width: 640px; font-size: 0.95rem;">We'd like to run these against a sample of your Go repositories to validate coverage and identify which recipe categories deliver the most value for your codebase. From there we can prioritize additional recipes &mdash; framework migrations, module upgrades, or domain-specific patterns.</p>

recipes-code-quality/diagnostic/diagnostic_mapping.go renamed to diagnostic/diagnostic_mapping.go

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/moderneinc/recipes-go/recipes-code-quality
1+
module github.com/moderneinc/recipes-go
22

33
go 1.25.0
44

File renamed without changes.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
package recipes
66

77
import (
8-
"github.com/moderneinc/recipes-go/recipes-code-quality/recipes/errorhandling"
9-
"github.com/moderneinc/recipes-go/recipes-code-quality/recipes/migration"
10-
"github.com/moderneinc/recipes-go/recipes-code-quality/recipes/naming"
11-
"github.com/moderneinc/recipes-go/recipes-code-quality/recipes/performance"
12-
"github.com/moderneinc/recipes-go/recipes-code-quality/recipes/redundancy"
13-
"github.com/moderneinc/recipes-go/recipes-code-quality/recipes/simplification"
14-
"github.com/moderneinc/recipes-go/recipes-code-quality/recipes/style"
8+
"github.com/moderneinc/recipes-go/recipes/errorhandling"
9+
"github.com/moderneinc/recipes-go/recipes/migration"
10+
"github.com/moderneinc/recipes-go/recipes/naming"
11+
"github.com/moderneinc/recipes-go/recipes/performance"
12+
"github.com/moderneinc/recipes-go/recipes/redundancy"
13+
"github.com/moderneinc/recipes-go/recipes/simplification"
14+
"github.com/moderneinc/recipes-go/recipes/style"
1515
"github.com/openrewrite/rewrite/rewrite-go/pkg/recipe"
1616
)
1717

recipes-code-quality/recipes/errorhandling/audit_multiple_error_wraps.go renamed to recipes/errorhandling/audit_multiple_error_wraps.go

File renamed without changes.

0 commit comments

Comments
 (0)