vendor/jruby/1.9/gems/rubocop-0.25.0/lib/rubocop/config.rb
# Paths specified in .rubocop.yml files are relative to the directory where
# that file is. Paths in other config files are relative to the current
# directory. This is so that paths in config/default.yml, for example, are
# not relative to RuboCop's config directory since that wouldn't work.
Paths specified in .rubocop.yml files are relative to the directory where
that file is. Paths in other config files are relative to the current
directory. This is so that paths in config/default.yml, for example, are
not relative to RuboCop's config directory since that wouldn't work.
Paths specified in . rubocop . yml files are relative to the directory where that file is . Paths in other config files are relative to the current directory . This is so that paths in config / default . yml for example are not relative to RuboCop ' s config directory since that wouldn ' t work .
def base_dir_for_path_parameters
      if File.basename(loaded_path) == ConfigLoader::DOTFILE
        File.expand_path(File.dirname(loaded_path))
      else
        Dir.pwd
      end
    end
def base_dir_for_path_parameters if File . basename ( loaded_path ) == ConfigLoader :: DOTFILE File . expand_path ( File . dirname ( loaded_path ) ) else Dir . pwd end end
Paths specified in .rubocop.yml files are relative to the directory where
that file is.
Paths specified in . rubocop . yml files are relative to the directory where that file is .