-
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): switch to disable reserved words warnings (#1076)
* feat(jsii): switch to disable reserved words warnings By default, jsii issues a warning when it encounters a symbol that uses a word that is reserved in one of the supported languages. Practically this creates a tremendous amount of noise for large existing projects. #1073 proposes to add support for a warning exclusion file, which is probably a better long term solution, but in the meantime, this switch allows opting-out of reserved words warnings in order to save the planet. Tested by adding `--disable-reserved-words-warnings` to `jsii-calc` (which uses many reserved words already). * change boolean switch to --silence-warnings array * Update jsii.ts * Update packages/jsii/lib/warnings.ts Co-Authored-By: Romain Marcadier-Muller <rmuller@amazon.com> * Update jsii.ts * Update warnings.ts
- Loading branch information
1 parent
5f8a27f
commit 5389def
Showing
4 changed files
with
32 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Indicates which warnings are currently enabled. By default all warnings are | ||
* enabled, and can be silenced through the --silence-warning option. | ||
*/ | ||
export const enabledWarnings: { [name: string]: boolean } = { | ||
'reserved-word': true | ||
}; |