Skip to content

Rule : Color values shouldn't be hardcoded in xml attributes #4

@jd-alexander

Description

@jd-alexander

Expected behavior

Color values shouldn't be hardcoded in XML files. They should be placed in the color resources (colors.xml).

Actual behavior

You can place the color 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 color 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