All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.skypencil.sonar.slf4j.extensions.xml Maven / Gradle / Ivy

There is a newer version: 0.4
Show newest version
<rules>
	<rule>
		<key>DontPassOtherClassToLoggerFactory</key>
		<name>Don&apos;t pass other class to LoggerFactory.</name>
		<configKey>jp/skypencil/sonar/slf4j/rulesets.xml/DontPassOtherClassToLoggerFactory</configKey>
		<priority>CRITICAL</priority>
		<description>
		You have to pass the Class which you're coding about to LoggerFactory#getLogger(Class).
		</description>
	</rule>

	<rule>
		<key>DontPublishLogger</key>
		<name>Don&apos;t publish Logger.</name>
		<configKey>jp/skypencil/sonar/slf4j/rulesets.xml/DontPublishLogger</configKey>
		<priority>MAJOR</priority>
		<description>
		You have to make your all logger to private.
		</description>
	</rule>

	<rule>
		<key>LoggerShouldBeFinal</key>
		<name>Logger should be final.</name>
		<configKey>jp/skypencil/sonar/slf4j/rulesets.xml/LoggerShouldBeFinal</configKey>
		<priority>MAJOR</priority>
		<description>
		Your all logger should be final.
		</description>
	</rule>

	<rule>
		<key>DontUseStaticLogger</key>
		<name>Don&apos;t use static logger.</name>
		<configKey>jp/skypencil/sonar/slf4j/rulesets.xml/DontUseStaticLogger</configKey>
		<priority>MAJOR</priority>
		<description>
		The SLF4J community recommends to use non-static logger. See official FAQ at http://www.slf4j.org/faq.html#declared_static
		</description>
	</rule>

	<rule>
		<key>NumberOfPlaceholderShouldBeEqualToNumberOfArgument</key>
		<name>Number of placeholder does not match to number of argument.</name>
		<configKey>jp/skypencil/sonar/slf4j/rulesets.xml/NumberOfPlaceholderShouldBeEqualToNumberOfArgument</configKey>
		<priority>CRITICAL</priority>
		<description>
		Number of placeholder({}) should be equal to number of argument.
		</description>
	</rule>
</rules>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy