Skip to content

Commit 3ae49c2

Browse files
committed
.ps1
1 parent 7f678cc commit 3ae49c2

35 files changed

+467
-12
lines changed

src/AasxPackageExplorer/UML/convert-uml.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
param (
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
param (
215
[switch]$help = $false,
316
[switch]$view = $false,
417
[string]$file = ""

src/AasxToolkit.Tests/ValidateSampleAAS.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
<#
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
<#
215
.SYNOPSIS
316
This script runs a validation on schedma violations for all .AASX files in the directory "aasx-package-explorer\sample-aasx".
417
The sample files can be downloaded via "aasx-package-explorer\DownloadSamples.ps1".

src/AasxToolkit/ValidateSampleAAS.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
<#
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
<#
215
.SYNOPSIS
316
This script runs a validation on schedma violations for all .AASX files in the directory "aasx-package-explorer\sample-aasx".
417
The sample files can be downloaded via "aasx-package-explorer\DownloadSamples.ps1".

src/BlazorExplorer/UML/convert-uml.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
param (
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
param (
215
[switch]$help = $false,
316
[switch]$view = $false,
417
[string]$file = ""

src/BuildForDebug.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
param(
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
param(
215
[Parameter(HelpMessage = "If set, cleans up the previous build instead of performing a new one")]
316
[switch]
417
$clean = $false,

src/BuildForRelease.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
param(
215
[Parameter(HelpMessage = "If set, cleans up the previous build instead of performing a new one")]
316
[switch]

src/Check.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
<#
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
<#
215
.SYNOPSIS
316
This script runs all the pre-merge checks locally.
417
#>

src/CheckBiteSized.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
#!/usr/bin/env pwsh
215
<#
316
.SYNOPSIS

src/CheckBiteSizedLocal.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
#!/usr/bin/env pwsh
215
<#
316
.SYNOPSIS

src/CheckDeadCode.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
<#
215
.SYNOPSIS
316
This script checks that there is no dead code in the comments.

src/CheckDeadCodeLocal.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
<#
215
.SYNOPSIS
316
This script checks that there is no dead code in the comments.

src/CheckFormat.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
<#
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
<#
215
.SYNOPSIS
316
This script checks the format of the code.
417
#>

src/CheckFormatLocal.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
<#
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
<#
215
.SYNOPSIS
316
This script checks the format of the code.
417
#>

src/CheckLicenses.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
#!/usr/bin/env pwsh
215
<#
316
.DESCRIPTION

src/CheckLicensesLocal.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
#!/usr/bin/env pwsh
215
<#
316
.DESCRIPTION

src/CheckPushCommitMessages.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
#!/usr/bin/env pwsh
215

316
<#

src/CheckTodos.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
<#
215
.SYNOPSIS
316
This script checks that all the TODOs in the code follow the convention.

src/CheckTodosLocal.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
<#
215
.SYNOPSIS
316
This script checks that all the TODOs in the code follow the convention.

src/CopyLicense.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
#!/usr/bin/env pwsh
215
<#
316
.DESCRIPTION

src/Doctest.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
#!/usr/bin/env pwsh
215
param(
316
[Parameter(HelpMessage = "If set, doctests are only checked in a dry-run, not generated")]

src/DownloadSamples.ps1

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
114
param(
215
[Parameter(HelpMessage = "If set, cleans up the previously downloaded samples")]
316
[switch]

src/FormatCode.ps1

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
<#
1+
<#*******************************************************************************
2+
* Copyright (c) {2024} Contributors to the Eclipse Foundation
3+
*
4+
* See the NOTICE file(s) distributed with this work for additional
5+
* information regarding copyright ownership.
6+
*
7+
* This program and the accompanying materials are made available under the
8+
* terms of the Apache License Version 2.0 which is available at
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* SPDX-License-Identifier: Apache-2.0
12+
*******************************************************************************#>
13+
14+
<#
215
.SYNOPSIS
316
This script formats the code in-place.
417
#>

0 commit comments

Comments
 (0)