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

feat(jsii): emit warnings when using reserved words #704

Merged
merged 3 commits into from
Aug 15, 2019

Conversation

RomainMuller
Copy link
Contributor

Emits warnings when an exported API is named after a reserved word in
any of the supported target languages (best-effort). This warns users
that their code may have toruble compiling for certain target languages
and invites them to use a different name.

Additionally, a --fail-on-warnings / --Werr option was added to the
CLI that allows treating warnings as errors, allowing users to create
and maintain a codebase that does not rely on naming things in ways that
will cause conflicts in target languages.

Fixes #701


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

Emits warnings when an exported API is named after a reserved word in
any of the supported target languages (best-effort). This warns users
that their code may have toruble compiling for certain target languages
and invites them to use a different name.

Additionally, a `--fail-on-warnings` / `--Werr` option was added to the
CLI that allows treating warnings as errors, allowing users to create
and maintain a codebase that does not rely on naming things in ways that
will cause conflicts in target languages.

Fixes #701
@RomainMuller RomainMuller requested a review from a team as a code owner August 13, 2019 21:15
@mergify
Copy link
Contributor

mergify bot commented Aug 15, 2019

Thank you for contributing! ❤️ I will now look into making sure
the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot merged commit ca44537 into master Aug 15, 2019
@mergify mergify bot deleted the rmuller/warn-reserved-words branch August 15, 2019 00:22
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.

Emit warnings when using foreign reserved words
2 participants