Skip to content

Commit 481ac44

Browse files
chore: add license header to all code elements (.java, .py, .sh, .xml)
1 parent 8a4a23a commit 481ac44

121 files changed

Lines changed: 593 additions & 14 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

allow-list.xml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
~ Copyright 2025 CLOUDRISK and FT Advisory LLC
4-
~
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
8-
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
16-
-->
3+
4+
Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
5+
SPDX-License-Identifier: Apache-2.0
6+
7+
-->
178

189
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
1910
<suppress>

checkstyle/checkstyle.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0"?>
2+
<!--
3+
4+
Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
5+
SPDX-License-Identifier: Apache-2.0
6+
7+
-->
28
<!DOCTYPE module PUBLIC
39
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
410
"https://checkstyle.org/dtds/configuration_1_3.dtd">

pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
5+
SPDX-License-Identifier: Apache-2.0
6+
7+
-->
28
<project xmlns="http://maven.apache.org/POM/4.0.0"
39
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
410
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
@@ -343,6 +349,38 @@
343349
</pluginManagement>
344350

345351
<plugins>
352+
<plugin>
353+
<groupId>com.mycila</groupId>
354+
<artifactId>license-maven-plugin</artifactId>
355+
<version>4.6</version>
356+
<configuration>
357+
<licenseSets>
358+
<licenseSet>
359+
<header>src/license/header.txt</header>
360+
<includes>
361+
<include>src/main/java/**/*.java</include>
362+
<include>src/test/java/**/*.java</include>
363+
<include>python-test/**/*.py</include>
364+
<include>python-test/**/*.sh</include>
365+
<include>**/*.xml</include>
366+
</includes>
367+
<excludes>
368+
<exclude>src/generated/**</exclude>
369+
</excludes>
370+
</licenseSet>
371+
</licenseSets>
372+
<strictCheck>true</strictCheck>
373+
</configuration>
374+
<executions>
375+
<execution>
376+
<id>check-license-headers</id>
377+
<phase>verify</phase>
378+
<goals>
379+
<goal>check</goal>
380+
</goals>
381+
</execution>
382+
</executions>
383+
</plugin>
346384
<plugin>
347385
<groupId>org.apache.maven.plugins</groupId>
348386
<artifactId>maven-enforcer-plugin</artifactId>

python-test/cdm-tests/run_cdm_tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
2+
#
3+
# Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
27
type -P python > /dev/null && PYEXE=python || PYEXE=python3
38
if ! $PYEXE -c 'import sys; assert sys.version_info >= (3,11)' > /dev/null 2>&1; then
49
echo "Found $($PYEXE -V)"

python-test/cdm-tests/setup/build_cdm.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
2+
#
3+
# Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
27
#
38
# utility script - builds CDM using PythonFilesGeneratorTest::generateCDMPythonFromRosetta
49
# to use:

python-test/cdm-tests/setup/get_cdm.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
2+
#
3+
# Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
27
#
38
# utility script - pulls the version of CDM specified by its first argument (default to master)
49
# supports build_cdm.sh

python-test/cdm-tests/setup_cdm_test_env.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
2+
#
3+
# Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
27
function error
38
{
49
echo

python-test/cdm-tests/test_import_trade_state.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#
2+
# Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
16
'''test the generated Python'''
27
# pylint: disable=import-outside-toplevel at top, unused-import
38
import pytest

python-test/common.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
2+
#
3+
# Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
27

38
# Function to ensure the generator JAR exists, building it if necessary
49
function ensure_jar_exists {

python-test/env-setup/cleanup_python_env.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash
2+
#
3+
# Copyright (c) 2023-2026 CLOUDRISK Limited and FT Advisory LLC
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
27
function error
38
{
49
echo

0 commit comments

Comments
 (0)