Skip to content

Commit

Permalink
style(build): make addFmt paths options occupy multiple lines
Browse files Browse the repository at this point in the history
  • Loading branch information
tensorush committed Apr 29, 2024
1 parent ad8cacb commit 38f0b54
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ pub fn build(b: *std.Build) void {
const fmt_step = b.step("fmt", "Run formatting checks");

const fmt = b.addFmt(.{
.paths = &.{ "src/", "build.zig" },
.paths = &.{
"src/",
"build.zig",
},
.check = true,
});
fmt_step.dependOn(&fmt.step);
Expand Down
5 changes: 4 additions & 1 deletion src/templates/exe/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ pub fn build(b: *std.Build) void {
const fmt_step = b.step("fmt", "Run formatting checks");

const fmt = b.addFmt(.{
.paths = &.{ "src/", "build.zig" },
.paths = &.{
"src/",
"build.zig",
},
.check = true,
});
fmt_step.dependOn(&fmt.step);
Expand Down
6 changes: 5 additions & 1 deletion src/templates/lib/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ pub fn build(b: *std.Build) void {
const fmt_step = b.step("fmt", "Run formatting checks");

const fmt = b.addFmt(.{
.paths = &.{ "src/", "examples/", "build.zig" },
.paths = &.{
"src/",
"build.zig",
EXAMPLES_DIR,
},
.check = true,
});
fmt_step.dependOn(&fmt.step);
Expand Down

0 comments on commit 38f0b54

Please sign in to comment.