You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit uses RuboCop Performance for development and
fixes the following offenses.
```console
% bundle exec rake
bundle exec rubocop
Inspecting 116 files
...C................................................................................................................
Offenses:
tasks/cops_documentation.rake:60:15: C: Performance/UnfreezeString: Use
unary plus to get an unfrozen string literal.
content = "\n".dup
^^^^^^^^
tasks/cops_documentation.rake:67:15: C: Performance/UnfreezeString: Use
unary plus to get an unfrozen string literal.
content = "\n".dup
^^^^^^^^
tasks/cops_documentation.rake:74:15: C: Performance/UnfreezeString: Use
unary plus to get an unfrozen string literal.
content = "#### #{title}\n".dup
^^^^^^^^^^^^^^^^^^^^^
tasks/cops_documentation.rake:80:15: C: Performance/UnfreezeString: Use
unary plus to get an unfrozen string literal.
content = "```ruby\n".dup
^^^^^^^^^^^^^^^
tasks/cops_documentation.rake:171:15: C: Performance/UnfreezeString: Use
unary plus to get an unfrozen string literal.
content = "# #{department}\n".dup
^^^^^^^^^^^^^^^^^^^^^^^
tasks/cops_documentation.rake:209:15: C: Performance/UnfreezeString: Use
unary plus to get an unfrozen string literal.
content = "#### Department [#{type_title}](#{filename})\n\n".dup
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tasks/cops_documentation.rake:222:15: C: Performance/UnfreezeString: Use
unary plus to get an unfrozen string literal.
content = "<!-- START_COP_LIST -->\n".dup
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116 files inspected, 7 offenses detected
rake aborted!
```
0 commit comments