StencilSwiftKit
StencilSwiftKit copied to clipboard
Change our filters to accept a `mode` parameter instead of a boolean.
Some of our current filters accept a boolean parameter, which isn't always clear "what" that parameter is for:
- camelToSnakeCase: lowercase the components or not
- snakeToCamelCase: trim empty components
For some of our other filters, we already use a "mode" string parameter, that says a bit more about what it does:
- removeNewlines:
allorleading - swiftIdentifier:
normalorpretty
Suggestions for modes:
- camelToSnakeCase:
lowercaseornone - snakeToCamelCase:
trim-emptyornone