Skip to content

Commit 54c6760

Browse files
authored
[dev-tool][customization] fix duplicate file header (Azure#27610)
There are two trailing whitespace in the header template. However after we customize, we run format so the whitespaces are removed. That would fail the checks of whether the header already exists. This PR removes the trailing whitespaces thus after formatting the header still matches the template.
1 parent 369b113 commit 54c6760

File tree

18 files changed

+2
-273
lines changed

18 files changed

+2
-273
lines changed

common/tools/dev-tool/src/util/customization/helpers/addFileHeaders.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const licenseHeader = `// Copyright (c) Microsoft Corporation.
88
const generatedCodeNotice = `
99
/**
1010
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
11-
*
11+
*
1212
* Any changes you make here may be lost.
13-
*
13+
*
1414
* If you need to make changes, please do so in the original source file, \\{project-root\\}/sources/custom
1515
*/`;
1616

sdk/template/template-dpg/src/WidgetServiceClient.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
/**
5-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
6-
*
7-
* Any changes you make here may be lost.
8-
*
9-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
10-
*/
11-
12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
204
/**
215
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
226
*

sdk/template/template-dpg/src/api/WidgetServiceContext.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
/**
5-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
6-
*
7-
* Any changes you make here may be lost.
8-
*
9-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
10-
*/
11-
12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
204
/**
215
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
226
*

sdk/template/template-dpg/src/api/foo.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,6 @@
99
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
1010
*/
1111

12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
20-
/**
21-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
22-
*
23-
* Any changes you make here may be lost.
24-
*
25-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
26-
*/
2712
export function foo(): void {
2813
console.log("foo");
2914
}

sdk/template/template-dpg/src/api/index.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
/**
5-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
6-
*
7-
* Any changes you make here may be lost.
8-
*
9-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
10-
*/
11-
12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
204
/**
215
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
226
*

sdk/template/template-dpg/src/api/models.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
/**
5-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
6-
*
7-
* Any changes you make here may be lost.
8-
*
9-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
10-
*/
11-
12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
204
/**
215
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
226
*

sdk/template/template-dpg/src/api/operations.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
/**
5-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
6-
*
7-
* Any changes you make here may be lost.
8-
*
9-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
10-
*/
11-
12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
204
/**
215
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
226
*

sdk/template/template-dpg/src/common/interfaces.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
/**
5-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
6-
*
7-
* Any changes you make here may be lost.
8-
*
9-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
10-
*/
11-
12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
204
/**
215
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
226
*

sdk/template/template-dpg/src/index.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
/**
5-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
6-
*
7-
* Any changes you make here may be lost.
8-
*
9-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
10-
*/
11-
12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
204
/**
215
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
226
*

sdk/template/template-dpg/src/logger.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
/**
5-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
6-
*
7-
* Any changes you make here may be lost.
8-
*
9-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
10-
*/
11-
12-
/**
13-
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
14-
*
15-
* Any changes you make here may be lost.
16-
*
17-
* If you need to make changes, please do so in the original source file, \{project-root\}/sources/custom
18-
*/
19-
204
/**
215
* THIS IS AN AUTO-GENERATED FILE - DO NOT EDIT!
226
*

0 commit comments

Comments
 (0)