@Beta
@SonarLintSide
@ScannerSide
public interface CheckRegistrar
public void register(RegistrarContext registrarContext) {
registrarContext.registerClassesForRepository("RepositoryKey", listOfCheckClasses);
}
Modifier and Type | Interface | Description |
---|---|---|
static class |
CheckRegistrar.RegistrarContext |
Context for checks registration.
|
Modifier and Type | Method | Description |
---|---|---|
void |
register(CheckRegistrar.RegistrarContext registrarContext) |
This method is called during an analysis to get the classes to use to instantiate checks.
|
void register(CheckRegistrar.RegistrarContext registrarContext)
registrarContext
- the context that will be used by the java-plugin to retrieve the classes for checks.Copyright © 2012–2018 SonarSource. All rights reserved.