Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@olleolleolle
Created March 19, 2019 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olleolleolle/1973848ec2730e417d057d98b04af102 to your computer and use it in GitHub Desktop.
Save olleolleolle/1973848ec2730e417d057d98b04af102 to your computer and use it in GitHub Desktop.
RuboCop 0.66.0 has trouble with this piece of code

In This PR, I disabled a rule inline.

module Gemstash
  # Storage for application-wide variables and configuration.
  class Env
    module Helper
    # RuboCop 0.66.0 can not decide where to put that "private"

    private # rubocop:disable Layout/IndentationWidth

      def gemstash_env
        Gemstash::Env.current
      end
    end
  end
end

Is there a way to format this, without breaking any of the rules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment