Commit 77b7aab0 authored by Arturo Herrero's avatar Arturo Herrero

Remove magic comments from Ruby files

Since Ruby 2, UTF-8 is the default encoding, which make many magic
comments omissible.
https://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/

Related to: https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/5456
parent 0b03342f
......@@ -565,11 +565,6 @@ Style/EmptyLiteral:
Style/EmptyMethod:
Enabled: false
# Offense count: 40
# Cop supports --auto-correct.
Style/Encoding:
Enabled: false
# Offense count: 203
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
......
# coding: utf-8
# frozen_string_literal: true
module PageLayoutHelper
......
# coding: utf-8
# frozen_string_literal: true
class Commit
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
require 'spec_helper'
describe Gitlab::Elastic::SearchResults, :elastic do
......
# coding: utf-8
require 'spec_helper'
describe Gitlab::Regex do
......
# -*- coding: utf-8 -*-
require 'spec_helper'
describe API::ProjectMirror do
......
# coding: utf-8
require 'spec_helper'
describe PostReceive do
......
# coding: utf-8
# frozen_string_literal: true
module API
......
# -*- ruby encoding: utf-8 -*-
# frozen_string_literal: true
# Based on the `ruby-net-ldap` gem's `Net::LDAP::DN`
......
# coding: utf-8
# frozen_string_literal: true
# rubocop: disable Rails/Output
......
# coding: utf-8
# frozen_string_literal: true
module Gitlab
......
# coding: utf-8
# frozen_string_literal: true
module Gitlab
......
# coding: utf-8
# frozen_string_literal: true
module Gitlab
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
require 'spec_helper'
describe ApplicationHelper do
......
# coding: utf-8
require 'spec_helper'
describe DeferScriptTagHelper do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
# frozen_string_literal: true
require "spec_helper"
......
# coding: utf-8
require "spec_helper"
describe Gitlab::Git::Blame, :seed_helper do
......
# encoding: utf-8
require "spec_helper"
describe Gitlab::Git::Blob, :seed_helper do
......
# coding: utf-8
require 'spec_helper'
describe Gitlab::Git::Conflict::File do
......
# coding: utf-8
require "spec_helper"
describe Gitlab::Git::Repository, :seed_helper do
......
# coding: utf-8
require 'spec_helper'
describe Gitlab::Git do
......
# coding: utf-8
require 'spec_helper'
describe Gitlab::JsonLogger do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# encoding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
# -*- coding: utf-8 -*-
require 'spec_helper'
shared_examples 'languages and percentages JSON response' do
......
# coding: utf-8
# frozen_string_literal: true
require 'spec_helper'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment