Skip to content

Commit f0b196e

Browse files
authored
Merge pull request #10 from matsoftware/issue-n-8
Issue#8 Fix in paths analysis
2 parents e467288 + 441c712 commit f0b196e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift_code_metrics/_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def parse(self) -> List['SwiftFile']:
125125
value.append(extracted_value)
126126
continue
127127

128-
subdir = self.file.replace(self.base_path, '')
128+
subdir = self.file.replace(self.base_path, '', 1)
129129
first_subpath = self.__extract_first_subpath(subdir)
130130

131131
framework_names, is_test = self.__extract_overrides(first_subpath) or \

0 commit comments

Comments
 (0)