Suppose I need to ensure that all loggers in my scala code are named log
only, not LOGGER
, LOG
or logger
. So for this style checking I need to define a Logger
(for slf4j or log4j) and when style checker detects a variable with this type it check name.
I see org.scalastyle.scalariform.FieldNamesChecker, but do not see any type checkers, so is it possible to do that with scalastyle rules?