Extend rule structure and nip rule parser (#16)

This commit is contained in:
Arto Simonyan
2024-05-01 01:34:57 +03:00
committed by GitHub
parent e27064213f
commit 345e37bbf9
5 changed files with 10 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ func ParseNIPFile(filePath string) ([]Rule, error) {
lineNumber := 0
for fileScanner.Scan() {
lineNumber++
rule, err := ParseLine(fileScanner.Text())
rule, err := ParseLine(fileScanner.Text(), filePath, lineNumber)
if errors.Is(err, errEmptyLine) {
continue
}