-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jsii): emit warnings when using reserved words (#704)
* feat(jsii): emit warnings when using reserved words 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 * also prohibit using 'build'
- Loading branch information
1 parent
f3d1da0
commit ca44537
Showing
8 changed files
with
259 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.