Skip to content

Commit

Permalink
master: Adjusted the IdNaming rule to include specifics for CheckBox …
Browse files Browse the repository at this point in the history
…and Switch
  • Loading branch information
alistairsykes committed Nov 5, 2019
1 parent f098bc3 commit 396f02c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ class IdNaming : AttrRule(
if (words.contains("Button")) {
return attrId == "button" || attrId.startsWith("button_")
}
if (words.contains("CheckBox")) {
return attrId == "check_box" || attrId.startsWith("check_box_")
}
if (words.contains("Switch")) {
return attrId == "switch" || attrId.startsWith("switch_")
}
if (words.contains("Card")) {
return attrId == "card" || attrId.startsWith("card_")
}
Expand Down

0 comments on commit 396f02c

Please sign in to comment.