-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cap the lengths of generate names in the ReplaceDuplicateStringLitera…
…ls recipe (#374) * Cap the lengths of generate names We could generate some unreasonably long variable names. By default, we will cap variable names at 100 characters but people can change this was desired. We will crop the generated variable name to the nearest "_" if there is one available * Apply suggestions from code review * Use ternary for `.substring` instead of similar if/else --------- Co-authored-by: Tim te Beek <[email protected]>
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
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