Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled variant reads the wrong lint-results.xml #100

Open
TWiStErRob opened this issue Nov 22, 2020 · 1 comment · May be fixed by #139
Open

Disabled variant reads the wrong lint-results.xml #100

TWiStErRob opened this issue Nov 22, 2020 · 1 comment · May be fixed by #139
Labels
a:bug something isn't working as expected in:lint on:agp issue related to Android Gradle Plugin
Milestone

Comments

@TWiStErRob
Copy link
Owner

See LintOptions_createOutputPath

> Task :android:data:svg:lint
Wrote HTML report to file:///I:/project/android/data/svg/build/reports/lint-results-debug.html
Wrote XML report to file:///I:/project/android/data/svg/build/reports/lint-results-debug.xml
Lint found 1 warning

> Task :lint
Error when parsing I:\project\android\data\svg\build\reports\lint-results.xml as ANDROIDLINT
java.io.FileNotFoundException: I:\project\android\data\svg\build\reports\lint-results.xml (The system cannot find the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at se.bjurr.violations.lib.reports.Parser.findViolations(Parser.java:101)
        at net.twisterrob.gradle.quality.gather.LintReportGatherer.findViolations(LintReportGatherer.kt:38)
        at net.twisterrob.gradle.quality.tasks.GlobalLintGlobalFinalizerTask.failOnFailures(GlobalLintGlobalFinalizerTask.kt:37)

I think this triggers the problem:

android {
	variantFilter { variant ->
		if (variant.buildType.name == com.android.builder.core.BuilderConstants.RELEASE) {
			variant.setIgnore(true)
		}
	}
}
@TWiStErRob TWiStErRob added a:bug something isn't working as expected on:agp issue related to Android Gradle Plugin in:lint labels Nov 22, 2020
@TWiStErRob TWiStErRob added this to the v0.12 milestone Jun 2, 2021
@TWiStErRob
Copy link
Owner Author

Branch fix100

@TWiStErRob TWiStErRob modified the milestones: v0.12, v0.13 Oct 31, 2021
@TWiStErRob TWiStErRob modified the milestones: v0.13, v0.14 Dec 17, 2021
@TWiStErRob TWiStErRob modified the milestones: v0.15, vNext Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug something isn't working as expected in:lint on:agp issue related to Android Gradle Plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant