Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Make parseJsonConfig() a pure function in Linter (#9186)
This updates the `parseJsonConfig` function in `Linter` to return a result object rather than pushing problems to a provided list of messages. The goal of this change is to give the `verify` method sole control of the `messages` array. This will make the code easier to follow (since the array won't be mutated from a distance), and it will also allow the array to be replaced with a local variable rather than an instance property.
- Loading branch information
1 parent
1bbac51
commit 88a64cc
Showing
1 changed file
with
44 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters