File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
src/DemaConsulting.SpdxModel
test/DemaConsulting.SpdxModel.Tests Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 3636 <PrivateAssets >all</PrivateAssets >
3737 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
3838 </PackageReference >
39+ <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 10.16.1.129956" >
40+ <PrivateAssets >all</PrivateAssets >
41+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
42+ </PackageReference >
3943 </ItemGroup >
4044
4145 <ItemGroup >
Original file line number Diff line number Diff line change @@ -124,11 +124,13 @@ public void Validate(List<string> issues)
124124 issues . Add ( "Document Invalid Creator Field - Empty" ) ;
125125
126126 // Validate Creators Field Entries
127- foreach ( var creator in Creators )
128- if ( ! creator . StartsWith ( "Person:" ) &&
129- ! creator . StartsWith ( "Organization:" ) &&
130- ! creator . StartsWith ( "Tool:" ) )
131- issues . Add ( $ "Document Invalid Creator Entry '{ creator } '") ;
127+ foreach ( var creator in Creators . Where ( c =>
128+ ! c . StartsWith ( "Person:" ) &&
129+ ! c . StartsWith ( "Organization:" ) &&
130+ ! c . StartsWith ( "Tool:" ) ) )
131+ {
132+ issues . Add ( $ "Document Invalid Creator Entry '{ creator } '") ;
133+ }
132134
133135 // Validate Created Field
134136 if ( ! SpdxHelpers . IsValidSpdxDateTime ( Created ) )
Original file line number Diff line number Diff line change 3535 <PrivateAssets >all</PrivateAssets >
3636 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
3737 </PackageReference >
38+ <PackageReference Include =" SonarAnalyzer.CSharp" Version =" 10.16.1.129956" >
39+ <PrivateAssets >all</PrivateAssets >
40+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
41+ </PackageReference >
3842 </ItemGroup >
3943
4044 <ItemGroup >
You can’t perform that action at this time.
0 commit comments