Skip to content

Commit

Permalink
Don't run configlet lint manually in check_formatting.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
devkabiir authored Feb 18, 2021
1 parent c871761 commit 306aaaf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions bin/check_formatting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@ Future main() async {
final CommonUtils utils = CommonUtils();
int errorCode = 0;

if (await utils.fetchConfiglet() == 0) {
print('Checking config.json formatting...');
errorCode = await utils.runCmdIfExecutable('bin/configlet', ['lint', '--track-id', 'dart', '.']);

if (errorCode != 0) {
print('Checking config.json formatting failed!!');
await utils.terminate();
throw StateError('Formatting failed.');
}
}

print('Checking all Dart files formatting...');
errorCode = await utils
.runCmd('pub', ['run', 'dart_style:format', '-i', '0', '-l', '120', '-n', '--set-exit-if-changed', '.']);
Expand Down

0 comments on commit 306aaaf

Please sign in to comment.