Enable file_names and package_names lints (#77087)

diff --git a/dev/benchmarks/macrobenchmarks/lib/main.dart b/dev/benchmarks/macrobenchmarks/lib/main.dart
index a9bbeaf..0754a2d 100644
--- a/dev/benchmarks/macrobenchmarks/lib/main.dart
+++ b/dev/benchmarks/macrobenchmarks/lib/main.dart
@@ -12,7 +12,7 @@
 import 'src/cubic_bezier.dart';
 import 'src/cull_opacity.dart';
 import 'src/filtered_child_animation.dart';
-import 'src/fullscreenTextField.dart';
+import 'src/fullscreen_textfield.dart';
 import 'src/heavy_grid_view.dart';
 import 'src/large_image_changer.dart';
 import 'src/large_images.dart';
diff --git a/dev/benchmarks/macrobenchmarks/lib/src/fullscreenTextField.dart b/dev/benchmarks/macrobenchmarks/lib/src/fullscreen_textfield.dart
similarity index 100%
rename from dev/benchmarks/macrobenchmarks/lib/src/fullscreenTextField.dart
rename to dev/benchmarks/macrobenchmarks/lib/src/fullscreen_textfield.dart
diff --git a/dev/bots/analyze.dart b/dev/bots/analyze.dart
index 16ffaef..aeee35d 100644
--- a/dev/bots/analyze.dart
+++ b/dev/bots/analyze.dart
@@ -99,7 +99,7 @@
   // 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,
   );
 
diff --git a/dev/bots/analyze-sample-code.dart b/dev/bots/analyze_sample_code.dart
similarity index 99%
rename from dev/bots/analyze-sample-code.dart
rename to dev/bots/analyze_sample_code.dart
index b783b0f..5b9d7a3 100644
--- a/dev/bots/analyze-sample-code.dart
+++ b/dev/bots/analyze_sample_code.dart
@@ -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';
 
diff --git a/dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart b/dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart
index 19291b3..21a43b88 100644
--- a/dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart
+++ b/dev/bots/test/analyze-sample-code-test-input/known_broken_documentation.dart
@@ -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:
diff --git a/dev/bots/test/analyze-sample-code_test.dart b/dev/bots/test/analyze_sample_code_test.dart
similarity index 93%
rename from dev/bots/test/analyze-sample-code_test.dart
rename to dev/bots/test/analyze_sample_code_test.dart
index 71c06f8..8a26aef 100644
--- a/dev/bots/test/analyze-sample-code_test.dart
+++ b/dev/bots/test/analyze_sample_code_test.dart
@@ -7,10 +7,10 @@
 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')
diff --git a/dev/snippets/README.md b/dev/snippets/README.md
index 9abdf1f..c46531d 100644
--- a/dev/snippets/README.md
+++ b/dev/snippets/README.md
@@ -63,7 +63,7 @@
 
 #### Analysis
 
-The `../bots/analyze-sample-code.dart` script finds code inside the `@tool
+The `../bots/analyze_sample_code.dart` script finds code inside the `@tool
 snippet` sections and uses the Dart analyzer to check them.
 
 There are several kinds of sample code you can specify:
@@ -165,7 +165,7 @@
 
 #### Analysis
 
-The `../bots/analyze-sample-code.dart` script finds code inside the `@tool
+The `../bots/analyze_sample_code.dart` script finds code inside the `@tool
 sample` sections and uses the Dart analyzer to check them after applying the
 specified template.
 
@@ -222,7 +222,7 @@
 Instead, you can run the analysis locally with this command from the Flutter root:
 
 ```
-TMPDIR=/tmp bin/cache/dart-sdk/bin/dart dev/bots/analyze-sample-code.dart --temp=samples
+TMPDIR=/tmp bin/cache/dart-sdk/bin/dart dev/bots/analyze_sample_code.dart --temp=samples
 ```
 
 This will analyze the samples, and leave the generated files in `/tmp/samples`