kh-bd / interp4j-intellij-plugin

Intellij plugin to support interp4j library
3 stars 1 forks source link

`String.format` inspection #17

Closed KhadanovichSergey closed 1 year ago

KhadanovichSergey commented 1 year ago

Implement simple inspection to check whether String.format expression can be converted to s() expression.

  1. Support only full form: String.format(str, ....), String.format(locale, str, ....). If possible, support statically imported form format(str, ...), format(locale, str, ....)
  2. format string can be only string literal value. Other variations can be supported later. For example, static final constants
  3. Do NOT implement quick fix to replace expression onto corresponding s method invocation. Might be imlemented later.