Skip to content
代码片段 群组 项目
  • Peter Leitzen's avatar
    89d2cbc1
    Add new RuboCop Gettext/StaticIdentifier · 89d2cbc1
    Peter Leitzen 创作于
    This cop ensures that only static strings are passed to gettext
    translation methods `_()`, `s_()`, `n_()`, `N_()`.
    
    Any kind of interpolation, formatting, or concatenation is disallowed.
    
    The following definitions are allowed:
    * Local variables
    * Method calls which are not mentioned above
    * Constants
    
    Generate TODOs for pending offenses in Ruby code.
    未验证
    89d2cbc1
    历史
    Add new RuboCop Gettext/StaticIdentifier
    Peter Leitzen 创作于
    This cop ensures that only static strings are passed to gettext
    translation methods `_()`, `s_()`, `n_()`, `N_()`.
    
    Any kind of interpolation, formatting, or concatenation is disallowed.
    
    The following definitions are allowed:
    * Local variables
    * Method calls which are not mentioned above
    * Constants
    
    Generate TODOs for pending offenses in Ruby code.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。