Disable IDE0073: FileHeaderMismatch#13935
Disable IDE0073: FileHeaderMismatch#13935xtqqczze wants to merge 2 commits intoPowerShell:masterfrom
Conversation
|
@iSazonov Can you merge? |
|
No, we should inform users to use right header. We need to set "suggestion". Or we could suppress the rule for some files/folders. |
|
@iSazonov We cannot use directory based suppression, at least for For |
It is not problem. We have some files from other repositories with different licenses and the files are frozen. We know about this. So "suggestion" is good compromise. |
OK |
|
@iSazonov Are there any options for suppression on a per file basis, other than the following? #pragma warning disable IDE0073 // The file header does not match the required text
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma warning restore IDE0073 // The file header does not match the required textThe example above is for the file: |
|
@xtqqczze The case is so rare and not critical so we can use "suggestion" without any concerns - maintainer will review and ensure. |
|
Reopen the PR to restart all CIs. |
|
Build failures are due to PowerShell Gallery unavailability, see #13946. |
|
closing and reopening to restart tests |
|
I wonder before the change we have "warning" but build does not fail. |
|
It appears that IDE0073 is only triggering in live analysis, not in build. We need to set MSBuild property |
|
Change was merged in #13957. |
Various files do not match the
file_header_templatein root EditorConfig:Copyright (c) Microsoft Corporation.\nLicensed under the MIT License.For example,
src\System.Management.Automation\engine\interpreter\InstructionList.csuses Apache License.This PR sets the rule severity to
suggestion.