Skip to content

Commit 08228bc

Browse files
authored
Stricter analyzer tests (#143)
- Rename analysis_options.yaml - Treat some hints as errors - Remove an unused import
1 parent d3201fb commit 08228bc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.analysis_options renamed to analysis_options.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
analyzer:
22
strong-mode: true
3+
errors:
4+
unused_import: error
5+
unused_local_variable: error
6+
invalid_assignment: error
7+
dead_code: erro
38
linter:
49
rules:
510
# Errors

lib/src/builder.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import 'dart:async';
55

66
import 'package:analyzer/dart/element/element.dart';
7-
import 'package:analyzer/exception/exception.dart';
87
import 'package:build/build.dart';
98
import 'package:dart_style/src/dart_formatter.dart';
109

0 commit comments

Comments
 (0)