Skip to content

Commit 8ebec85

Browse files
committed
Fix minor issues
1 parent 55d770d commit 8ebec85

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

commands/lint.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export async function run(options: CommandFixOptions, positionals: string[]) {
131131
}
132132

133133
// Collect rule files that match the ecosystem.
134+
await collect(`400-ecosystem/_/*`)
134135
const ecosystems = await getEcosystems(Deno.cwd()) // TODO
135136
for (const ecosystem of ecosystems) {
136137
switch (ecosystem) {
@@ -163,13 +164,11 @@ export async function run(options: CommandFixOptions, positionals: string[]) {
163164
break
164165
}
165166
}
166-
await collect(`400-ecosystem/_/*`)
167167

168168
// Collect rule files that match the name.
169169
{
170170
if (project.type === 'with-remote-url') {
171-
await collect(`500-name/${project.name}/_/*`)
172-
await collect(`500-name/_/${project.name}/*`)
171+
await collect(`500-name/${project.owner}/_/*`)
173172
await collect(`500-name/${project.owner}/${project.name}/*`)
174173
}
175174
}
@@ -223,7 +222,6 @@ export async function run(options: CommandFixOptions, positionals: string[]) {
223222
}
224223

225224
console.info('Done.')
226-
Deno.exit(1) // TODO
227225
}
228226

229227
async function fixFromFile(
@@ -311,7 +309,7 @@ async function fixFromFile(
311309
}
312310

313311
if (shouldRunFix) {
314-
await issue.fix(fixId)
312+
await issue.fix()
315313
} else {
316314
console.info(`[${styleText('yellow', 'SKIP')}] ${fixId}`)
317315
return

0 commit comments

Comments
 (0)