New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aggregate exceptions when parsing a settings hashtable #1275
base: master
Aggregate exceptions when parsing a settings hashtable #1275
Commits on Jun 23, 2019
-
Annotatively research current state of exception handling surrounding…
… settings file load invocation
travis-c-lagrone committedJun 23, 2019 -
Throw a contextful terminating error if processing the argument of 'I…
…nvoke-ScriptAnalyzer -Settings' results in an exception
travis-c-lagrone committedJun 23, 2019 -
Refine id and category of error for when processing value of `Invoke-…
…ScriptAnalyzer -Settings` results in an exception
travis-c-lagrone committedJun 23, 2019 -
Revert "Annotatively research current state of exception handling sur…
…rounding settings file load invocation" This reverts commit 3bfd45b.
travis-c-lagrone committedJun 23, 2019 -
Do not attempt id and category inference for the error to throw when …
…processing the argument of `Invoke-ScriptAnalyzer -Settings` results in an exception
travis-c-lagrone committedJun 23, 2019 -
-
Revert "Remove `using System.IO`"
This reverts commit 88ab1ec. `using System.IO` is required in Engine\Settings.cs after all. The main use is for pre-existing unqualified references to the type InvalidDataException.
-
Remove unused local variable, 'validKeys'
travis-c-lagrone committedJun 23, 2019 -
Remove GetDictionaryFromHashtable(Hashtable)
travis-c-lagrone committedJun 23, 2019 -
travis-c-lagrone committed
Jun 23, 2019 -
Validate that every key is a string
travis-c-lagrone committedJun 23, 2019 -
Validate that no value is null
travis-c-lagrone committedJun 23, 2019 -
Validate that every key is unique, ignoring case
travis-c-lagrone committedJun 23, 2019 -
Extract validation of "Rules" setting dictionary type from method Str…
…ings.ConvertToRuleArgumentType(Dictionary<string, object>)
travis-c-lagrone committedJun 23, 2019 -
Extract validation of dictionary key case-insensitivity from method S…
…ettings.ConvertToRuleArgumentType(Dictionary<string, objct>)
travis-c-lagrone committedJun 23, 2019 -
Extract validation of "Rules" setting values dictionary types from me…
…thod Strings.ConvertToRuleArgumentType(Dictionary<string, object>)
travis-c-lagrone committedJun 23, 2019 -
Remove method Settings.ConvertToRuleArgumentType(Dictionary<string, o…
…bject>)
travis-c-lagrone committedJun 23, 2019 -
Merge branch 'refactor-out-ConvertToRuleArgumentType' into refactor-o…
…ut-GetDictionaryFromHashTable
travis-c-lagrone committedJun 23, 2019 -
Refactor validation of setting "Rules" type to accommodate finer-fide…
…lity validation
travis-c-lagrone committedJun 23, 2019 -
Validate that each key of the "Rules" setting is nonnull
travis-c-lagrone committedJun 23, 2019 -
Validate that each key of the "Rules" setting is a string
travis-c-lagrone committedJun 23, 2019 -
Validate that each key of the "Rules" setting is unique, ignoring case
travis-c-lagrone committedJun 23, 2019 -
Validate that each value of the "Rules" setting is nonnull
travis-c-lagrone committedJun 23, 2019 -
Refactor validation that each value of the "Rules" setting is a dicti…
…onary type
travis-c-lagrone committedJun 23, 2019 -
Validate that each setting rule argument key is nonnull
travis-c-lagrone committedJun 23, 2019 -
Validate that each setting rule argument key is of type string
travis-c-lagrone committedJun 23, 2019 -
Validate that each setting rule argument key is unique, ignore case
travis-c-lagrone committedJun 23, 2019 -
Validate that each setting rule argument value is nonnull
travis-c-lagrone committedJun 23, 2019 -
Assign parse of settings "Rules" to Settings.ruleArguments
travis-c-lagrone committedJun 23, 2019 -
Merge branch 'refactor-out-GetDictionaryFromHashTable' into aggregate…
…-settings-file-exceptions
travis-c-lagrone committedJun 23, 2019 -
Validate (explicitly) that each setting key is nonnnull
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each setting key is a string type
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each setting key is unique, ignoring case
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each setting value is nonnull
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that the value for the 'Rules' setting is a dicti…
…onary type
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each 'Rules' setting rule key is nonnull
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each setting rule key is a string type
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each 'Rules' setting key is unique, ignoring…
… case
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each 'Rules' setting rule value is nonnull
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each 'Rules' setting rule value is a diction…
…ary type
travis-c-lagrone committedJun 23, 2019 -
Refactor the new 'Setting*' resource strings standard format for exte…
…nsibility
travis-c-lagrone committedJun 23, 2019 -
Nest remaining successor loops for parsing 'Rules' setting
travis-c-lagrone committedJun 23, 2019 -
Remove two now-unused resource strings
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that 'Rules' setting rule argument key is nonnull
travis-c-lagrone committedJun 23, 2019 -
Clean up validation that each 'Rules' setting rule argument key is a …
…string type
travis-c-lagrone committedJun 23, 2019 -
Retroactively invoke String.ToLowerInvariant() on ruleName and argume…
…ntName This should've been there all along, but was overlooked due to programmer error. The reason it should be there is documented in the comment on the initialization of settingName, which refers to issue #1095.
travis-c-lagrone committedJun 23, 2019
Commits on Jun 24, 2019
-
Clean up validation that each 'Rules' setting rule argument key is un…
…ique, ignoring case
travis-c-lagrone committedJun 24, 2019 -
Clean up validation that each 'Rules' setting rule argument value is …
…nonnull
travis-c-lagrone committedJun 24, 2019 -
Merge branch 'nest-Rules-setting-loops' into aggregate-settings-file-…
…exceptions
travis-c-lagrone committedJun 24, 2019 -
travis-c-lagrone committed
Jun 24, 2019 -
travis-c-lagrone committed
Jun 24, 2019 -
Add TODOs in GetData (now ParseSettingValueAsStrings)
travis-c-lagrone committedJun 24, 2019 -
Validate that the string(s) setting value is nonnull
travis-c-lagrone committedJun 24, 2019 -
Convert a single string value to an unary array
travis-c-lagrone committedJun 24, 2019 -
Validate that the setting value is a collection
travis-c-lagrone committedJun 24, 2019 -
Validate that each strings setting value element is nonnull
travis-c-lagrone committedJun 24, 2019 -
Validate that each strings setting value element is a string type
travis-c-lagrone committedJun 24, 2019 -
Tie off refactor GetData, and name it ParseSettingValueStringOrStrings
travis-c-lagrone committedJun 24, 2019 -
Merge branch 'refactor-GetData_object_string' into aggregate-settings…
…-file-exceptions
travis-c-lagrone committedJun 24, 2019 -
Debug overzealous application of string.ToLowerInvariant()
Logically reverts commit 07cb4e3.
travis-c-lagrone committedJun 24, 2019 -
Standardize legacy method capitalization
travis-c-lagrone committedJun 24, 2019 -
Update completed TODO comments
travis-c-lagrone committedJun 24, 2019 -
Debug capitalization of setting names in exception messages
travis-c-lagrone committedJun 24, 2019 -
Scaffold method ParseSettingValueBoolean(object, string)
travis-c-lagrone committedJun 24, 2019 -
Parse settings 'IncludeDefaultRules' and 'RecurseCustomRulePath' with…
… ParseSettingValueBoolean(object, string)
travis-c-lagrone committedJun 24, 2019 -
Validate that boolean settings value is nonnull
travis-c-lagrone committedJun 24, 2019 -
Validate that boolean setting value is a boolean type
travis-c-lagrone committedJun 24, 2019 -
Complete parsing of boolean setting value
travis-c-lagrone committedJun 24, 2019 -
Debug field assignment when parsing setting 'RecurseCustomRulePath'
travis-c-lagrone committedJun 24, 2019 -
Merge branch 'define-method-ParseSettingValueBoolean_object_string' i…
…nto aggregate-settings-file-exceptions
travis-c-lagrone committedJun 24, 2019
Commits on Jun 25, 2019
-
Clean up unrecognized setting key handling
travis-c-lagrone committedJun 25, 2019 -
Aggregate exceptions within ParseSetingsHashtable(Hashtable)
travis-c-lagrone committedJun 25, 2019 -
Aggregate exceptions in ParseSettingValueBoolean(object, string) by a…
…dding IList<Exception> parameter
travis-c-lagrone committedJun 25, 2019 -
Aggregate exceptions in ParseSettingValueStringOrStrings(object, stri…
…ng) by adding IList<Exception> parameter
travis-c-lagrone committedJun 25, 2019 -
Merge branch 'implement-AggregateException-for-ParseSettingsHashtable…
…_Hashtable' into aggregate-settings-file-exceptions
Commits on Jun 30, 2019
-
Debug exceptional element index incrementing in method Settings.Parse…
…SettingValueStringOrStrings(object, string, IList<Exception>)
Commits on Jul 4, 2019
Commits on Jul 5, 2019
-
-
Refactor `Settings` constructor to use the guard chain pattern
travis-c-lagrone committedJul 5, 2019 -
Refactor `ParseSettingsFile(string) => void` to `static ParseSettings…
…FileToHashtable(string) => Hashtable`
travis-c-lagrone committedJul 5, 2019 -
Fix sequencing of invocation of `ParseSettingsFileToHashtable` in `Se…
…ttings` constructor Fixes previous commit 25710df
travis-c-lagrone committedJul 5, 2019