@Incubating public interface ProblemCategory
A category object follows a pattern similar to URNs, it has a namespace, a main category and a subcategory.
The namespace contains information about the origin of the problem: whether it comes from the Gradle core runtime, or from a third-party plugin.
For example, deprecation
, or compilation
is a main category.
Subcategories can be an arbitrary list of strings, that ideally serve as a unique identifier.
To use compilation as an example, [java, unused-variable]
would be a subcategory, that along with the [compilation]
main category, denotes a particular compiler warning.
The exact definition of subcategories depends on the problem's domain.
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCategory() |
The main problem category.
|
java.lang.String |
getNamespace() |
Returns the namespace.
|
java.util.List<java.lang.String> |
getSubCategories() |
The problem's subcategories.
|
java.lang.String getNamespace()
java.lang.String getCategory()
java.util.List<java.lang.String> getSubCategories()