Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] meta: update copyright statements #10599

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions COLLABORATOR_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,3 +567,19 @@ When the LTS working group determines that a new LTS release is required,
selected commits will be picked from the staging branch to be included in the
release. This process of making a release will be a collaboration between the
LTS working group and the Release team.

## Licensing and Copyright Headers

All `*.js`, `*.cc\, and `*.h` files located in the `/lib' and `/src` folders
*must* have an appropriate copyright statement and SPDX license identifier
*only if it does not already have an existing copyright statement and license
identifier.*

```js
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
```

Existing copyright statements and license identifiers within any source file
*must not be modified or removed* without review and sign-off by both the
Node.js Technical Steering Committee (TSC) and Node.js Foundation Board.
1 change: 1 addition & 0 deletions lib/.eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ rules:
require-buffer: 2
buffer-constructor: 2
no-let-in-for-declaration: 2
no-copyright: 2
3 changes: 3 additions & 0 deletions lib/_debug_agent.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const assert = require('assert');
Expand Down
3 changes: 3 additions & 0 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const internalUtil = require('internal/util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_agent.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const net = require('net');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_common.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const binding = process.binding('http_parser');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_incoming.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_outgoing.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const assert = require('assert').ok;
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_server.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_linklist.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = require('internal/linkedlist');
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_duplex.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_passthrough.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_readable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = Readable;
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_transform.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// a transform stream is a readable/writable stream where you do
// something with the data. Sometimes it's called a "filter",
// but that's not a great name for it, since that implies a thing where
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_wrap.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const assert = require('assert');
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_writable.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// A bit simpler than readable streams.
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
// the drain event emission and buffering.
Expand Down
3 changes: 3 additions & 0 deletions lib/_tls_common.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const internalUtil = require('internal/util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_tls_legacy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

require('internal/util').assertCrypto();
Expand Down
3 changes: 3 additions & 0 deletions lib/_tls_wrap.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

require('internal/util').assertCrypto();
Expand Down
3 changes: 3 additions & 0 deletions lib/assert.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// http://wiki.commonjs.org/wiki/Unit_Testing/1.0
//
// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!
Expand Down
3 changes: 3 additions & 0 deletions lib/buffer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

/* eslint-disable require-buffer */
'use strict';

Expand Down
3 changes: 3 additions & 0 deletions lib/child_process.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/cluster.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = ('NODE_UNIQUE_ID' in process.env) ?
Expand Down
3 changes: 3 additions & 0 deletions lib/console.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

// This module is deprecated in documentation only. Users should be directed
Expand Down
3 changes: 3 additions & 0 deletions lib/crypto.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// Note: In 0.8 and before, crypto functions all defaulted to using
// binary-encoded strings rather than buffers.

Expand Down
3 changes: 3 additions & 0 deletions lib/dgram.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const assert = require('assert');
Expand Down
3 changes: 3 additions & 0 deletions lib/dns.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/domain.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

// WARNING: THIS MODULE IS PENDING DEPRECATION.
Expand Down
3 changes: 3 additions & 0 deletions lib/events.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

var domain;
Expand Down
3 changes: 3 additions & 0 deletions lib/fs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// Maintainers, keep in mind that ES1-style octal literals (`0666`) are not
// allowed in strict mode. Use ES6-style octal literals instead (`0o666`).

Expand Down
3 changes: 3 additions & 0 deletions lib/http.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';
exports.IncomingMessage = require('_http_incoming').IncomingMessage;

Expand Down
3 changes: 3 additions & 0 deletions lib/https.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

require('internal/util').assertCrypto();
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// Hello, and welcome to hacking node.js!
//
// This file is invoked by node::LoadEnvironment in src/node.cc, and is
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/buffer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

if (!process.binding('config').hasIntl) {
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/child_process.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const StringDecoder = require('string_decoder').StringDecoder;
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/child.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const assert = require('assert');
const util = require('util');
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/master.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const assert = require('assert');
const fork = require('child_process').fork;
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/round_robin_handle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const assert = require('assert');
const net = require('net');
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/shared_handle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const assert = require('assert');
const dgram = require('dgram');
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const util = require('util');

Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/worker.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const EventEmitter = require('events');
const internalUtil = require('internal/util');
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/freelist.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

// This is a free list to avoid creating so many of the same object.
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/fs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const Buffer = require('buffer').Buffer;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/linkedlist.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

function init(list) {
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/module.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

exports = module.exports = {
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/net.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = { isLegalPort, assertPort };
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

var _lazyConstants = null;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process/next_tick.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

exports.setup = setupNextTick;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process/promises.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const promiseRejectEvent = process._promiseRejectEvent;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process/stdio.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

exports.setup = setupStdio;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process/warning.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const config = process.binding('config');
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/readline.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

// Regex used for ansi escape code splitting
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/repl.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const Interface = require('readline').Interface;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/socket_list.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = {SocketListSend, SocketListReceive};
Expand Down
Loading