Skip to content

Commit

Permalink
.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 19, 2024
1 parent 082855a commit 022bcb6
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
19 changes: 16 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

28 changes: 20 additions & 8 deletions src/scripts/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,26 @@ export const litAnalyzer = async (command: Command): Promise<stepResponse> => {
// })
// .join("");

const problemsLine = lines.filter((line) =>
line.match(
/^\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|$/,
),
);

const [i, _, __, problemCountStr, ___, ____] = problemsLine;
const problemCount = parseInt(problemCountStr);
const problemsCountStr = lines
.map((line) => {
const match = line.match(
/^\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|$/,
);
if (match) {
const [filesChecked, filesWithProblems, problems, errors, warnings] =

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'filesChecked' is assigned a value but never used

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'filesWithProblems' is assigned a value but never used

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'errors' is assigned a value but never used

Check failure on line 90 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'warnings' is assigned a value but never used
match;
return problems;
}
})
.join("");
// const problemsLine = lines.filter((line) =>
// line.match(
// /^\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|$/,
// ),
// );

// const [_, __, problemCountStr, ___, ____] = problemsLine[0].match(/^\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|\s*(\d+)\s*\|$/) || [];
const problemCount = parseInt(problemsCountStr);
// const problemCount =
// problemsLine.length > 0
// ? parseInt(problemsLine[0].match(/(\d+) problem/)![1])
Expand Down

0 comments on commit 022bcb6

Please sign in to comment.