Refactor linter results with Promise.map()
Extract the CLI into a new file