File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
229227async 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
You can’t perform that action at this time.
0 commit comments