IDEA-51944
[fedora-idea.git] / java / java-impl / src / com / intellij / codeInspection / ex / StandardInspectionToolsProvider.java
blob9978aecbd1ec3681c150465baf61cdfe2d762f67
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.codeInspection.ex;
18 import com.intellij.codeInspection.InspectionToolProvider;
19 import com.intellij.codeInspection.LossyEncodingInspection;
20 import com.intellij.codeInspection.NumericOverflowInspection;
21 import com.intellij.codeInspection.RedundantSuppressInspection;
22 import com.intellij.codeInspection.accessStaticViaInstance.AccessStaticViaInstance;
23 import com.intellij.codeInspection.canBeFinal.CanBeFinalInspection;
24 import com.intellij.codeInspection.concurrencyAnnotations.*;
25 import com.intellij.codeInspection.dataFlow.DataFlowInspection;
26 import com.intellij.codeInspection.deadCode.DeadCodeInspection;
27 import com.intellij.codeInspection.defUse.DefUseInspection;
28 import com.intellij.codeInspection.defaultFileTemplateUsage.DefaultFileTemplateUsageInspection;
29 import com.intellij.codeInspection.dependencyViolation.DependencyInspection;
30 import com.intellij.codeInspection.deprecation.DeprecationInspection;
31 import com.intellij.codeInspection.duplicateThrows.DuplicateThrowsInspection;
32 import com.intellij.codeInspection.emptyMethod.EmptyMethodInspection;
33 import com.intellij.codeInspection.equalsAndHashcode.EqualsAndHashcode;
34 import com.intellij.codeInspection.inconsistentLanguageLevel.InconsistentLanguageLevelInspection;
35 import com.intellij.codeInspection.java15api.Java15APIUsageInspection;
36 import com.intellij.codeInspection.javaDoc.JavaDocLocalInspection;
37 import com.intellij.codeInspection.javaDoc.JavaDocReferenceInspection;
38 import com.intellij.codeInspection.localCanBeFinal.LocalCanBeFinal;
39 import com.intellij.codeInspection.miscGenerics.RedundantArrayForVarargsCallInspection;
40 import com.intellij.codeInspection.miscGenerics.RedundantTypeArgsInspection;
41 import com.intellij.codeInspection.miscGenerics.SuspiciousCollectionsMethodCallsInspection;
42 import com.intellij.codeInspection.nullable.NullableStuffInspection;
43 import com.intellij.codeInspection.redundantCast.RedundantCastInspection;
44 import com.intellij.codeInspection.sameParameterValue.SameParameterValueInspection;
45 import com.intellij.codeInspection.sameReturnValue.SameReturnValueInspection;
46 import com.intellij.codeInspection.sillyAssignment.SillyAssignmentInspection;
47 import com.intellij.codeInspection.suspiciousNameCombination.SuspiciousNameCombinationInspection;
48 import com.intellij.codeInspection.testOnly.TestOnlyInspection;
49 import com.intellij.codeInspection.uncheckedWarnings.UncheckedWarningLocalInspection;
50 import com.intellij.codeInspection.unnecessaryModuleDependency.UnnecessaryModuleDependencyInspection;
51 import com.intellij.codeInspection.unneededThrows.RedundantThrows;
52 import com.intellij.codeInspection.unneededThrows.RedundantThrowsDeclaration;
53 import com.intellij.codeInspection.unusedImport.UnusedImportLocalInspection;
54 import com.intellij.codeInspection.unusedLibraries.UnusedLibrariesInspection;
55 import com.intellij.codeInspection.unusedParameters.UnusedParametersInspection;
56 import com.intellij.codeInspection.unusedReturnValue.UnusedReturnValue;
57 import com.intellij.codeInspection.unusedSymbol.UnusedSymbolLocalInspection;
58 import com.intellij.codeInspection.varScopeCanBeNarrowed.FieldCanBeLocalInspection;
59 import com.intellij.codeInspection.visibility.VisibilityInspection;
60 import com.intellij.codeInspection.wrongPackageStatement.WrongPackageStatementInspection;
62 /**
63 * @author max
65 public class StandardInspectionToolsProvider implements InspectionToolProvider {
67 public Class[] getInspectionClasses() {
68 return new Class[] {
69 DeadCodeInspection.class,
70 UnusedLibrariesInspection.class,
71 InconsistentLanguageLevelInspection.class,
72 VisibilityInspection.class,
73 CanBeFinalInspection.class,
74 UnusedParametersInspection.class,
75 SameParameterValueInspection.class,
76 UnusedReturnValue.class,
77 SameReturnValueInspection.class,
78 EmptyMethodInspection.class,
79 RedundantThrows.class,
81 DataFlowInspection.class,
82 DefUseInspection.class,
83 NumericOverflowInspection.class,
84 RedundantCastInspection.class,
85 RedundantTypeArgsInspection.class,
86 RedundantArrayForVarargsCallInspection.class,
87 SuspiciousCollectionsMethodCallsInspection.class,
88 LocalCanBeFinal.class,
90 JavaDocLocalInspection.class,
91 JavaDocReferenceInspection.class,
92 DeprecationInspection.class,
93 EqualsAndHashcode.class,
95 Java15APIUsageInspection.class,
97 DependencyInspection.class,
98 FieldCanBeLocalInspection.class,
99 NullableStuffInspection.class,
100 TestOnlyInspection.class,
102 WrongPackageStatementInspection.class,
103 SillyAssignmentInspection.class,
104 RedundantThrowsDeclaration.class,
105 AccessStaticViaInstance.class,
106 DefaultFileTemplateUsageInspection.class,
107 UnnecessaryModuleDependencyInspection.class,
108 RedundantSuppressInspection.class,
109 UnusedSymbolLocalInspection.class,
110 UnusedImportLocalInspection.class,
111 UncheckedWarningLocalInspection.class,
112 SuspiciousNameCombinationInspection.class,
113 DuplicateThrowsInspection.class,
114 LossyEncodingInspection.class,
116 FieldAccessNotGuardedInspection.class,
117 InstanceGuardedByStaticInspection.class,
118 NonFinalFieldInImmutableInspection.class,
119 NonFinalGuardInspection.class,
120 StaticGuardedByInstanceInspection.class,
121 UnknownGuardInspection.class