Skip to content

Commit e9011c6

Browse files
Merge pull request #3 from eth-cscs/source-file-headers
License header to source files
2 parents c9a4f06 + d246562 commit e9011c6

File tree

168 files changed

+1354
-547
lines changed

Some content is hidden

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

168 files changed

+1354
-547
lines changed

.eslintrc.cjs

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
/**
2-
* This is intended to be a basic starting point for linting in your app.
3-
* It relies on recommended configs out of the box for simplicity, but you can
4-
* and should modify this configuration to best suit your team's needs.
5-
*/
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
67

78
/** @type {import('eslint').Linter.Config} */
89
module.exports = {
@@ -56,7 +57,7 @@ module.exports = {
5657
// Typescript
5758
{
5859
files: ['**/*.{ts,tsx}'],
59-
plugins: ['@typescript-eslint', 'import'],
60+
plugins: ['@typescript-eslint', 'import', 'header'],
6061
parser: '@typescript-eslint/parser',
6162
settings: {
6263
'import/internal-regex': '^~/',
@@ -80,6 +81,18 @@ module.exports = {
8081
'react-hooks/exhaustive-deps': 'off',
8182
'@typescript-eslint/no-explicit-any': 'off',
8283
'@typescript-eslint/no-unused-vars': 'off',
84+
'header/header': [
85+
2,
86+
'block',
87+
[
88+
'************************************************************************',
89+
' Copyright (c) 2025, ETH Zurich. All rights reserved.',
90+
'',
91+
' Please, refer to the LICENSE file in the root directory.',
92+
' SPDX-License-Identifier: BSD-3-Clause',
93+
'************************************************************************',
94+
],
95+
],
8396
},
8497
},
8598

app/apis/api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
18
import { ReasonPhrases, StatusCodes, getReasonPhrase } from 'http-status-codes'
29
// configs
310
import firecrest from '~/configs/firecrest.config'

app/apis/compute-api.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
// types
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
28
import type { System } from '~/types/api-status'
39
import type { PostJobPayload, PostJobResponse } from '~/types/api-compute'
410
import type {

app/apis/filesystem-api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
18
// types
29
import type {
310
GetOpsChecksumResponse,

app/apis/status-api.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
18
// types
29
import type { GetSystemsResponse } from '~/types/api-status'
310
// apis

app/components/alerts/AlertError.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
18
import { XCircleIcon } from '@heroicons/react/24/outline'
29
// types
310
import { ErrorType } from '~/types/error'

app/components/alerts/AlertInfo.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
18
import { InformationCircleIcon } from '@heroicons/react/24/outline'
29

310
const AlertInfo: React.FC<any> = ({

app/components/alerts/AlertWarning.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
18
import { ExclamationTriangleIcon } from '@heroicons/react/24/solid'
29
// helpers
310
import { classNames } from '~/helpers/class-helper'

app/components/badges/EnvironmentBadge.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
18
// types
29
import { Environment } from '~/types/base'
310
// badges

app/components/badges/LabelBadge.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*************************************************************************
2+
Copyright (c) 2025, ETH Zurich. All rights reserved.
3+
4+
Please, refer to the LICENSE file in the root directory.
5+
SPDX-License-Identifier: BSD-3-Clause
6+
*************************************************************************/
7+
18
// helpers
29
import { classNames } from '~/helpers/class-helper'
310

0 commit comments

Comments
 (0)