From f9bafb0e3a9575e6985e26a9ef78b82c7172c46f Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Mon, 11 Nov 2024 11:48:07 +0100 Subject: [PATCH] Add license header to .editorconfig Ensures new files will always be bootstrapped with the Elastic license header and thus satisfy our CI check for it --- .editorconfig | 3 +++ build/Program.cs | 1 + src/Elastic.Markdown/Diagnostics/DiagnosticsChannel.cs | 4 ++++ .../Diagnostics/ProcessorDiagnosticExtensions.cs | 4 ++++ src/Elastic.Markdown/Myst/ParserContext.cs | 4 ++++ src/docs-builder/Diagnostics/ErrorCollector.cs | 4 ++++ 6 files changed, 20 insertions(+) diff --git a/.editorconfig b/.editorconfig index 7683ac4..0f8ee8c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,6 +7,9 @@ indent_size = 4 # Spell checker configuration spelling_exclusion_path = "./build/exclusion.dic" +[*.{fs,fsx,cs,vb}] +file_header_template=Licensed to Elasticsearch B.V under one or more agreements.\nElasticsearch B.V licenses this file to you under the Apache 2.0 License.\nSee the LICENSE file in the project root for more information + [*.{fs,fsx}] indent_style = space indent_size = 4 diff --git a/build/Program.cs b/build/Program.cs index d377641..ef3c05a 100644 --- a/build/Program.cs +++ b/build/Program.cs @@ -1,6 +1,7 @@ // Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information + using ConsoleAppFramework; using ProcNet; using Zx; diff --git a/src/Elastic.Markdown/Diagnostics/DiagnosticsChannel.cs b/src/Elastic.Markdown/Diagnostics/DiagnosticsChannel.cs index 14c4414..dde72b8 100644 --- a/src/Elastic.Markdown/Diagnostics/DiagnosticsChannel.cs +++ b/src/Elastic.Markdown/Diagnostics/DiagnosticsChannel.cs @@ -1,3 +1,7 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + using System.Threading.Channels; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; diff --git a/src/Elastic.Markdown/Diagnostics/ProcessorDiagnosticExtensions.cs b/src/Elastic.Markdown/Diagnostics/ProcessorDiagnosticExtensions.cs index 13a687f..5da54cc 100644 --- a/src/Elastic.Markdown/Diagnostics/ProcessorDiagnosticExtensions.cs +++ b/src/Elastic.Markdown/Diagnostics/ProcessorDiagnosticExtensions.cs @@ -1,3 +1,7 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + using Elastic.Markdown.Myst; using Markdig.Helpers; using Markdig.Parsers; diff --git a/src/Elastic.Markdown/Myst/ParserContext.cs b/src/Elastic.Markdown/Myst/ParserContext.cs index de2f5fe..6eb9f99 100644 --- a/src/Elastic.Markdown/Myst/ParserContext.cs +++ b/src/Elastic.Markdown/Myst/ParserContext.cs @@ -1,3 +1,7 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + using System.IO.Abstractions; using Markdig; using Markdig.Parsers; diff --git a/src/docs-builder/Diagnostics/ErrorCollector.cs b/src/docs-builder/Diagnostics/ErrorCollector.cs index 430d83b..4986b33 100644 --- a/src/docs-builder/Diagnostics/ErrorCollector.cs +++ b/src/docs-builder/Diagnostics/ErrorCollector.cs @@ -1,3 +1,7 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information + using System.Diagnostics.CodeAnalysis; using System.Text; using Actions.Core;