Home
last modified time | relevance | path

Searched refs:Severity (Results 1 – 12 of 12) sorted by relevance

/tools/metalava/metalava-reporter/src/main/java/com/android/tools/metalava/reporter/
DIssues.kt30 val PARSE_ERROR by Issue(Severity.ERROR)
31 val DUPLICATE_SOURCE_CLASS by Issue(Severity.WARNING)
33 val ADDED_PACKAGE by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
34 val ADDED_CLASS by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
35 val ADDED_METHOD by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
36 val ADDED_FIELD by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
37 val ADDED_INTERFACE by Issue(Severity.HIDDEN, Category.COMPATIBILITY)
38 val REMOVED_PACKAGE by Issue(Severity.ERROR, Category.COMPATIBILITY)
39 val REMOVED_CLASS by Issue(Severity.ERROR, Category.COMPATIBILITY)
40 val REMOVED_METHOD by Issue(Severity.ERROR, Category.COMPATIBILITY)
[all …]
DIssueConfiguration.kt21 private val overrides = mutableMapOf<Issues.Issue, Severity>()
24 fun getSeverity(issue: Issues.Issue): Severity { in getSeverity()
28 if (issue.defaultLevel == Severity.INHERIT) { in getSeverity()
34 fun setSeverity(issue: Issues.Issue, severity: Severity) { in setSeverity()
35 check(severity != Severity.INHERIT) in setSeverity()
41 setSeverity(issue, Severity.ERROR) in error()
46 setSeverity(issue, Severity.HIDDEN) in hide()
DReporter.kt40 maximumSeverity: Severity = Severity.UNLIMITED, in report()
87 maximumSeverity: Severity = Severity.UNLIMITED, in report()
115 maximumSeverity: Severity, in report()
DSeverity.kt21 enum class Severity( class
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/
DIssueReportingOptionsTest.kt23 import com.android.tools.metalava.reporter.Severity
105 override fun printReport(message: String, severity: Severity) { in printReport()
107 if (severity == Severity.ERROR) { in printReport()
138 assertEquals(Severity.HIDDEN, issueConfiguration.getSeverity(Issues.START_WITH_LOWER)) in createOptions()
139 assertEquals(Severity.WARNING, issueConfiguration.getSeverity(Issues.START_WITH_UPPER)) in createOptions()
140 assertEquals(Severity.ERROR, issueConfiguration.getSeverity(Issues.ARRAY_RETURN)) in createOptions()
149 assertEquals(Severity.HIDDEN, issueConfiguration.getSeverity(Issues.START_WITH_LOWER)) in Test multiple issue severity options()
150 assertEquals(Severity.HIDDEN, issueConfiguration.getSeverity(Issues.START_WITH_UPPER)) in Test multiple issue severity options()
151 assertEquals(Severity.HIDDEN, issueConfiguration.getSeverity(Issues.ARRAY_RETURN)) in Test multiple issue severity options()
159 assertEquals(Severity.ERROR, issueConfiguration.getSeverity(Issues.REMOVED_CLASS)) in Test issue severity options with inheriting issues()
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DDefaultReporterTest.kt25 import com.android.tools.metalava.reporter.Severity in <lambda>()
277 fun checkReportableMethod(maximum: Severity) { in <lambda>()
286 checkReportableMethod(Severity.ERROR) in <lambda>()
287 checkReportableMethod(Severity.WARNING_ERROR_WHEN_NEW) in <lambda>()
288 checkReportableMethod(Severity.WARNING) in <lambda>()
289 checkReportableMethod(Severity.HIDDEN) in <lambda>()
291 fun checkFileMethod(maximum: Severity) { in <lambda>()
300 checkFileMethod(Severity.ERROR) in <lambda>()
301 checkFileMethod(Severity.WARNING_ERROR_WHEN_NEW) in <lambda>()
302 checkFileMethod(Severity.WARNING) in <lambda>()
[all …]
DDriverTest.kt67 import com.android.tools.metalava.reporter.Severity in <lambda>()
674 override fun printReport(message: String, severity: Severity) { in <lambda>()
676 if (severity == Severity.ERROR) { in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/common/
DIssueReportingOptions.kt26 import com.android.tools.metalava.reporter.Severity
189 severity: Severity, in setAspectSeverityForId()
213 severity: Severity, in setAspectSeverityForId()
229 severity: Severity, in setAspectSeverityForId()
238 val severity: Severity, in setAspectSeverityForId()
244 Severity.ERROR, in setAspectSeverityForId()
250 Severity.WARNING_ERROR_WHEN_NEW, in setAspectSeverityForId()
261 Severity.WARNING, in setAspectSeverityForId()
267 Severity.HIDDEN, in setAspectSeverityForId()
273 Severity.ERROR, in setAspectSeverityForId()
[all …]
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DDefaultReporter.kt30 import com.android.tools.metalava.reporter.Severity
31 import com.android.tools.metalava.reporter.Severity.ERROR
32 import com.android.tools.metalava.reporter.Severity.HIDDEN
33 import com.android.tools.metalava.reporter.Severity.INFO
34 import com.android.tools.metalava.reporter.Severity.INHERIT
35 import com.android.tools.metalava.reporter.Severity.WARNING
36 import com.android.tools.metalava.reporter.Severity.WARNING_ERROR_WHEN_NEW
96 maximumSeverity: Severity, in hasErrors()
115 severity: Severity, location: String?, message: String, id: Issues.Issue in hasErrors()
228 severity: Severity, in doReport()
[all …]
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/compatibility/
DCompatibilityCheck.kt45 import com.android.tools.metalava.reporter.Severity
133 Severity.WARNING_ERROR_WHEN_NEW in compareTypeNullability()
135 Severity.ERROR in compareTypeNullability()
970 maximumSeverity: Severity = Severity.UNLIMITED, in report()
982 if (severity == Severity.ERROR) { in report()
/tools/apifinder/checks/src/main/java/com/android/apifinder/
DApiFinderDetector.kt93 severity = Severity.INFORMATIONAL,
/tools/metalava/
DAPI-LINT.md116 Count Issue Id Rule Severity