CppCXY / EmmyLuaCodeStyle

fast, powerful, and feature-rich Lua formatting and checking tool.
MIT License
140 stars 27 forks source link

snake_case doesn't support numbers in names #113

Closed GiuseppeIII closed 1 year ago

GiuseppeIII commented 1 year ago

Snake_case doesn't seem to support numbers in names. See below for example:

Screenshot_1
CppCXY commented 1 year ago

because I think he should be team1_id, or you can add it to the ignore list, or you can use regular expressions

GiuseppeIII commented 1 year ago

👍 For anyone else viewing this who is okay with numbers in their snake_case this pattern should work:

{
      "type" : "pattern",
      "param": "^(?:[a-z0-9]+_)*[a-z0-9]+$"
}