-
Notifications
You must be signed in to change notification settings - Fork 18
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
Turn off implicit-casts and implicit-dynamic #5
Conversation
RavenNumber of Findings: 0 |
Set<String> get devDependencies => | ||
((_yamlMap[_devDependenciesKey] as YamlMap ?? const <dynamic, dynamic>{}).keys as Iterable<String>).toSet() | ||
// Remove this package, since we know they're using our executable | ||
..remove(_dependencyValidatorPackageName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filtering out the dependency_validator
package from the dev deps seems like it should happen elsewhere, since this is just a generic PubspecYaml
class to help parse a pubspec.yaml
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I meant this class to be specific to this use-case. That's why I made it private. I can rename it if you'd like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I guess it's private so it's not a big deal
..remove(_dependencyValidatorPackageName); | ||
|
||
Set<String> get packagesUsedViaTransformers { | ||
final transformerEntries = _yamlMap[_transformersKey] as Iterable<Object>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, this seems to me like it should expose the transformer configurations in a typed manner, and then a separate utility function could take a PubspecYaml
instance as input and return the package names
Will re-open when this is more important / when Dart 2 comes out. |
Ultimate Problem
This will be how Dart 2 operates, might as well follow those guidelines
Solution
implicit-casts
andimplicit-dynamic
Testing Suggestions
Possible Areas of Regression
Everything
FYA: @evanweible-wf