diff --git a/analysis_options.yaml b/analysis_options.yaml index 82c801cef..5a0cd0137 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -79,6 +79,7 @@ linter: - unnecessary_null_checks - unnecessary_parenthesis - unnecessary_statements + - unreachable_from_main - use_if_null_to_convert_nulls_to_bools - use_late_for_private_fields_and_variables - use_setters_to_change_properties diff --git a/test/rule_test.dart b/test/rule_test.dart index 4aa77e9f6..4bdac8b78 100644 --- a/test/rule_test.dart +++ b/test/rule_test.dart @@ -179,17 +179,6 @@ void defineRuleUnitTests() { }); } -/// Handy for debugging. -void defineSoloRuleTest(String ruleToTest) { - for (var entry in Directory(ruleTestDataDir).listSync()) { - if (entry is! File || !isDartFile(entry)) continue; - var ruleName = p.basenameWithoutExtension(entry.path); - if (ruleName == ruleToTest) { - testRule(ruleName, entry); - } - } -} - void testRule(String ruleName, File file, {bool debug = true, bool failOnErrors = true, diff --git a/tool/scorecard.dart b/tool/scorecard.dart index 3f6840830..470c5e762 100644 --- a/tool/scorecard.dart +++ b/tool/scorecard.dart @@ -193,10 +193,6 @@ class ScoreCard { scores.forEach(f); } - void removeWhere(bool Function(LintScore element) test) { - scores.removeWhere(test); - } - static Future calculate() async { var lintsWithFixes = await _getLintsWithFixes(); var lintsWithAssists = await _getLintsWithAssists();