mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-19 07:25:27 +02:00
fix: Remove unwanted changes
This commit is contained in:
parent
26514ed059
commit
8352e0df40
28
:w
28
:w
@ -1,28 +0,0 @@
|
|||||||
package common
|
|
||||||
|
|
||||||
import docvalues "config-lsp/doc-values"
|
|
||||||
|
|
||||||
func AnalyzeValues(
|
|
||||||
parser SimpleConfigParser,
|
|
||||||
availableOptions map[string]Option,
|
|
||||||
) []docvalues.ValueError {
|
|
||||||
errors := make([]docvalues.ValueError, 0)
|
|
||||||
|
|
||||||
for optionName, line := range parser.Lines {
|
|
||||||
documentationOption := availableOptions[optionName]
|
|
||||||
|
|
||||||
err := documentationOption.Value.CheckIsValid(line.Value)
|
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
errors = append(errors, docvalues.ValueError{
|
|
||||||
Line: line.Position.Line,
|
|
||||||
Option: optionName,
|
|
||||||
Value: line.Value,
|
|
||||||
DocError: err,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return errors
|
|
||||||
}
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user