Feat/new mangling#17
Merged
Merged
Conversation
The intent of this new mangler is to expose a new interface that solves more efficiently the woes of swag/mangling. 1. proper tokenization - case alternance separates token (so no longer AAA => A_A_A) 2. asciification - so unicode processing etc is safer and provides better results 3. verbalisation of numerical values - so no need for a clumsy "prefix" rule 4. onboards all overrides that used to be implemented in go-swagger to check for reserved keywords, file suffixes with special meaning, go package rules etc 5. special "ConstName" method to try harder on numerical values than mere go idents (i.e. verbalize all numerical values) The library maps the unicode dataset (unicode v15, then v17 starting with go1.27) to find verbalisations. Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
f424ee7 to
0e38f5f
Compare
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
0e38f5f to
1826d54
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #17 +/- ##
===========================================
- Coverage 85.83% 67.06% -18.77%
===========================================
Files 16 31 +15
Lines 1560 2663 +1103
===========================================
+ Hits 1339 1786 +447
- Misses 202 843 +641
- Partials 19 34 +15 ☔ View full report in Codecov by Harness. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change type
Please select: 🆕 New feature or enhancement|🔧 Bug fix'|📃 Documentation update
Short description
Fixes
Full description
Checklist