Skip to content

Commit

Permalink
Standardized the path to a Linux format to address the issue reported…
Browse files Browse the repository at this point in the history
… on GitHub: sqlfluff/sqlfluff#5531 (#388)
  • Loading branch information
mrcool4 committed Jan 18, 2024
1 parent 1e1cbdd commit 97d3029
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions diff_cover/report_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
import contextlib
import json
import os
from abc import ABC, abstractmethod
from gettext import gettext, ngettext

Expand Down Expand Up @@ -196,8 +197,8 @@ def _diff_violations(self):
try:
violations = self._violations.violations_batch(src_paths_changed)
self._diff_violations_dict = {
src_path: DiffViolations(
violations.get(src_path, []),
os.path.normpath(src_path): DiffViolations(
violations.get(os.path.normpath(src_path), []),
self._violations.measured_lines(src_path),
self._diff.lines_changed(src_path),
)
Expand Down

0 comments on commit 97d3029

Please sign in to comment.