From 02fbd4cea5b83191ca38db608e4790bbdab2a0a9 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Fri, 9 Feb 2024 17:53:33 +0100 Subject: [PATCH] change: Provide a vendor property in LintRegistry (#432) Resolves a build-time warning: ``` app.pachli.lint.checks.LintRegistry ... does not specify a vendor; see IssueRegistry#vendor ``` --- .../app/pachli/lint/checks/LintRegistry.kt | 8 ++++++++ ...android.tools.lint.client.api.IssueRegistry | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 checks/src/main/resources/META-INF/services/com.android.tools.lint.client.api.IssueRegistry diff --git a/checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt b/checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt index 23f343381..74ee383f5 100644 --- a/checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt +++ b/checks/src/main/java/app/pachli/lint/checks/LintRegistry.kt @@ -1,6 +1,7 @@ package app.pachli.lint.checks import com.android.tools.lint.client.api.IssueRegistry +import com.android.tools.lint.client.api.Vendor import com.android.tools.lint.detector.api.CURRENT_API import com.android.tools.lint.detector.api.Issue @@ -14,4 +15,11 @@ class LintRegistry : IssueRegistry() { override val api: Int get() = CURRENT_API + + override val vendor = Vendor( + vendorName = "Pachli", + identifier = "app.pachli.lint:pachli-lint", + feedbackUrl = "https://github.com/pachli/pachli-android/issues", + contact = "https://github.com/pachli/pachli-android", + ) } diff --git a/checks/src/main/resources/META-INF/services/com.android.tools.lint.client.api.IssueRegistry b/checks/src/main/resources/META-INF/services/com.android.tools.lint.client.api.IssueRegistry new file mode 100644 index 000000000..79e681a01 --- /dev/null +++ b/checks/src/main/resources/META-INF/services/com.android.tools.lint.client.api.IssueRegistry @@ -0,0 +1,18 @@ +# +# Copyright 2024 Pachli Association +# +# This file is a part of Pachli. +# +# This program is free software; you can redistribute it and/or modify it under the terms of the +# GNU General Public License as published by the Free Software Foundation; either version 3 of the +# License, or (at your option) any later version. +# +# Pachli is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even +# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General +# Public License for more details. +# +# You should have received a copy of the GNU General Public License along with Pachli; if not, +# see . +# + +app.pachli.lint.checks.LintRegistry