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

Migrate UnreferencedShapeValidator #319

Merged
merged 10 commits into from
Mar 20, 2020
Merged

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Mar 17, 2020

Implements #241 by migrating the existing UnreferencedShapeValidator from smithy-linters to smithy-model so that the validation is always run against the model.

A check is added so that only models with services will emit note validation events when a shape is not referenced within the model.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@srchase srchase changed the title Emits warnings for unbound operations and resources Migrate UnreferencedShapeValidator Mar 19, 2020
@srchase srchase requested review from JordonPhillips and removed request for mtdowling March 19, 2020 22:52
@JordonPhillips
Copy link
Contributor

probably want to squash some of those commits

@srchase srchase merged commit 254e0aa into smithy-lang:0.10 Mar 20, 2020
@srchase srchase deleted the unbound-entities branch March 20, 2020 20:38
JordonPhillips pushed a commit to JordonPhillips/smithy that referenced this pull request Apr 22, 2020
* Migrate linter to validator

* Add references on test models

* Update linters test models
@kstich kstich mentioned this pull request Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants