-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestSmellInspectionProvider.java
41 lines (39 loc) · 1.35 KB
/
TestSmellInspectionProvider.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package org.scanl.plugins.tsdetect.inspections;
import com.intellij.codeInspection.InspectionProfileEntry;
import com.intellij.codeInspection.InspectionToolProvider;
import com.intellij.codeInspection.LocalInspectionTool;
import org.jetbrains.annotations.NotNull;
/**
* The provider for the Test Smell Inspection, determines which inspection classes to run
*/
public class TestSmellInspectionProvider implements InspectionToolProvider {
/**
* Query method for inspection tools provided by a plugin.
*
* @return classes that extend {@link InspectionProfileEntry}
*/
@Override
public Class<? extends LocalInspectionTool> @NotNull [] getInspectionClasses() {
return new Class[]{
AssertionRouletteInspection.class,
ConditionalTestLogicInspection.class,
ConstructorInitializationInspection.class,
DefaultTestInspection.class,
DuplicateAssertInspection.class,
EagerTestInspection.class,
EmptyMethodInspection.class,
ExceptionHandlingInspection.class,
GeneralFixtureInspection.class,
IgnoredTestInspection.class,
LazyTestInspection.class,
MagicNumberInspection.class,
MysteryGuestInspection.class,
RedundantAssertionInspection.class,
RedundantPrintInspection.class,
ResourceOptimismInspection.class,
SensitiveEqualityInspection.class,
SleepyTestInspection.class,
UnknownTestInspection.class
};
}
}