Commit Graph

377 Commits

Author SHA1 Message Date
Go MAEDA
024f2aef6c Code cleanup: RuboCop: Fix Style/IdenticalConditionalBranches in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18380 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-20 03:27:15 +00:00
Go MAEDA
a1d454a1b1 Add rubocop-performance (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18378 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-18 14:40:47 +00:00
Go MAEDA
0d4ed12388 Code cleanup: RuboCop: Rails/ActiveRecordAliases
update_attributes is deprecated in Rails 6.0 and will be removed in Rails 6.1 (#29914).


git-svn-id: http://svn.redmine.org/redmine/trunk@18375 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-17 08:14:36 +00:00
Go MAEDA
76788318a7 Update RuboCop to 0.74.0 (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18371 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-15 00:53:19 +00:00
Go MAEDA
d2e10064a4 RuboCop: Ignore Style/FormatString and Style/FormatStringToken in lib/redmine/helpers/gantt.rb (#30492)
git-svn-id: http://svn.redmine.org/redmine/trunk@18368 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-14 04:28:05 +00:00
Go MAEDA
31e8e736f3 Code cleanup: RuboCop: Layout/TrailingBlankLines
git-svn-id: http://svn.redmine.org/redmine/trunk@18367 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-14 03:02:20 +00:00
Toshi MARUYAMA
118fff34aa rubocop: fix Style/YodaCondition of lib/redmine/scm/adapters/abstract_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18351 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 17:05:24 +00:00
Toshi MARUYAMA
44cbd0eaa9 rubocop: fix Layout/DefEndAlignment of test/functional/documents_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18350 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 16:06:49 +00:00
Toshi MARUYAMA
6d22d66b9d rubocop: fix Layout/IndentationConsistency of test/unit/repository_cvs_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18349 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 16:06:38 +00:00
Toshi MARUYAMA
12c3df4bd3 rubocop: fix Layout/DefEndAlignment of test/unit/repository_cvs_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18348 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 16:06:26 +00:00
Toshi MARUYAMA
12f4721f7a rubocop: remove app/helpers/calendars_helper.rb from Style/UnneededInterpolation fixed in r18346
git-svn-id: http://svn.redmine.org/redmine/trunk@18347 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 14:11:54 +00:00
Toshi MARUYAMA
10ae000021 rubocop: fix Layout/CommentIndentation of test/unit/repository_cvs_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18345 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 05:41:31 +00:00
Toshi MARUYAMA
6e6b01a65e rubocop: fix Layout/BlockAlignment of test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18343 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-04 04:51:14 +00:00
Toshi MARUYAMA
3d357bcd84 rubocop: use Layout/TrailingWhitespace AllowInHeredoc true
git-svn-id: http://svn.redmine.org/redmine/trunk@18342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-03 07:50:03 +00:00
Toshi MARUYAMA
20570cd408 rubocop: fix Layout/EmptyLinesAroundAccessModifier of test/functional/repositories_git_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18341 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-03 05:34:31 +00:00
Toshi MARUYAMA
37cde69d50 rubocop: fix Layout/EmptyLinesAroundAccessModifier of lib/redmine/scm/adapters/cvs_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18340 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-03 05:34:20 +00:00
Toshi MARUYAMA
39a5b2beae rubocop: remove not detected lib/redmine/scm/adapters/abstract_adapter.rb from Layout/EmptyLinesAroundAccessModifier
git-svn-id: http://svn.redmine.org/redmine/trunk@18339 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-03 05:34:08 +00:00
Toshi MARUYAMA
4b95697d23 rubocop: fix Layout/CaseIndentation of test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18338 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-03 05:33:57 +00:00
Toshi MARUYAMA
62d536f657 rubocop: fix Layout/BlockAlignment of test/functional/repositories_mercurial_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18335 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-07-30 13:07:31 +00:00
Toshi MARUYAMA
05c1e19bd8 rubocop: fix Layout/BlockAlignment of test/functional/repositories_git_controller_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18334 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-07-30 13:07:20 +00:00
Toshi MARUYAMA
01e4010841 rubocop: fix Layout/AlignArray of test/unit/repository_bazaar_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18333 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-07-29 12:47:14 +00:00
Toshi MARUYAMA
ec4177a2f3 rubocop: fix Layout/AlignArray of test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-07-29 12:47:01 +00:00
Toshi MARUYAMA
00d3fa02e2 rubocop: fix Layout/AccessModifierIndentation of scm/adapters/abstract_adapter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18331 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-07-29 05:38:30 +00:00
Go MAEDA
bd6cfb17d6 Update RuboCop to 0.72.0 (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18320 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-26 23:37:09 +00:00
Go MAEDA
78722ed6c7 RuboCop: Disable Metrics
git-svn-id: http://svn.redmine.org/redmine/trunk@18292 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 13:20:02 +00:00
Go MAEDA
c2b30f5d3d Code cleanup: RuboCop: Style/DefWithParentheses
git-svn-id: http://svn.redmine.org/redmine/trunk@18290 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 12:15:28 +00:00
Go MAEDA
8baddf11bc Add RuboCop to enforce some styles (#31509).
Patch by Marius BALTEANU and Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18259 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-19 00:49:28 +00:00