It seems you are trying to cache the environment variables, but actually this linter object is instantiated and discarded in each run.