Scan for Gentoo eclass variables

Creates a Map of eclass names to eclass variables by scanning the
system for repositories and their respective eclasses. Runs `portageq`
to determine repository names and locations. Emits a warning if an
IOException is caught when attempting to run `portageq`.

This Map is passed via CheckSpec to AnalysisSpec and finally to
Parameters, where it is read by `checkUnusedAssignments` in order to
determine which variables can be safely ignored by this check.

Signed-off-by: hololeap <hololeap@users.noreply.github.com>
This commit is contained in:
hololeap 2023-08-05 15:16:30 -06:00
commit 272ef819b9
No known key found for this signature in database
GPG key ID: 06B97EDD7A3D1E83
8 changed files with 58 additions and 18 deletions

View file

@ -93,11 +93,11 @@ library
ShellCheck.Formatter.Quiet
ShellCheck.Interface
ShellCheck.Parser
ShellCheck.PortageVariables
ShellCheck.Prelude
ShellCheck.Regex
other-modules:
Paths_ShellCheck
ShellCheck.PortageVariables
ShellCheck.PortageAutoInternalVariables
default-language: Haskell98