Skip to main content

Module case

Module case 

Source
Expand description

Case-convention detectors used by filename_case and path_case.

Each detector checks whether a string already conforms to the named convention. Semantics follow ls-lint’s well-established interpretations where they exist (see https://ls-lint.org/2.3/configuration/rules.html):

  • lowercase / uppercase — every letter is lower/upper; non-letters are permitted (so hello_world is lowercase because every letter is).
  • flat — lowercase ASCII letters and digits only, no separators.
  • snake, kebab, screaming-snake — the obvious ASCII conventions.
  • camel — starts with an ASCII lowercase letter; all remaining characters are ASCII alphanumeric. Consecutive uppercase letters are permitted so common acronym styles like ssrVFor and getXMLParser match. Use filename_regex if you need stricter semantics.
  • pascal — same rule as camel, but the first character is ASCII uppercase.

Enums§

CaseConvention