|
13 | 13 | module Packwerk |
14 | 14 | extend ActiveSupport::Autoload |
15 | 15 |
|
| 16 | + # Public APIs |
| 17 | + autoload :Checker |
| 18 | + autoload :Cli |
| 19 | + autoload :Offense |
| 20 | + autoload :OffensesFormatter |
| 21 | + autoload :OutputStyle |
| 22 | + autoload :Package |
| 23 | + autoload :PackageSet |
| 24 | + autoload :PackageTodo |
| 25 | + autoload :Parsers |
| 26 | + autoload :Reference |
| 27 | + autoload :ReferenceOffense |
| 28 | + autoload :Result |
| 29 | + |
| 30 | + # Private APIs |
| 31 | + # Please submit an issue if you have a use-case for these |
16 | 32 | autoload :ApplicationLoadPaths |
| 33 | + private_constant :ApplicationLoadPaths |
17 | 34 | autoload :ApplicationValidator |
| 35 | + private_constant :ApplicationValidator |
18 | 36 | autoload :AssociationInspector |
| 37 | + private_constant :AssociationInspector |
19 | 38 | autoload :Cache |
20 | | - autoload :Checker |
21 | | - autoload :Cli |
| 39 | + private_constant :Cache |
22 | 40 | autoload :Configuration |
| 41 | + private_constant :Configuration |
23 | 42 | autoload :ConstantDiscovery |
| 43 | + private_constant :ConstantDiscovery |
24 | 44 | autoload :ConstantNameInspector |
| 45 | + private_constant :ConstantNameInspector |
25 | 46 | autoload :ConstNodeInspector |
| 47 | + private_constant :ConstNodeInspector |
26 | 48 | autoload :ExtensionLoader |
| 49 | + private_constant :ExtensionLoader |
27 | 50 | autoload :FileProcessor |
| 51 | + private_constant :FileProcessor |
28 | 52 | autoload :FilesForProcessing |
| 53 | + private_constant :FilesForProcessing |
29 | 54 | autoload :Graph |
| 55 | + private_constant :Graph |
30 | 56 | autoload :Loader |
| 57 | + private_constant :Loader |
31 | 58 | autoload :Node |
| 59 | + private_constant :Node |
32 | 60 | autoload :NodeHelpers |
| 61 | + private_constant :NodeHelpers |
33 | 62 | autoload :NodeProcessor |
| 63 | + private_constant :NodeProcessor |
34 | 64 | autoload :NodeProcessorFactory |
| 65 | + private_constant :NodeProcessorFactory |
35 | 66 | autoload :NodeVisitor |
36 | | - autoload :Offense |
| 67 | + private_constant :NodeVisitor |
37 | 68 | autoload :OffenseCollection |
38 | | - autoload :OffensesFormatter |
39 | | - autoload :OutputStyle |
40 | | - autoload :Package |
41 | | - autoload :PackageSet |
42 | | - autoload :PackageTodo |
| 69 | + private_constant :OffenseCollection |
43 | 70 | autoload :ParsedConstantDefinitions |
44 | | - autoload :Parsers |
| 71 | + private_constant :ParsedConstantDefinitions |
45 | 72 | autoload :ParseRun |
46 | | - autoload :Reference |
| 73 | + private_constant :ParseRun |
47 | 74 | autoload :ReferenceExtractor |
48 | | - autoload :ReferenceOffense |
49 | | - autoload :Result |
| 75 | + private_constant :ReferenceExtractor |
50 | 76 | autoload :RunContext |
| 77 | + private_constant :RunContext |
51 | 78 | autoload :UnresolvedReference |
| 79 | + private_constant :UnresolvedReference |
52 | 80 | autoload :Validator |
| 81 | + private_constant :Validator |
53 | 82 | autoload :Version |
| 83 | + private_constant :Version |
54 | 84 |
|
55 | 85 | module OutputStyles |
56 | 86 | extend ActiveSupport::Autoload |
@@ -103,9 +133,9 @@ class ApplicationValidator |
103 | 133 | end |
104 | 134 | end |
105 | 135 |
|
106 | | -# Required to register the default OffensesFormatter |
| 136 | +# Required to register the DefaultOffensesFormatter |
107 | 137 | # We put this at the *end* of the file to specify all autoloads first |
108 | | -require "packwerk/formatters/offenses_formatter" |
| 138 | +require "packwerk/formatters/default_offenses_formatter" |
109 | 139 |
|
110 | 140 | # Required to register the default DependencyChecker |
111 | 141 | require "packwerk/reference_checking/checkers/dependency_checker" |
0 commit comments