Closed Larusso closed 6 years ago
I switched from if
statements to switch/case
because of esthetic reasons. I added some more guards around the switch arms to limit crashes. We might need to add a proper parser with error results if and when we want to support multi type lock files.
Description
The
paket.lock
file parser has issues with counting leading whitespaces. The value from the old logicdef newLeadingWhitespaces =(line =~ /\s/).size()
returns the number of all white space characters in the current line.The second part:
didn't take into account when the indention level suddenly jumped from 3 to 1. I also made the method
List<String> getAllDependencies(List<String> references)
recursive. I added a new test covering the failing behaviorChanges
paket.lock
file parsinggetAllDependencies
method by making it recursive new test example