Skip to content

Commit 97461a7

Browse files
committed
Move SPDX header comments and remove copyright dates
Keep the SPDX header comments, but move them underneath the ASF headers to make files human-friendly first and machine-friendly second. Remove copyright dates from header comments. The ASF recommends against adding an ASF copyright in the header comment, but does not forbid it. Keep the copyright headers for compliance with the REUSE specification, but remove the dates to reduce maintenance burder.
1 parent 86fa6ff commit 97461a7

Some content is hidden

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

51 files changed

+154
-103
lines changed

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
module.exports = {

.mocharc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
module.exports = {

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
2-
# SPDX-License-Identifier: Apache-2.0
31
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
42
# use this file except in compliance with the License. You may obtain a copy of
53
# the License at
@@ -11,6 +9,9 @@
119
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1210
# License for the specific language governing permissions and limitations under
1311
# the License.
12+
#
13+
# SPDX-FileCopyrightText: The Apache Software Foundation
14+
# SPDX-License-Identifier: Apache-2.0
1415

1516
# What is the prerelease version?
1617
vsn_pre = $(shell git describe --tags --always --first-parent \

babel.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
const path = require('path');

husky/pre-commit

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/bin/sh
2-
# SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
# SPDX-License-Identifier: Apache-2.0
42
# Licensed to the Apache Software Foundation (ASF) under one
53
# or more contributor license agreements. See the NOTICE file
64
# distributed with this work for additional information
@@ -10,13 +8,16 @@
108
# with the License. You may obtain a copy of the License at
119
#
1210
# http://www.apache.org/licenses/LICENSE-2.0
13-
11+
#
1412
# Unless required by applicable law or agreed to in writing,
1513
# software distributed under the License is distributed on an
1614
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1715
# KIND, either express or implied. See the License for the
1816
# specific language governing permissions and limitations
1917
# under the License.
18+
#
19+
# SPDX-FileCopyrightText: The Apache Software Foundation
20+
# SPDX-License-Identifier: Apache-2.0
2021

2122
. "$(dirname "$0")/_/husky.sh"
2223

packages/apache-annotator/src/dom.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
/**

packages/apache-annotator/src/selector.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
/**

packages/dom/src/css.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import { finder } from '@medv/finder';

packages/dom/src/highlight-text.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import { ownerDocument } from './owner-document.js';

packages/dom/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
export * from './css.js';

packages/dom/src/normalize-range.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import { ownerDocument } from './owner-document.js';

packages/dom/src/owner-document.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
/**

packages/dom/src/range/cartesian.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
/**

packages/dom/src/range/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
export * from './match.js';

packages/dom/src/range/match.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import type {

packages/dom/src/text-node-chunker.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import type { Chunk, Chunker, ChunkRange } from '@apache-annotator/selector';

packages/dom/src/text-position/describe.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import type { TextPositionSelector } from '@apache-annotator/selector';

packages/dom/src/text-position/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
export * from './describe.js';

packages/dom/src/text-position/match.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import type { Matcher, TextPositionSelector } from '@apache-annotator/selector';

packages/dom/src/text-quote/describe.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import type {

packages/dom/src/text-quote/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
export * from './describe.js';

packages/dom/src/text-quote/match.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import type { Matcher, TextQuoteSelector } from '@apache-annotator/selector';

packages/dom/src/to-range.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* SPDX-FileCopyrightText: 2016-2022 The Apache Software Foundation
3-
* SPDX-License-Identifier: Apache-2.0
42
* @license
53
* Licensed to the Apache Software Foundation (ASF) under one
64
* or more contributor license agreements. See the NOTICE file
@@ -18,6 +16,9 @@
1816
* KIND, either express or implied. See the License for the
1917
* specific language governing permissions and limitations
2018
* under the License.
19+
*
20+
* SPDX-FileCopyrightText: The Apache Software Foundation
21+
* SPDX-License-Identifier: Apache-2.0
2122
*/
2223

2324
import { ownerDocument } from './owner-document.js';

0 commit comments

Comments
 (0)