diff options
author | ByteHamster <info@bytehamster.com> | 2019-12-02 10:30:49 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-12-02 10:30:49 +0100 |
commit | 26e91c0b81f82da5eae7565d17135de07637cc6e (patch) | |
tree | 40181a1e0cfd2f028edd5397a33b08bff32edbeb /config | |
parent | cbcd97f6c9ba2a178dfaa379e3b8e3973ca08176 (diff) | |
download | AntennaPod-26e91c0b81f82da5eae7565d17135de07637cc6e.zip |
Avoid too much nesting
Diffstat (limited to 'config')
-rw-r--r-- | config/checkstyle/checkstyle-best-practice.xml | 9 | ||||
-rw-r--r-- | config/checkstyle/checkstyle.xml | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/config/checkstyle/checkstyle-best-practice.xml b/config/checkstyle/checkstyle-best-practice.xml index 3abe4b5e5..410251d6c 100644 --- a/config/checkstyle/checkstyle-best-practice.xml +++ b/config/checkstyle/checkstyle-best-practice.xml @@ -244,5 +244,14 @@ <property name="exceptionVariableName" value="expected"/> </module> <module name="CommentsIndentation"/> + <module name="NestedIfDepth"> + <property name="max" value="4"/> + </module> + <module name="NestedTryDepth"> + <property name="max" value="2"/> + </module> + <module name="NestedForDepth"> + <property name="max" value="2"/> + </module> </module> </module> diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index 4f916ec3f..02a370b7e 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -91,5 +91,14 @@ <property name="tokens" value="VARIABLE_DEF"/> <property name="allowSamelineMultipleAnnotations" value="true"/> </module> + <module name="NestedIfDepth"> + <property name="max" value="4"/> + </module> + <module name="NestedTryDepth"> + <property name="max" value="2"/> + </module> + <module name="NestedForDepth"> + <property name="max" value="2"/> + </module> </module> </module> |