module Support::Path

Responsible for provide relative paths to support files Files located under: /lib/plugin/pre_commit/support/checkstyle*

Public Class Methods

relative_to(file) click to toggle source

Return support path relative to a given file

@param file [String] file name @return [String] formatted path

# File lib/plugins/pre_commit/support/path.rb, line 11
def self.relative_to(file)
  File.expand_path(
    "../../../../resources/checkstyle/#{file}",
    __FILE__
  )
end