Skip to content
Merged

I166 #170

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Rename to avoid_debug_print_in_release
  • Loading branch information
sufftea committed Apr 29, 2024
commit 576869e358798625533a461b2d26b143a1d786be
2 changes: 1 addition & 1 deletion lint_test/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ custom_lint:
- newline_before_return
- no_empty_block
- no_equal_then_else
- avoid_debug_print
- avoid_debug_print_in_release
- prefer_early_return
- member_ordering:
alphabetize: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

import 'package:flutter/foundation.dart' as f;

/// Test the avoid_debug_print
/// Test the avoid_debug_print_in_release
void avoidDebugPrintTest() {
// expect_lint: avoid_debug_print
// expect_lint: avoid_debug_print_in_release
f.debugPrint('');

// expect_lint: avoid_debug_print
// expect_lint: avoid_debug_print_in_release
final test = f.debugPrint;

test('test');

// expect_lint: avoid_debug_print
// expect_lint: avoid_debug_print_in_release
final test2 = f.debugPrint('');

debugPrint();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

import 'package:flutter/foundation.dart';

/// Test the avoid_debug_print
/// Test the avoid_debug_print_in_release
void avoidDebugPrintTest() {
// expect_lint: avoid_debug_print
// expect_lint: avoid_debug_print_in_release
debugPrint('');

// expect_lint: avoid_debug_print
// expect_lint: avoid_debug_print_in_release
final test = debugPrint;

var test2;

// expect_lint: avoid_debug_print
// expect_lint: avoid_debug_print_in_release
test2 = debugPrint;

test.call('test');

// expect_lint: avoid_debug_print
// expect_lint: avoid_debug_print_in_release
final test3 = debugPrint('');

someOtherFunction();
Expand Down