blob: 476d2af37c532e7b4afa4c023a28eafe4c094d53 [file] [log] [blame]
<!--
~ Copyright 2000-2007 JetBrains s.r.o.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html><body bgcolor="white">
Provides interfaces for registering and implementing code inspections. To register inspections,
a plugin should implement the {@link com.intellij.codeInspection.InspectionToolProvider} interface and return the
list of inspection classes from the <code>getInspectionClasses()</code> method.
An inspection is a class extending {@link com.intellij.codeInspection.LocalInspectionTool}. During background code
analysis or when the "Inspect Code..." action is invoked,, IDEA calls the inspection
to inspect individual files, classes, methods and fields, and if the inspection detects any problems,
it returns an array of {@link com.intellij.codeInspection.ProblemDescriptor} classes reporting the problem. Each problem
descriptor can return a list of {@link com.intellij.codeInspection.LocalQuickFix} classes, each of which represents an
action which the user can invoke by pressing Alt-Enter in order to fix the problem detected
by the inspection.
</body></html>