diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 0000000..59964a7 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,7 @@ +analyzer: + strong-mode: true + +linter: + rules: + - cancel_subscriptions + - close_sinks \ No newline at end of file diff --git a/tool/dev.dart b/tool/dev.dart index 9341572..0e5c3ca 100644 --- a/tool/dev.dart +++ b/tool/dev.dart @@ -6,6 +6,7 @@ main(List args) async { List directories = ['example/', 'lib/', 'test/', 'tool/']; config.analyze.entryPoints = directories; + config.analyze.strong = true; config.format.directories = directories; config.test ..platforms = ['vm']