Skip to content

Commit 70bcf48

Browse files
committed
Fix more headers
1 parent f6647c4 commit 70bcf48

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

build/SiteExtensions.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the MIT License. -->
24
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
35
<PropertyGroup>
46
<PrepareForRunDependsOn>$(PrepareForRunDependsOn);GeneratePrivateXdts;ZipFiles</PrepareForRunDependsOn>

src/InstrumentationEngine.Attach/InstrumentationEngine.Attach.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<Project>
2-
<!-- Copyright (c) Microsoft Corporation. All rights reserved.
1+
<!-- Copyright (c) Microsoft Corporation. All rights reserved.
32
Licensed under the MIT License. -->
3+
<Project>
44
<PropertyGroup>
55
<SubComponent>Tools\Attach</SubComponent>
66
</PropertyGroup>

src/InstrumentationEngine.XdtExtensions/XdtExtensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<Project>
21
<!-- Copyright (c) Microsoft Corporation. All rights reserved.
32
Licensed under the MIT License. -->
3+
<Project>
44
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), 'EnlistmentRoot.marker'))\build\Managed.props" />
55
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
66
<PropertyGroup>

verifyCopyrightHeaders.ps1

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ $excludedFiles = @(
6363
'RawProfilerHook_i.h'
6464
'dlldata.c'
6565
'build.sem'
66+
'EngineConfiguration.cs'
67+
'InstrumentationConfigurationSources.cs'
6668

6769
# the license itself
6870
'LICENSE'
@@ -98,10 +100,16 @@ Get-ChildItem -Path $PSScriptRoot -Recurse -File |
98100
$mitLicenseIndex = $i + 2
99101
}
100102

101-
if (!$lines[$copyrightIndex].ToString().Contains($copyrightHeader) -or
102-
!$lines[$mitLicenseIndex].ToString().Contains($mitLicenseHeader))
103+
if (!$lines[$copyrightIndex].ToString().Contains($copyrightHeader))
103104
{
104-
Write-Warning "$($_.FullName) is missing OSS header."
105+
Write-Warning "$($_.FullName) is missing OSS header: $copyrightHeader"
106+
Write-Warning "> $($lines[$copyrightIndex])"
107+
}
108+
109+
if (!$lines[$mitLicenseIndex].ToString().Contains($mitLicenseHeader))
110+
{
111+
Write-Warning "$($_.FullName) is missing OSS header: $mitLicenseHeader"
112+
Write-Warning "> $($lines[$mitLicenseIndex])"
105113
}
106114
}
107115
else

0 commit comments

Comments
 (0)