Method: Solargraph::Diagnostics::RubocopHelpers.fix_drive_letter
- Defined in:
- lib/solargraph/diagnostics/rubocop_helpers.rb
.fix_drive_letter(path) ⇒ String
RuboCop internally uses capitalized drive letters for Windows paths, so we need to convert the paths provided to the command.
48 49 50 51 |
# File 'lib/solargraph/diagnostics/rubocop_helpers.rb', line 48 def fix_drive_letter path return path unless path.match(/^[a-z]:/) path[0].upcase + path[1..-1] end |