mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-09-11 04:45:28 +03:00
Basic aliases (e.g. `admin?`/`be_admin`) can be represented easily with simple wildcards, but more complex transformations require a different mechanism. Instead of using `%s` to represent strings that can be replaced 1:1, this introduces a syntax inspired by https://github.com/tpope/vim-projectionist, as such: - name: Rails aliases: - from: "*Validator" to: "{snakecase}" This would find `AbsoluteUriValidator` and also match `absolute_uri`, which would be found if the validation was in use. This currently supports the `camelcase` and `snakecase` transformations, as well as no transformation. Closes #18 |
||
---|---|---|
.. | ||
Cache | ||
Grouping | ||
TermSearch | ||
AliasesSpec.hs | ||
LikelihoodCalculatorSpec.hs | ||
ParserSpec.hs | ||
ProjectionSpec.hs | ||
ResponseFilterSpec.hs | ||
TypesSpec.hs | ||
UtilSpec.hs |