Does Java authentication severity inherit value?

What does the severity level set as “inherit” in the checkstyle rule actually do?

tried googling a lot could not find the actual definition for this -

+4
source share
2 answers

Checkstyle rules are configured in a small but important hierarchy. Checker is at the top, one of his “children” is Treewalker , etc. Properties can be defined for individual checks, but also for these “parent checks”. So your standard Checkstyle configuration file looks like this:

 <module name="Checker"> <property name="severity" value="warning"/> <!-- NOTE THIS --> <module name="TreeWalker"> <property name="tabWidth" value="4"/> <module name="JavadocMethod"> <property name="scope" value="public"/> </module> <!-- and so on --> </module> <!-- and so on --> </module> 

As you can see, there is a severity property for Checker , the topmost module. If the check is somewhere lower in the hierarchy, its rigidity is set to inherit (which is the same as not setting anything), then in this example its severity will be warning .

+3
source

Command line properties and ant Checkstyle properties apply to the Checker root module. In addition, properties are inherited in the hierarchy module.

See the Checkstyle documentation for more details .

0
source

Source: https://habr.com/ru/post/1498335/


All Articles