Replying to braveo's unfortunately dead comment[0]:
> I would be interested in the technique you used to do this. specifically, how did you get your code to kick off and check on module load?
Powershell has great error-handling, and all errors are stored in the special $Error variable. For missing commas, semicolons, brackets, and other punctuation, the errors usually have the line-and-column of the missing item.
So the function would just parse $Error and update the module file with the right item at the right location.
> I would be interested in the technique you used to do this. specifically, how did you get your code to kick off and check on module load?
Powershell has great error-handling, and all errors are stored in the special $Error variable. For missing commas, semicolons, brackets, and other punctuation, the errors usually have the line-and-column of the missing item.
So the function would just parse $Error and update the module file with the right item at the right location.
[0] https://news.ycombinator.com/item?id=15212428