diff options
| author | Geremia Taglialatela <[email protected]> | 2023-05-25 14:17:12 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-25 14:17:12 +0200 |
| commit | 2a70161abe24ae130041aaca3eec79e63d08a5f5 (patch) | |
| tree | 5dd5cbdfda525eaaaf857513dafc322096eeaf47 /.rubocop_todo.yml | |
| parent | 14b7da239879d5299775c48666b43f3016add8ec (diff) | |
| download | caxlsx-2a70161abe24ae130041aaca3eec79e63d08a5f5.tar.gz caxlsx-2a70161abe24ae130041aaca3eec79e63d08a5f5.zip | |
Fix StringConcatenation offenses (non-production)
Prefer interpolation over concatenation
```
Comparison ("String#{'String'}" vs 'String' + 'String'):
interpolation: 11821321.0 i/s
concatenation: 8849491.7 i/s - 1.34x (± 0.00) slower
```
Diffstat (limited to '.rubocop_todo.yml')
| -rw-r--r-- | .rubocop_todo.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a0260f2e..82fc6a22 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -423,7 +423,14 @@ Style/StringChars: # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: Mode. Style/StringConcatenation: - Enabled: false + Exclude: + - 'lib/axlsx/drawing/area_series.rb' + - 'lib/axlsx/drawing/line_series.rb' + - 'lib/axlsx/drawing/pie_series.rb' + - 'lib/axlsx/drawing/scatter_series.rb' + - 'lib/axlsx/stylesheet/color.rb' + - 'lib/axlsx/util/constants.rb' + - 'lib/axlsx/workbook/worksheet/worksheet.rb' # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. |
