just to clarify, when scanfs finishes, pending is decremented, but it's value is >0 if there are still linting in-progress. the linting does not have any side-effects that can affect the scanning.