33using System . IO ;
44using System . Linq ;
55
6+ using Coverlet . Core . Enums ;
67using Coverlet . Core . Helpers ;
78using Coverlet . Core . Instrumentation ;
89using Coverlet . Core . Symbols ;
@@ -48,7 +49,7 @@ public Coverage(string module, string[] includeFilters, string[] includeDirector
4849 public void PrepareModules ( )
4950 {
5051 string [ ] modules = InstrumentationHelper . GetCoverableModules ( _module , _includeDirectories ) ;
51- string [ ] excludes = InstrumentationHelper . GetExcludedFiles ( _excludedSourceFiles ) ;
52+ string [ ] excludes = InstrumentationHelper . GetExcludedFiles ( _excludedSourceFiles ) ;
5253 _excludeFilters = _excludeFilters ? . Where ( f => InstrumentationHelper . IsValidFilterExpression ( f ) ) . ToArray ( ) ;
5354 _includeFilters = _includeFilters ? . Where ( f => InstrumentationHelper . IsValidFilterExpression ( f ) ) . ToArray ( ) ;
5455
@@ -131,14 +132,14 @@ public CoverageResult GetCoverageResult()
131132 if ( methods . TryGetValue ( branch . Method , out Method method ) )
132133 {
133134 method . Branches . Add ( new BranchInfo
134- { Line = branch . Number , Hits = branch . Hits , Offset = branch . Offset , EndOffset = branch . EndOffset , Path = branch . Path , Ordinal = branch . Ordinal }
135+ { Line = branch . Number , Hits = branch . Hits , Offset = branch . Offset , EndOffset = branch . EndOffset , Path = branch . Path , Ordinal = branch . Ordinal }
135136 ) ;
136137 }
137138 else
138139 {
139140 documents [ doc . Path ] [ branch . Class ] . Add ( branch . Method , new Method ( ) ) ;
140141 documents [ doc . Path ] [ branch . Class ] [ branch . Method ] . Branches . Add ( new BranchInfo
141- { Line = branch . Number , Hits = branch . Hits , Offset = branch . Offset , EndOffset = branch . EndOffset , Path = branch . Path , Ordinal = branch . Ordinal }
142+ { Line = branch . Number , Hits = branch . Hits , Offset = branch . Offset , EndOffset = branch . EndOffset , Path = branch . Path , Ordinal = branch . Ordinal }
142143 ) ;
143144 }
144145 }
@@ -147,7 +148,7 @@ public CoverageResult GetCoverageResult()
147148 documents [ doc . Path ] . Add ( branch . Class , new Methods ( ) ) ;
148149 documents [ doc . Path ] [ branch . Class ] . Add ( branch . Method , new Method ( ) ) ;
149150 documents [ doc . Path ] [ branch . Class ] [ branch . Method ] . Branches . Add ( new BranchInfo
150- { Line = branch . Number , Hits = branch . Hits , Offset = branch . Offset , EndOffset = branch . EndOffset , Path = branch . Path , Ordinal = branch . Ordinal }
151+ { Line = branch . Number , Hits = branch . Hits , Offset = branch . Offset , EndOffset = branch . EndOffset , Path = branch . Path , Ordinal = branch . Ordinal }
151152 ) ;
152153 }
153154 }
@@ -157,7 +158,7 @@ public CoverageResult GetCoverageResult()
157158 documents [ doc . Path ] . Add ( branch . Class , new Methods ( ) ) ;
158159 documents [ doc . Path ] [ branch . Class ] . Add ( branch . Method , new Method ( ) ) ;
159160 documents [ doc . Path ] [ branch . Class ] [ branch . Method ] . Branches . Add ( new BranchInfo
160- { Line = branch . Number , Hits = branch . Hits , Offset = branch . Offset , EndOffset = branch . EndOffset , Path = branch . Path , Ordinal = branch . Ordinal }
161+ { Line = branch . Number , Hits = branch . Hits , Offset = branch . Offset , EndOffset = branch . EndOffset , Path = branch . Path , Ordinal = branch . Ordinal }
161162 ) ;
162163 }
163164 }
@@ -292,7 +293,7 @@ private string GetSourceLinkUrl(Dictionary<string, string> sourceLinkDocuments,
292293 }
293294
294295 relativePathOfBestMatch = relativePathOfBestMatch == "." ? string . Empty : relativePathOfBestMatch ;
295-
296+
296297 string replacement = Path . Combine ( relativePathOfBestMatch , Path . GetFileName ( document ) ) ;
297298 replacement = replacement . Replace ( '\\ ' , '/' ) ;
298299
0 commit comments