Skip to content

Commit

Permalink
Merge pull request #1794 from haacked/comment-2fc5d1da
Browse files Browse the repository at this point in the history
Comment by Rafferty McDonald on better-config-sections
  • Loading branch information
haacked authored Aug 9, 2024
2 parents d2271b2 + a3cf0a0 commit fd7f1d4
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 fd7f1d4

Please sign in to comment.