Skip to content

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

@jd-alexander

Description

@jd-alexander

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions