Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I166 #170

Merged
merged 7 commits into from
May 2, 2024
Merged

I166 #170

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
sufftea committed Apr 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 576869e358798625533a461b2d26b143a1d786be
2 changes: 1 addition & 1 deletion lint_test/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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();
Original file line number Diff line number Diff line change
@@ -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();