File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
"waitFor": 1000
6
6
}
7
7
},
8
- "formatters": "stylish ",
8
+ "formatters": "summary ",
9
9
"parsers": [],
10
10
"rulesTimeout": 120000,
11
11
"rules": {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import * as resourceLoader from '../utils/resource-loader';
21
21
import { generateBrowserslistConfig } from './browserslist' ;
22
22
23
23
const debug : debug . IDebugger = d ( __filename ) ;
24
+ const defaultFormatter = 'summary' ;
24
25
25
26
/** Initiates a wizard to gnerate a valid `.sonarwhalrc` file based on user responses. */
26
27
export const initSonarwhalrc = async ( options : CLIOptions ) : Promise < boolean > => {
@@ -47,7 +48,7 @@ export const initSonarwhalrc = async (options: CLIOptions): Promise<boolean> =>
47
48
name : '' ,
48
49
options : { waitFor : 1000 }
49
50
} ,
50
- formatters : [ 'stylish' ] ,
51
+ formatters : [ defaultFormatter ] ,
51
52
ignoredUrls : [ ] ,
52
53
rules : { } ,
53
54
rulesTimeout : 120000
@@ -73,6 +74,7 @@ export const initSonarwhalrc = async (options: CLIOptions): Promise<boolean> =>
73
74
} ,
74
75
{
75
76
choices : formattersKeys ,
77
+ default : defaultFormatter ,
76
78
message : 'What formatter do you want to use?' ,
77
79
name : 'formatter' ,
78
80
type : 'list'
You can’t perform that action at this time.
0 commit comments