This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved config mgmt and fixed out of bounds panic (#5)
* Improved config mgmt and fixed out of bounds panic Changed the way the config is loaded to use defined structs instead of nested maps of interface{}. Now, the config is loaded into a struct during initialization and the values are referenced by the struct fields as appropriate. This refrains from reading and parsing the config file twice (once when loading the default sources and again when loading any analyzers. Additionally, this change adds a length check to fix the panic shown in issue #2. * add check for old config format
- Loading branch information
1 parent
067e3fd
commit 1f3eb7e
Showing
5 changed files
with
179 additions
and
203 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
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
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
Oops, something went wrong.