The interface defining the set of hooks for a CodeNarc Plugin
Type Params | Return Type | Name and description |
---|---|---|
|
void |
initialize() Perform plugin initialization |
|
void |
processReports(java.util.List<ReportWriter> reportWriters) Process the list of ReportWriter. |
|
void |
processRules(java.util.List<Rule> rules) Process the list of Rules. |
|
void |
processViolationsForFile(FileViolations fileViolations) Process the violations for a single file. |
Perform plugin initialization
Process the list of ReportWriter. The List can be modified in-place. ReportWriters within the list can be modified, or ReportWriters can be added or deleted from the list.
rules
- - the initial List of Rules to be appliedProcess the list of Rules. The List can be modified in-place. Rules within the list can be modified, or Rules can be added or deleted from the list.
rules
- - the initial List of Rules to be appliedProcess the violations for a single file. The List of violations within FileViolations can be modified in-place.
fileViolations
- - the violations and associated metadata for a single file