enum size lint

See commits for details.