use-track-instead-of-map
Use the word track instead of map
Rule details
This rule prohibits the utilization of the term "map" and recommends employing the term "track" instead in strings.
Settings
onlyTranslatedText
search only in translated texts (_("Text")
). Defaulttrue
.
Example of incorrect code for this rule:
maniascript
// { "onlyTranslatedText" = true }
#Const A _("This is a map")
#Const B _("These are maps")
#Const C "This is a map"
#Const D "These are maps"
// { "onlyTranslatedText" = false }
#Const A _("This is a map")
#Const B _("These are maps")
#Const C "This is a map"
#Const D "These are maps"
Example of correct code for this rule:
maniascript
// { "onlyTranslatedText" = true }
#Const A _("This is a track")
#Const B _("These are tracks")
// { "onlyTranslatedText" = false }
#Const A _("This is a track")
#Const B _("These are tracks")
#Const C "This is a track"
#Const D "These are tracks"