11import { watch } from 'node:fs' ;
2- import { formatly } from 'formatly' ;
32import { CatalogCounselor } from './CatalogCounselor.js' ;
43import { ConfigurationChief } from './ConfigurationChief.js' ;
54import { ConsoleStreamer } from './ConsoleStreamer.js' ;
65import { DependencyDeputy } from './DependencyDeputy.js' ;
76import { analyze } from './graph/analyze.js' ;
87import { build } from './graph/build.js' ;
98import { IssueCollector } from './IssueCollector.js' ;
10- import { IssueFixer } from './IssueFixer.js' ;
119import { PrincipalFactory } from './PrincipalFactory.js' ;
1210import watchReporter from './reporters/watch.js' ;
1311import type { MainOptions } from './util/create-options.js' ;
14- import { debugLogArray , debugLogObject } from './util/debug.js' ;
12+ import { debugLogObject } from './util/debug.js' ;
1513import { getGitIgnoredHandler } from './util/glob-core.js' ;
1614import { getSessionHandler , type OnFileChange , type SessionHandler } from './util/watch.js' ;
1715
@@ -25,7 +23,6 @@ export const run = async (options: MainOptions) => {
2523 const deputy = new DependencyDeputy ( options ) ;
2624 const factory = new PrincipalFactory ( ) ;
2725 const streamer = new ConsoleStreamer ( options ) ;
28- const fixer = new IssueFixer ( options ) ;
2926 const collector = new IssueCollector ( options ) ;
3027 const counselor = new CatalogCounselor ( options ) ;
3128
@@ -61,7 +58,6 @@ export const run = async (options: MainOptions) => {
6158 deputy,
6259 entryPaths,
6360 factory,
64- fixer,
6561 graph,
6662 streamer,
6763 unreferencedFiles,
@@ -99,18 +95,6 @@ export const run = async (options: MainOptions) => {
9995
10096 const { issues, counters, tagHints, configurationHints } = collector . getIssues ( ) ;
10197
102- if ( options . isFix && ! options . isSession ) {
103- const touchedFiles = await fixer . fixIssues ( issues ) ;
104- if ( options . isFormat ) {
105- const report = await formatly ( Array . from ( touchedFiles ) ) ;
106- if ( report . ran && report . result && ( report . result . runner === 'virtual' || report . result . code === 0 ) ) {
107- debugLogArray ( '*' , `Formatted files using ${ report . formatter . name } (${ report . formatter . runner } )` , touchedFiles ) ;
108- } else {
109- debugLogObject ( '*' , 'Formatting files failed' , report ) ;
110- }
111- }
112- }
113-
11498 if ( ! options . isWatch ) streamer . clear ( ) ;
11599
116100 return {
0 commit comments