Make the linter skip generated sources and disable legal warnings