lib/solargraph/diagnostics/rubocop_helpers.rb
# Find a RuboCop configuration file in a file's directory tree.
#
# @param filename [String]
# @return [String, nil]
Find a RuboCop configuration file in a file's directory tree.
Find a RuboCop configuration file in a file ' s directory tree .
def find_rubocop_file filename
        dir = File.dirname(filename)
        until File.dirname(dir) == dir
          here = File.join(dir, '.rubocop.yml')
          return here if File.exist?(here)
          dir = File.dirname(dir)
        end
        nil
      end
def find_rubocop_file filename dir = File . dirname ( filename ) until File . dirname ( dir ) == dir here = File . join ( dir , '.rubocop.yml' ) return here if File . exist? ( here ) dir = File . dirname ( dir ) end nil end
Find a RuboCop configuration file in a file's directory tree.
Find a RuboCop configuration file in a file ' s directory tree .
None
String, nil
filename
<not_specific>
<not_specific>
None