-
- Downloads
Enable the Rubocop DeprecatedClassMethods cop
This reports uses of `File.exists?` and `Dir.exists?`, which were both deprecated in Ruby and will eventually be removed in favor of `.exist?`. Also fixes all existing uses of the deprecated methods.
Showing
- .rubocop.yml 1 addition, 1 deletion.rubocop.yml
- app/models/ci/build.rb 1 addition, 1 deletionapp/models/ci/build.rb
- app/models/merge_request.rb 1 addition, 1 deletionapp/models/merge_request.rb
- config/boot.rb 1 addition, 1 deletionconfig/boot.rb
- config/initializers/carrierwave.rb 1 addition, 1 deletionconfig/initializers/carrierwave.rb
- lib/gitlab/backend/shell.rb 1 addition, 1 deletionlib/gitlab/backend/shell.rb
- lib/gitlab/redis.rb 1 addition, 1 deletionlib/gitlab/redis.rb
- spec/config/mail_room_spec.rb 1 addition, 1 deletionspec/config/mail_room_spec.rb
- spec/services/projects/create_service_spec.rb 2 additions, 2 deletionsspec/services/projects/create_service_spec.rb
- spec/services/projects/destroy_service_spec.rb 4 additions, 4 deletionsspec/services/projects/destroy_service_spec.rb
Please register or sign in to comment