Enable file_names and package_names lints (#77087)
This commit is contained in:
committed by
GitHub
parent
6250613eee
commit
7e017d318e
@@ -99,7 +99,7 @@ Future<void> run(List<String> arguments) async {
|
||||
// Analyze all the sample code in the repo
|
||||
print('$clock Sample code...');
|
||||
await runCommand(dart,
|
||||
<String>[path.join(flutterRoot, 'dev', 'bots', 'analyze-sample-code.dart')],
|
||||
<String>[path.join(flutterRoot, 'dev', 'bots', 'analyze_sample_code.dart')],
|
||||
workingDirectory: flutterRoot,
|
||||
);
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// See ../snippets/README.md for documentation.
|
||||
|
||||
// To run this, from the root of the Flutter repository:
|
||||
// bin/cache/dart-sdk/bin/dart dev/bots/analyze-sample-code.dart
|
||||
// bin/cache/dart-sdk/bin/dart dev/bots/analyze_sample_code.dart
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This file is used by ../analyze-sample-code_test.dart, which depends on the
|
||||
// This file is used by ../analyze_sample_code_test.dart, which depends on the
|
||||
// precise contents (including especially the comments) of this file.
|
||||
|
||||
// Examples can assume:
|
||||
|
||||
@@ -7,10 +7,10 @@ import 'dart:io';
|
||||
import 'common.dart';
|
||||
|
||||
void main() {
|
||||
test('analyze-sample-code', () {
|
||||
test('analyze_sample_code', () {
|
||||
final ProcessResult process = Process.runSync(
|
||||
'../../bin/cache/dart-sdk/bin/dart',
|
||||
<String>['analyze-sample-code.dart', 'test/analyze-sample-code-test-input'],
|
||||
<String>['analyze_sample_code.dart', 'test/analyze-sample-code-test-input'],
|
||||
);
|
||||
final List<String> stdoutLines = process.stdout.toString().split('\n');
|
||||
final List<String> stderrLines = process.stderr.toString().split('\n')
|
||||
Reference in New Issue
Block a user