Skip to content

Commit

Permalink
Fix argument order
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <tsmock@meta.com>
  • Loading branch information
tsmock committed Apr 25, 2024
1 parent a69af2b commit 90e3ee1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actions/checkstyle/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29060,7 +29060,7 @@ function checkstyle_parseData(trim, data) {
}
return problems;
}
function checkstyle_run(pathTrim, checkstyleFile) {
function checkstyle_run(checkstyleFile, pathTrim = "") {
let trim;
if (pathTrim === "") {
trim = process.cwd().split(external_path_.sep).length;
Expand Down
2 changes: 1 addition & 1 deletion actions/checkstyle/src/checkstyle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("Test action/parseData", () => {
});
test("JOSM Checkstyle XML, single file", () => {
expect(() =>
actionRun("", "/Users/tsmock/workspace/josm/core/checkstyle-josm.xml"),
actionRun("/Users/tsmock/workspace/josm/core/checkstyle-josm.xml", ""),
).not.toThrow();
});
});
2 changes: 1 addition & 1 deletion actions/checkstyle/src/checkstyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function parseData(trim: number, data: string | Buffer): Problem[] {
return problems;
}

export function run(pathTrim: string, checkstyleFile: string) {
export function run(checkstyleFile: string, pathTrim: string = "") {
let trim: number;
if (pathTrim === "") {
trim = process.cwd().split(sep).length;
Expand Down

0 comments on commit 90e3ee1

Please sign in to comment.