Project

General

Profile

Patch #32530 » update-rubocop.patch

Go MAEDA, 2020-10-20 17:57

View differences:

.rubocop.yml
1 1
inherit_from: .rubocop_todo.yml
2 2

  
3 3
AllCops:
4
  TargetRubyVersion: 2.3
4
  TargetRubyVersion: 2.4
5 5
  TargetRailsVersion: 5.2
6 6

  
7
  NewCops: enable
8

  
7 9
  Exclude:
8 10
    - '**/vendor/**/*'
9 11
    - '**/tmp/**/*'
......
33 35
Layout/EmptyLineBetweenDefs:
34 36
  AllowAdjacentOneLineDefs: true
35 37

  
38
Layout/SpaceAroundEqualsInParameterDefault:
39
  Enabled: false
40

  
36 41
Layout/SpaceBeforeBlockBraces:
37 42
  # "space" is used more than "no_space".
38 43
  # But "no_space" is more natural in one liner.
39 44
  #   str = path.to_s.split(%r{[/\\]}).select{|p| !p.blank?}.join("/")
40 45
  Enabled: false
41 46

  
42
# You can see results by "rubocop --only Layout/SpaceInsideBlockBraces"
43 47
Layout/SpaceInsideBlockBraces:
44
  EnforcedStyle: no_space
45
  SpaceBeforeBlockParameters: false
48
  Enabled: false
46 49

  
47
# You can see results by "rubocop --only Layout/SpaceInsideHashLiteralBraces"
48 50
Layout/SpaceInsideHashLiteralBraces:
49
  EnforcedStyle: no_space
51
  Enabled: false
50 52

  
51 53
Lint/RaiseException:
52 54
  Enabled: true
......
128 130

  
129 131
Style/TrailingCommaInHashLiteral:
130 132
  Enabled: false
133

  
134
Style/RaiseArgs:
135
  Enabled: false
.rubocop_todo.yml
1 1
# This configuration was generated by
2 2
# `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
3
# using RuboCop version 0.81.0.
3
# using RuboCop version 0.93.1.
4 4
# The point is for the user to remove these configuration records
5 5
# one by one as the offenses are removed from the code base.
6 6
# Note that changes in the inspected code, or installation of new
......
16 16
    - 'test/integration/api_test/projects_test.rb'
17 17
    - 'test/integration/api_test/wiki_pages_test.rb'
18 18

  
19
# Cop supports --auto-correct.
20
# Configuration parameters: EnforcedStyleAlignWith, Severity.
21
# SupportedStylesAlignWith: start_of_line, begin
22
Layout/BeginEndAlignment:
23
  Exclude:
24
    - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
25

  
19 26
# Cop supports --auto-correct.
20 27
Layout/ClosingParenthesisIndentation:
21
  Enabled: false
28
  Exclude:
29
    - 'app/helpers/issues_helper.rb'
30
    - 'app/models/repository/cvs.rb'
31
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
32
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
33
    - 'test/functional/repositories_cvs_controller_test.rb'
34
    - 'test/helpers/activities_helper_test.rb'
35
    - 'test/integration/repositories_git_test.rb'
36
    - 'test/unit/mail_handler_test.rb'
37
    - 'test/unit/query_test.rb'
38
    - 'test/unit/repository_git_test.rb'
39
    - 'test/unit/repository_mercurial_test.rb'
22 40

  
23 41
# Cop supports --auto-correct.
24 42
# Configuration parameters: EnforcedStyle.
......
35 53
  Exclude:
36 54
    - 'config/routes.rb'
37 55
    - 'db/migrate/001_setup.rb'
38
    - 'lib/redmine/sudo_mode.rb'
39 56

  
40 57
# Cop supports --auto-correct.
41 58
# Configuration parameters: EnforcedStyle.
......
44 61
  Exclude:
45 62
    - 'config/initializers/10-patches.rb'
46 63

  
64
# Cop supports --auto-correct.
65
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
66
# AllowedMethods: alias_method, public, protected, private
67
Layout/EmptyLinesAroundAttributeAccessor:
68
  Exclude:
69
    - 'app/models/issue.rb'
70
    - 'app/models/query.rb'
71
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
72
    - 'lib/redmine/sudo_mode.rb'
73
    - 'test/unit/lib/redmine/safe_attributes_test.rb'
74

  
47 75
# Cop supports --auto-correct.
48 76
# Configuration parameters: EnforcedStyle.
49 77
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
......
55 83
    - 'db/migrate/20131215104612_store_relation_type_in_journal_details.rb'
56 84
    - 'db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb'
57 85
    - 'lib/redmine/notifiable.rb'
58
    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
59 86
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
60 87
    - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
61 88
    - 'lib/redmine/wiki_formatting/html_parser.rb'
......
65 92
    - 'test/integration/lib/redmine/themes_test.rb'
66 93
    - 'test/integration/routing/activities_test.rb'
67 94
    - 'test/integration/routing/repositories_test.rb'
68
    - 'test/unit/lib/redmine/ciphering_test.rb'
69 95
    - 'test/unit/lib/redmine/field_format/link_format_test.rb'
70 96

  
71 97
# Cop supports --auto-correct.
......
143 169
# Cop supports --auto-correct.
144 170
# Configuration parameters: Width, IgnoredPatterns.
145 171
Layout/IndentationWidth:
146
  Enabled: false
172
  Exclude:
173
    - 'app/models/attachment.rb'
174
    - 'app/models/journal.rb'
175
    - 'db/migrate/20110902000000_create_changeset_parents.rb'
176
    - 'db/migrate/20111201201315_add_unique_index_to_issue_relations.rb'
177
    - 'db/migrate/20120115143126_set_default_repositories.rb'
178
    - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
179
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
180
    - 'lib/redmine/scm/adapters/git_adapter.rb'
181
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
182
    - 'test/functional/trackers_controller_test.rb'
183
    - 'test/helpers/application_helper_test.rb'
184
    - 'test/helpers/avatars_helper_test.rb'
185
    - 'test/integration/api_test/issues_test.rb'
186
    - 'test/mocks/open_id_authentication_mock.rb'
187
    - 'test/unit/lib/redmine/menu_manager/menu_helper_test.rb'
188
    - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
189
    - 'test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb'
190
    - 'test/unit/mail_handler_test.rb'
191
    - 'test/unit/repository_git_test.rb'
192
    - 'test/unit/repository_mercurial_test.rb'
147 193

  
148 194
# Cop supports --auto-correct.
149 195
# Configuration parameters: EnforcedStyle.
......
157 203
    - 'test/functional/documents_controller_test.rb'
158 204
    - 'test/functional/imports_controller_test.rb'
159 205
    - 'test/functional/issues_controller_transaction_test.rb'
160
    - 'test/functional/my_controller_test.rb'
161 206
    - 'test/functional/queries_controller_test.rb'
162 207
    - 'test/functional/timelog_controller_test.rb'
163 208
    - 'test/helpers/application_helper_test.rb'
......
189 234
Layout/RescueEnsureAlignment:
190 235
  Exclude:
191 236
    - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
237
    - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
192 238

  
193 239
# Cop supports --auto-correct.
194 240
Layout/SpaceAfterComma:
......
215 261
    - 'test/unit/role_test.rb'
216 262
    - 'test/unit/user_test.rb'
217 263

  
218
# Cop supports --auto-correct.
219
# Configuration parameters: EnforcedStyle.
220
# SupportedStyles: space, no_space
221
Layout/SpaceAroundEqualsInParameterDefault:
222
  Enabled: false
223

  
224 264
# Cop supports --auto-correct.
225 265
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
226 266
# SupportedStylesForExponentOperator: space, no_space
......
256 296
    - 'test/unit/mailer_test.rb'
257 297
    - 'test/unit/search_test.rb'
258 298

  
259
# Cop supports --auto-correct.
260
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
261
# SupportedStyles: space, no_space
262
# SupportedStylesForEmptyBraces: space, no_space
263
Layout/SpaceInsideBlockBraces:
264
  Enabled: false
265

  
266
# Cop supports --auto-correct.
267
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
268
# SupportedStyles: space, no_space, compact
269
# SupportedStylesForEmptyBraces: space, no_space
270
Layout/SpaceInsideHashLiteralBraces:
271
  Enabled: false
272

  
273 299
# Cop supports --auto-correct.
274 300
# Configuration parameters: EnforcedStyle.
275 301
# SupportedStyles: space, no_space
......
278 304
    - 'app/helpers/issues_helper.rb'
279 305
    - 'app/models/auth_source_ldap.rb'
280 306
    - 'app/models/repository/cvs.rb'
281
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
282 307
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
283
    - 'lib/redmine/scm/adapters/git_adapter.rb'
284 308
    - 'lib/redmine/sudo_mode.rb'
285 309
    - 'lib/redmine/wiki_formatting/textile/formatter.rb'
286 310
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
......
303 327
Lint/AmbiguousBlockAssociation:
304 328
  Enabled: false
305 329

  
330
# Cop supports --auto-correct.
306 331
Lint/AmbiguousOperator:
307 332
  Exclude:
308 333
    - 'app/controllers/application_controller.rb'
......
310 335
    - 'test/unit/custom_field_test.rb'
311 336
    - 'test/unit/member_test.rb'
312 337

  
338
# Cop supports --auto-correct.
313 339
Lint/AmbiguousRegexpLiteral:
314 340
  Enabled: false
315 341

  
......
332 358
    - 'test/unit/attachment_test.rb'
333 359
    - 'test/unit/issue_import_test.rb'
334 360

  
335
Lint/EmptyWhen:
361
Lint/FloatComparison:
336 362
  Exclude:
337
    - 'app/controllers/issues_controller.rb'
338
    - 'app/controllers/wiki_controller.rb'
363
    - 'app/models/time_entry.rb'
364
    - 'test/system/timelog_test.rb'
339 365

  
366
# Cop supports --auto-correct.
340 367
Lint/InterpolationCheck:
341 368
  Exclude:
342 369
    - 'app/models/user.rb'
343 370

  
371
# Cop supports --auto-correct.
344 372
Lint/Loop:
345 373
  Exclude:
346 374
    - 'lib/redmine/helpers/gantt.rb'
347 375

  
376
Lint/MissingSuper:
377
  Exclude:
378
    - 'app/models/query.rb'
379
    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
380
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
381
    - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
382
    - 'lib/redmine/syntax_highlighting.rb'
383
    - 'lib/redmine/twofa/base.rb'
384
    - 'lib/redmine/unified_diff.rb'
385
    - 'lib/redmine/views/builders/structure.rb'
386
    - 'lib/redmine/wiki_formatting/html_parser.rb'
387

  
388
Lint/MixedRegexpCaptureTypes:
389
  Exclude:
390
    - 'app/helpers/application_helper.rb'
391

  
348 392
# Cop supports --auto-correct.
349 393
Lint/NonDeterministicRequireOrder:
350 394
  Exclude:
351 395
    - 'lib/redmine/core_ext.rb'
352 396

  
397
# Cop supports --auto-correct.
353 398
Lint/ParenthesesAsGroupedExpression:
354 399
  Exclude:
355 400
    - 'test/functional/my_controller_test.rb'
......
383 428
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
384 429
    - 'lib/redmine/scm/adapters/subversion_adapter.rb'
385 430

  
386
# Cop supports --auto-correct.
387
Lint/UnifiedInteger:
388
  Exclude:
389
    - 'test/unit/query_test.rb'
390

  
391 431
# Cop supports --auto-correct.
392 432
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
393 433
Lint/UnusedBlockArgument:
......
398 438
Lint/UnusedMethodArgument:
399 439
  Enabled: false
400 440

  
441
# Cop supports --auto-correct.
442
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
443
Lint/UselessAccessModifier:
444
  Exclude:
445
    - 'test/functional/repositories_git_controller_test.rb'
446

  
401 447
Lint/UselessAssignment:
402 448
  Enabled: false
403 449

  
......
416 462
    - 'app/models/time_entry_activity.rb'
417 463
    - 'lib/redmine/helpers/gantt.rb'
418 464

  
419
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
465
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms.
420 466
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
421 467
Naming/FileName:
422 468
  Exclude:
......
450 496
    - 'test/helpers/application_helper_test.rb'
451 497

  
452 498
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
453
# AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
499
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
454 500
Naming/MethodParameterName:
455 501
  Enabled: false
456 502

  
......
508 554
    - 'test/unit/issue_import_test.rb'
509 555
    - 'test/unit/time_entry_import_test.rb'
510 556

  
557
# Cop supports --auto-correct.
558
Performance/RegexpMatch:
559
  Exclude:
560
    - 'app/models/issue_import.rb'
561
    - 'app/models/setting.rb'
562
    - 'db/migrate/20120422150750_change_repositories_to_full_sti.rb'
563
    - 'db/migrate/20180923082945_change_sqlite_booleans_to_0_and_1.rb'
564
    - 'db/migrate/20180923091603_change_sqlite_booleans_default.rb'
565
    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
566
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
567
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
568

  
511 569
# Cop supports --auto-correct.
512 570
Performance/StringReplacement:
513 571
  Exclude:
......
644 702
# Include: app/models/**/*.rb
645 703
Rails/FindBy:
646 704
  Exclude:
647
    - 'app/models/attachment.rb'
648 705
    - 'app/models/enumeration.rb'
649 706
    - 'app/models/issue_import.rb'
650 707
    - 'app/models/repository.rb'
......
858 915
    - 'app/models/setting.rb'
859 916
    - 'lib/redmine/configuration.rb'
860 917

  
918
# Cop supports --auto-correct.
919
# Configuration parameters: EnforcedStyle.
920
# SupportedStyles: separated, grouped
921
Style/AccessorGrouping:
922
  Exclude:
923
    - 'app/models/user.rb'
924
    - 'lib/redmine/helpers/gantt.rb'
925
    - 'lib/redmine/unified_diff.rb'
926

  
861 927
# Cop supports --auto-correct.
862 928
# Configuration parameters: EnforcedStyle.
863 929
# SupportedStyles: prefer_alias, prefer_alias_method
......
887 953
Style/AndOr:
888 954
  Exclude:
889 955
    - 'app/controllers/account_controller.rb'
890
    - 'app/controllers/application_controller.rb'
891 956
    - 'app/controllers/calendars_controller.rb'
892 957
    - 'app/helpers/repositories_helper.rb'
893 958
    - 'app/models/query.rb'
......
925 990
  Enabled: false
926 991

  
927 992
# Cop supports --auto-correct.
928
# Configuration parameters: AutoCorrect, EnforcedStyle.
993
Style/CaseLikeIf:
994
  Exclude:
995
    - 'app/controllers/wiki_controller.rb'
996
    - 'app/helpers/members_helper.rb'
997
    - 'app/models/issue_query.rb'
998
    - 'app/models/journal.rb'
999
    - 'app/models/repository/cvs.rb'
1000
    - 'app/models/setting.rb'
1001
    - 'app/models/time_entry.rb'
1002
    - 'app/models/user.rb'
1003
    - 'app/models/workflow_transition.rb'
1004
    - 'lib/redmine/access_control.rb'
1005
    - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
1006
    - 'lib/redmine/field_format.rb'
1007
    - 'lib/redmine/i18n.rb'
1008
    - 'lib/redmine/plugin.rb'
1009
    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
1010
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
1011
    - 'lib/redmine/scm/adapters/git_adapter.rb'
1012
    - 'lib/redmine/unified_diff.rb'
1013

  
1014
# Cop supports --auto-correct.
1015
# Configuration parameters: EnforcedStyle.
929 1016
# SupportedStyles: nested, compact
930 1017
Style/ClassAndModuleChildren:
931 1018
  Enabled: false
932 1019

  
1020
# Cop supports --auto-correct.
1021
# Configuration parameters: IgnoredMethods.
1022
# IgnoredMethods: ==, equal?, eql?
1023
Style/ClassEqualityComparison:
1024
  Exclude:
1025
    - 'app/models/principal.rb'
1026

  
933 1027
# Cop supports --auto-correct.
934 1028
Style/ClassMethods:
935 1029
  Exclude:
......
970 1064
    - 'test/unit/default_data_test.rb'
971 1065
    - 'test/unit/lib/redmine/export/pdf_test.rb'
972 1066

  
1067
Style/CombinableLoops:
1068
  Exclude:
1069
    - 'app/models/wiki_page.rb'
1070
    - 'lib/redmine/default_data/loader.rb'
1071

  
973 1072
# Cop supports --auto-correct.
974 1073
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
975 1074
# SupportedStyles: assign_to_condition, assign_inside_condition
......
979 1078
Style/Documentation:
980 1079
  Enabled: false
981 1080

  
1081
# Configuration parameters: EnforcedStyle.
1082
# SupportedStyles: allowed_in_returns, forbidden
982 1083
Style/DoubleNegation:
983 1084
  Exclude:
984
    - 'app/controllers/application_controller.rb'
985
    - 'app/helpers/application_helper.rb'
986
    - 'app/models/attachment.rb'
987 1085
    - 'app/models/issue_import.rb'
988 1086
    - 'app/models/mailer.rb'
989 1087
    - 'app/models/query.rb'
......
1041 1139
Style/ExpandPathArguments:
1042 1140
  Enabled: false
1043 1141

  
1142
# Cop supports --auto-correct.
1143
Style/ExplicitBlockArgument:
1144
  Exclude:
1145
    - 'app/models/board.rb'
1146
    - 'lib/redmine/activity/fetcher.rb'
1147
    - 'lib/redmine/menu_manager.rb'
1148
    - 'lib/redmine/plugin.rb'
1149
    - 'lib/redmine/scm/adapters/subversion_adapter.rb'
1150
    - 'test/test_helper.rb'
1151

  
1044 1152
# Cop supports --auto-correct.
1045 1153
# Configuration parameters: EnforcedStyle.
1046 1154
# SupportedStyles: format, sprintf, percent
......
1063 1171
Style/GuardClause:
1064 1172
  Enabled: false
1065 1173

  
1174
# Cop supports --auto-correct.
1175
# Configuration parameters: EnforcedStyle.
1176
# SupportedStyles: braces, no_braces
1177
Style/HashAsLastArrayItem:
1178
  Exclude:
1179
    - 'app/controllers/enumerations_controller.rb'
1180
    - 'app/models/board.rb'
1181

  
1066 1182
# Cop supports --auto-correct.
1067 1183
Style/HashEachMethods:
1068 1184
  Exclude:
......
1098 1214
Style/IfUnlessModifier:
1099 1215
  Enabled: false
1100 1216

  
1217
# Cop supports --auto-correct.
1101 1218
Style/IfUnlessModifierOfIfUnless:
1102 1219
  Exclude:
1103 1220
    - 'app/models/attachment.rb'
......
1144 1261
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
1145 1262
    - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
1146 1263

  
1147
Style/MethodMissingSuper:
1148
  Exclude:
1149
    - 'lib/redmine/views/builders/structure.rb'
1150

  
1151 1264
Style/MissingRespondToMissing:
1152 1265
  Exclude:
1153 1266
    - 'lib/redmine/views/builders/structure.rb'
......
1175 1288
    - 'lib/redmine/wiki_formatting.rb'
1176 1289
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
1177 1290

  
1291
# Cop supports --auto-correct.
1178 1292
Style/MultilineTernaryOperator:
1179 1293
  Exclude:
1180 1294
    - 'lib/redmine/ciphering.rb'
......
1223 1337
  Exclude:
1224 1338
    - 'lib/redmine/views/labelled_form_builder.rb'
1225 1339

  
1340
# Cop supports --auto-correct.
1226 1341
Style/NestedTernaryOperator:
1227 1342
  Exclude:
1228 1343
    - 'app/helpers/queries_helper.rb'
......
1254 1369
  MinDigits: 9
1255 1370

  
1256 1371
# Cop supports --auto-correct.
1257
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
1372
# Configuration parameters: EnforcedStyle, IgnoredMethods.
1258 1373
# SupportedStyles: predicate, comparison
1259 1374
Style/NumericPredicate:
1260 1375
  Enabled: false
1261 1376

  
1377
# Configuration parameters: AllowedMethods.
1378
# AllowedMethods: respond_to_missing?
1379
Style/OptionalBooleanParameter:
1380
  Enabled: false
1381

  
1262 1382
# Cop supports --auto-correct.
1263 1383
Style/OrAssignment:
1264 1384
  Exclude:
......
1299 1419
  Enabled: false
1300 1420

  
1301 1421
# Cop supports --auto-correct.
1302
# Configuration parameters: EnforcedStyle.
1303
# SupportedStyles: compact, exploded
1304
Style/RaiseArgs:
1422
Style/RedundantAssignment:
1305 1423
  Exclude:
1306
    - 'app/models/auth_source_ldap.rb'
1307
    - 'app/models/issue_query.rb'
1308
    - 'app/models/mailer.rb'
1424
    - 'app/models/mail_handler.rb'
1309 1425
    - 'app/models/query.rb'
1310
    - 'app/models/tracker.rb'
1311
    - 'app/models/user.rb'
1312
    - 'app/models/workflow_rule.rb'
1313
    - 'lib/redmine/access_control.rb'
1314
    - 'lib/redmine/default_data/loader.rb'
1315
    - 'lib/redmine/plugin.rb'
1316
    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
1426
    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
1317 1427
    - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
1318
    - 'lib/redmine/sort_criteria.rb'
1428
    - 'lib/redmine/wiki_formatting.rb'
1429
    - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
1430

  
1431
# Cop supports --auto-correct.
1432
Style/RedundantCapitalW:
1433
  Exclude:
1434
    - 'test/unit/query_test.rb'
1319 1435

  
1320 1436
# Cop supports --auto-correct.
1321 1437
Style/RedundantCondition:
......
1352 1468
    - 'app/controllers/search_controller.rb'
1353 1469
    - 'app/models/enumeration.rb'
1354 1470
    - 'app/models/principal.rb'
1355
    - 'app/models/query.rb'
1356 1471
    - 'app/models/repository/cvs.rb'
1357
    - 'app/models/version.rb'
1358 1472
    - 'lib/redmine/field_format.rb'
1359 1473
    - 'lib/redmine/platform.rb'
1360 1474
    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
1361 1475
    - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
1362
    - 'test/unit/attachment_test.rb'
1363
    - 'test/unit/lib/redmine/export/pdf_test.rb'
1364 1476
    - 'test/unit/project_test.rb'
1365 1477
    - 'test/unit/user_test.rb'
1366 1478
    - 'test/unit/version_test.rb'
1367 1479

  
1480
# Cop supports --auto-correct.
1481
Style/RedundantRegexpCharacterClass:
1482
  Exclude:
1483
    - 'app/helpers/application_helper.rb'
1484

  
1485
# Cop supports --auto-correct.
1486
Style/RedundantRegexpEscape:
1487
  Enabled: false
1488

  
1368 1489
# Cop supports --auto-correct.
1369 1490
# Configuration parameters: AllowMultipleReturnValues.
1370 1491
Style/RedundantReturn:
......
1374 1495
Style/RedundantSelf:
1375 1496
  Enabled: false
1376 1497

  
1498
# Cop supports --auto-correct.
1499
Style/RedundantSelfAssignment:
1500
  Exclude:
1501
    - 'lib/redmine/menu_manager.rb'
1502

  
1377 1503
# Cop supports --auto-correct.
1378 1504
Style/RedundantSort:
1379 1505
  Exclude:
......
1441 1567
    - 'app/models/issue_query.rb'
1442 1568
    - 'app/models/journal.rb'
1443 1569
    - 'app/models/mail_handler.rb'
1444
    - 'app/models/project.rb'
1445 1570
    - 'app/models/query.rb'
1446
    - 'app/models/tracker.rb'
1447 1571
    - 'lib/redmine/configuration.rb'
1448 1572
    - 'lib/redmine/i18n.rb'
1449 1573
    - 'lib/redmine/scm/adapters/git_adapter.rb'
......
1455 1579
Style/SingleLineMethods:
1456 1580
  Enabled: false
1457 1581

  
1582
# Configuration parameters: AllowModifier.
1583
Style/SoleNestedConditional:
1584
  Exclude:
1585
    - 'app/controllers/application_controller.rb'
1586
    - 'app/controllers/journals_controller.rb'
1587
    - 'app/controllers/repositories_controller.rb'
1588
    - 'app/controllers/wiki_controller.rb'
1589
    - 'app/models/board.rb'
1590
    - 'app/models/changeset.rb'
1591
    - 'app/models/issue.rb'
1592
    - 'app/models/issue_import.rb'
1593
    - 'app/models/issue_relation.rb'
1594
    - 'app/models/mail_handler.rb'
1595
    - 'app/models/principal.rb'
1596
    - 'app/models/project.rb'
1597
    - 'app/models/query.rb'
1598
    - 'app/models/time_entry.rb'
1599
    - 'app/models/token.rb'
1600
    - 'app/models/user_import.rb'
1601
    - 'app/models/version.rb'
1602
    - 'app/models/watcher.rb'
1603
    - 'app/models/wiki_page.rb'
1604
    - 'lib/redmine/core_ext/active_record.rb'
1605

  
1458 1606
# Cop supports --auto-correct.
1459 1607
# Configuration parameters: .
1460 1608
# SupportedStyles: use_perl_names, use_english_names
......
1467 1615
    - 'config/environment.rb'
1468 1616
    - 'config/initializers/10-patches.rb'
1469 1617

  
1618
# Cop supports --auto-correct.
1619
Style/StringConcatenation:
1620
  Enabled: false
1621

  
1470 1622
# Cop supports --auto-correct.
1471 1623
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
1472 1624
# SupportedStyles: single_quotes, double_quotes
......
1485 1637
    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
1486 1638
    - 'test/unit/member_test.rb'
1487 1639

  
1640
# Cop supports --auto-correct.
1488 1641
Style/StructInheritance:
1489 1642
  Exclude:
1490 1643
    - 'lib/redmine/notifiable.rb'
Gemfile
92 92
  gem 'capybara', '~> 3.31.0'
93 93
  gem "selenium-webdriver"
94 94
  # RuboCop
95
  gem 'rubocop', '~> 0.81.0'
95
  gem 'rubocop', '~> 0.93.0'
96 96
  gem 'rubocop-performance', '~> 1.5.0'
97 97
  gem 'rubocop-rails', '~> 2.5.0'
98 98
end
(3-3/3)