View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.imports.customimportorder;
2   
3   import com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck;
4   import com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck;
5   import com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderOption;
6   
7   // every import from javadoc package has comment in brackets indicating presence of keywords
8   // Javadoc, Check, Tag. For example J_T = Javadoc, no Check, Tag
9   import com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocNodeImpl; //warn, should be on THIRD-PARTY (J__)
10  
11  // STANDARD - keyword Check
12  
13  import com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck; // (JC_)
14  import com.puppycrawl.tools.checkstyle.checks.javadoc.AtclauseOrderCheck; // (_C_)
15  import com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTagContinuationIndentationCheck; // (JCT)
16  
17  // SPECIAL_IMPORTS - keyword Tag
18  
19  import com.puppycrawl.tools.checkstyle.checks.javadoc.InvalidJavadocTag; // (J_T)
20  //import com.puppycrawl.tools.checkstyle.checks.javadoc.TagParser; // (__T)
21  import com.puppycrawl.tools.checkstyle.checks.javadoc.WriteTagCheck; //warn, should be on STANDARD (_CT)
22  
23  import com.puppycrawl.tools.*;
24  //import com.puppycrawl.tools.checkstyle.checks.javadoc.HtmlTag; //warn, should be on SPECIAL (__T)
25  import com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTag; //warn, should be on SPECIAL (J_T)
26  import com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheck; //warn, should be on STANDARD  (JC_)
27  import com.puppycrawl.tools.checkstyle.checks.javadoc.NonEmptyAtclauseDescriptionCheck; //warn, should be on STANDARD (_C_)
28  
29  public class InputCustomImportOrder_OverlappingPatterns {
30  }
31  /*
32  test: testRulesOrder_ThirdBeforeSame()
33  configuration:
34          checkConfig.addAttribute("customImportOrderRules",
35                  "THIRD_PARTY_PACKAGE###SAME_PACKAGE(3)###SPECIAL_IMPORTS");
36          checkConfig.addAttribute("sortImportsInGroupAlphabetically", "true");
37  */