1 /*
2 SuppressionXpathSingleFilter
3 files = (null)
4 checks = (null)
5 message = Missing a Javadoc comment
6 id = (null)
7 query = (null)
8
9 com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck
10 scope = (default)public
11 excludeScope = (default)(null)
12 skipAnnotations = (default)Generated
13 tokens = CLASS_DEF
14
15 com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck
16 ignoreNumbers = (default)-1, 0, 1, 2
17 ignoreHashCodeMethod = (default)false
18 ignoreAnnotation = (default)false
19 ignoreFieldDeclaration = (default)false
20 ignoreAnnotationElementDefaults = (default)true
21 constantWaiverParentToken = (default)TYPECAST, METHOD_CALL, EXPR, ARRAY_INIT, UNARY_MINUS, \
22 UNARY_PLUS, ELIST, STAR, ASSIGN, PLUS, MINUS, DIV, LITERAL_NEW
23 tokens = (default)NUM_DOUBLE, NUM_FLOAT, NUM_INT, NUM_LONG
24
25 */
26 package com.puppycrawl.tools.checkstyle.filters.suppressionxpathsinglefilter;
27
28 public class InputSuppressionXpathSingleFilterDecideByMessage {
29 // filtered violation above 'Missing a Javadoc comment.'
30 private int countTokens() {
31 double pi = 3.14; // violation
32 return 123; // violation
33 }
34
35 public String getName() {
36 int someVariable = 123; // violation
37 return "InputSuppressByXpathThree";
38 }
39 }