Feat: ability to handle inline comment

This commit is contained in:
SukkaW
2025-08-17 17:35:02 +08:00
parent fe7278c7fa
commit 373f862c6d
7 changed files with 22 additions and 10 deletions

View File

@@ -9,8 +9,9 @@ export default async function runAgainstSourceFile(
/** Secret keyword collection, only use for special purpose */
keywordSet?: Set<string> | null
) {
let l: string | null = '';
for await (const line of readFileByLine(filePath)) {
const l = processLine(line);
l = processLine(line);
if (!l) {
continue;
}