Skip to content
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

Closed

Conversation

jacehensley-wf
Copy link
Contributor

Ultimate Problem

This will be how Dart 2 operates, might as well follow those guidelines

Solution

  • Turn off implicit-casts and implicit-dynamic
  • Move code around to better allow for this

Testing Suggestions

  • Verify tests pass

Possible Areas of Regression

Everything


FYA: @evanweible-wf

@aviary2-wf
Copy link

Raven

Number 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);
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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>;
Copy link
Contributor

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

@jacehensley-wf
Copy link
Contributor Author

Will re-open when this is more important / when Dart 2 comes out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants