Use Dart beta so the new dart analyze command can be used, which doesn't contain the exclude bug.
dart analyze
exclude