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

Rule : Dimens values shouldn't be hardcoded in xml attributes #5

Open
jd-alexander opened this issue Jun 17, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@jd-alexander
Copy link
Contributor

Expected behavior

Dimension values shouldn't be hardcoded in XML files. They should be placed in the dimens resources (dimens.xml).

Actual behavior

You can place the dimens values within XML files and there are no issues. The build still passes locally and on CI.

Steps to reproduce the behavior

  1. Add a raw dimens value to an XML attribute.
  2. Notice that when you run the lintCheck it doesn't fail.
@jd-alexander jd-alexander added the enhancement New feature or request label Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant