analysis function for linting