Skip to content

Commit cbcd924

Browse files
poshaughnessyalrra
authored andcommitted
Fix: Make summary the default formatter
Fix #722 Close #768
1 parent 88922a3 commit cbcd924

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.sonarwhalrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"waitFor": 1000
66
}
77
},
8-
"formatters": "stylish",
8+
"formatters": "summary",
99
"parsers": [],
1010
"rulesTimeout": 120000,
1111
"rules": {

src/lib/cli/init.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import * as resourceLoader from '../utils/resource-loader';
2121
import { generateBrowserslistConfig } from './browserslist';
2222

2323
const debug: debug.IDebugger = d(__filename);
24+
const defaultFormatter = 'summary';
2425

2526
/** Initiates a wizard to gnerate a valid `.sonarwhalrc` file based on user responses. */
2627
export const initSonarwhalrc = async (options: CLIOptions): Promise<boolean> => {
@@ -47,7 +48,7 @@ export const initSonarwhalrc = async (options: CLIOptions): Promise<boolean> =>
4748
name: '',
4849
options: { waitFor: 1000 }
4950
},
50-
formatters: ['stylish'],
51+
formatters: [defaultFormatter],
5152
ignoredUrls: [],
5253
rules: {},
5354
rulesTimeout: 120000
@@ -73,6 +74,7 @@ export const initSonarwhalrc = async (options: CLIOptions): Promise<boolean> =>
7374
},
7475
{
7576
choices: formattersKeys,
77+
default: defaultFormatter,
7678
message: 'What formatter do you want to use?',
7779
name: 'formatter',
7880
type: 'list'

0 commit comments

Comments
 (0)