Adds a validate phase to the CI which runs a linter. Also fixes linter issues discovered during the initial run