fix: add invalid regex validation for commitConfig#1355
fix: add invalid regex validation for commitConfig#1355jescalada merged 19 commits intofinos:mainfrom
commitConfig#1355Conversation
✅ Deploy Preview for endearing-brigadeiros-63f9d0 canceled.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1355 +/- ##
==========================================
+ Coverage 81.25% 81.51% +0.26%
==========================================
Files 65 66 +1
Lines 4657 4713 +56
Branches 792 814 +22
==========================================
+ Hits 3784 3842 +58
+ Misses 858 856 -2
Partials 15 15 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…stead of exiting process
kriswest
left a comment
There was a problem hiding this comment.
Possibly a double call to loadFullConfiguration that needs looking at
kriswest
left a comment
There was a problem hiding this comment.
This generally LGTM.
However, I can't help thinking about the fact we have multiple types of validation in different places (validation via the schema and quicktype during load, then this later). A slightly deeper refactor could combine those steps, parsing individual configs from strings using quicktype then applying other validators - resulting in a n easier to follow and maintain codebase..
I'm ok with merging in the current form and leaving such a refactor for later if you want to - hence approving.
|
@kriswest Did some refactoring here, although not quite a full-blown refactor for the QuickType stuff. At least, the actual QuickType I'd consider further refactoring if there's any extra feature requests or bugs in the ConfigLoader. A final check is much appreciated 😃 |
Fixes #1336.
Most of the changes are unit tests for the new code and
/src/config/index.ts.