Skip to content

Commit

Permalink
Comment by Rafferty McDonald on better-config-sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafferty McDonald committed Aug 9, 2024
1 parent d2271b2 commit a3cf0a0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _data/comments/better-config-sections/2fc5d1da.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
id: 2fc5d1da
date: 2024-08-09T16:53:10.2932347Z
name: Rafferty McDonald
avatar: https://github.com/RMcD.png
message: >-
I've used a similar pattern on my options objects in the past by creating a unit test that uses conventions and reflection to validate all of the options classes/records have a static field for Configuration name with a non-null value. CI then fails it someone adds an options object without one. The configuration section name is used in builder extensions to have each option class identify the section with which it binds.
I like this as an option (haha) though. I'll have to give it a spin.

0 comments on commit a3cf0a0

Please sign in to comment.