Skip to content

Commit f5c0df9

Browse files
committed
Remove comments and format files
1 parent 8fbffe0 commit f5c0df9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pkg/linter/lib/src/lint_codes.g.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ class LinterLintCode extends LintCode {
624624
static const LintCode do_not_use_environment = LinterLintCode(
625625
LintNames.do_not_use_environment,
626626
"Avoid using environment values like '{0}' which create hidden global state.",
627-
correctionMessage: "Try using 'Platform.environment' for runtime access or remove environment-dependent code.",
627+
correctionMessage:
628+
"Try using 'Platform.environment' for runtime access or remove environment-dependent code.",
628629
);
629630

630631
static const LintCode document_ignores = LinterLintCode(

pkg/linter/test/rules/do_not_use_environment_test.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,17 @@ void f() {
8383
}
8484

8585
test_messageFormatting() async {
86-
// Test that the error message includes the specific method call
8786
await assertDiagnostics(
8887
r'''
8988
void f() {
9089
bool.fromEnvironment('DEBUG');
9190
}
9291
''',
93-
[
94-
lint(13, 27, messageContains: 'bool.fromEnvironment'),
95-
],
92+
[lint(13, 27, messageContains: 'bool.fromEnvironment')],
9693
);
9794
}
9895

9996
test_constContext() async {
100-
// Test the original issue example
10197
await assertDiagnostics(
10298
r'''
10399
const bool usingAppEngine = bool.hasEnvironment('APPENGINE_RUNTIME');

0 commit comments

Comments
 (0)