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

Adding html_support #27

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

EdbertChan
Copy link
Contributor

Exposing the htmlOutput flag for android lint

rules/impl.bzl Outdated
outputs.append(html_output)

label = ctx.attr.android_home.label
if ctx.attr.android_home:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look like its intended to be in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh good catch

rules/impl.bzl Outdated
@@ -63,7 +64,7 @@ def _run_android_lint(
android_lint_skip_bytecode_verifier: Disables bytecode verification
"""
inputs = []
outputs = [output]
outputs = [output, html_output]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to support customizing the output format so that the user can pick which formats they want. Having to write them all out all the time also seems inefficient.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename --output to --xml-output then to be explicit?

I'm thinking that we should flag it in the entrypoint .bzl:

html_output = True
xml_output = True

@EdbertChan
Copy link
Contributor Author

These is a large refactor that involves renaming "output" to "xml_output" and "html_output" to distinguish the two.

To invoke the output distinction, the api would look like

android_lint_test(
    output_formats = ["xml", "html"],
)

@EdbertChan EdbertChan marked this pull request as ready for review April 25, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants