Add lint check for custom attributes in library projects

Also adds a lint check for unused namespace declarations,
and migrates the TypoDetector code into this new namespace
detector.

Change-Id: I5ec2214ea4c59e14194f8eaecef422ea19baa35e
10 files changed