format-code: combine linter enablement logic

Each linter has unique logic for detecting if it should be
enabled and finding the config file.  Create a combined enable
check function and allow each linter to provide directives on
their requirements.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4db1d44a00076f4a84f00bd254be164a321af3c1
1 file changed