Skip to content

Commit

Permalink
Add missing copyrights (denoland#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
ztplz authored and ry committed Oct 19, 2018
1 parent 7210e7b commit b809a82
Show file tree
Hide file tree
Showing 46 changed files with 39 additions and 12 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
version: '{build}.{branch}'

skip_branch_with_pr: true
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
language: c++
matrix:
include:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Dummy package info required by `cargo fetch`.
# Use tools/sync_third_party.py to install deps after editing this file.
# Deno does not build with cargo. Deno uses a build system called gn.
Expand Down
1 change: 1 addition & 0 deletions gclient_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
solutions = [{
'url': 'https://chromium.googlesource.com/v8/[email protected]',
'name': 'v8',
Expand Down
2 changes: 2 additions & 0 deletions js/console.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

// tslint:disable-next-line:no-any
type ConsoleContext = Set<any>;
type ConsoleOptions = Partial<{
Expand Down
1 change: 0 additions & 1 deletion js/console_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

import { test, assert, assertEqual } from "./test_util.ts";
import { stringifyArgs } from "./console.ts";

Expand Down
1 change: 1 addition & 0 deletions js/copy_file_test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import { testPerm, assert, assertEqual } from "./test_util.ts";
import * as deno from "deno";

Expand Down
1 change: 1 addition & 0 deletions js/deno.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

// Public deno module.
/// <amd-module name="deno"/>
export { env, exit } from "./os";
Expand Down
1 change: 1 addition & 0 deletions js/dir_test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import { test, testPerm, assert, assertEqual } from "./test_util.ts";
import * as deno from "deno";

Expand Down
1 change: 1 addition & 0 deletions js/errors.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import { Base, ErrorKind } from "gen/msg_generated";
export { ErrorKind } from "gen/msg_generated";

Expand Down
1 change: 0 additions & 1 deletion js/files.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

import { Reader, Writer, Closer, ReadResult } from "./io";
import * as dispatch from "./dispatch";
import * as msg from "gen/msg_generated";
Expand Down
1 change: 0 additions & 1 deletion js/files_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

import * as deno from "deno";
import { test, assert, assertEqual } from "./test_util.ts";

Expand Down
1 change: 0 additions & 1 deletion js/flatbuffers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

import { flatbuffers } from "flatbuffers";
import * as util from "./util";

Expand Down
2 changes: 2 additions & 0 deletions js/global_eval.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

/** If you use the eval function indirectly, by invoking it via a reference
* other than eval, as of ECMAScript 5 it works in the global scope rather than
* the local scope. This means, for instance, that function declarations create
Expand Down
1 change: 0 additions & 1 deletion js/globals.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

import * as blob from "./blob";
import * as console from "./console";
import * as fetch_ from "./fetch";
Expand Down
1 change: 1 addition & 0 deletions js/libdeno.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import { RawSourceMap } from "./types";
import { globalEval } from "./global_eval";

Expand Down
1 change: 1 addition & 0 deletions js/mock_builtin.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
export default undefined;
1 change: 0 additions & 1 deletion js/net.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

import { ReadResult, Reader, Writer, Closer } from "./io";
import * as msg from "gen/msg_generated";
import { assert, notImplemented } from "./util";
Expand Down
1 change: 0 additions & 1 deletion js/net_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

import * as deno from "deno";
import { testPerm, assert, assertEqual } from "./test_util.ts";
import { deferred } from "./util.ts";
Expand Down
2 changes: 2 additions & 0 deletions js/platform.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

// Do not add unsupported platforms.
export interface Platform {
/** The operating system CPU architecture. */
Expand Down
2 changes: 2 additions & 0 deletions js/plugins.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

// This allows TypeScript to resolve any modules that end with `!string`
// as there is a rollup plugin that will take any mids ending with `!string`
// and return them as a string to rollup for inlining
Expand Down
1 change: 1 addition & 0 deletions js/promise_util.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import { PromiseRejectEvent } from "./libdeno";

/* tslint:disable-next-line:no-any */
Expand Down
1 change: 1 addition & 0 deletions js/trace_test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import { testPerm, assertEqual } from "./test_util.ts";
import * as deno from "deno";

Expand Down
1 change: 1 addition & 0 deletions js/unit_tests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

// This test is executed as part of tools/test.py
// But it can also be run manually: ./out/debug/deno js/unit_tests.ts
import "./compiler_test.ts";
Expand Down
1 change: 1 addition & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import path from "path";
import alias from "rollup-plugin-alias";
import { plugin as analyze } from "rollup-plugin-analyzer";
Expand Down
1 change: 1 addition & 0 deletions src/fs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
use std;
use std::fs::{create_dir, DirBuilder, File, OpenOptions};
use std::io::ErrorKind;
Expand Down
1 change: 0 additions & 1 deletion src/http_util.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

use errors;
use errors::{DenoError, DenoResult};
use tokio_util;
Expand Down
1 change: 0 additions & 1 deletion src/ops.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

use errors;
use errors::permission_denied;
use errors::{DenoError, DenoResult, ErrorKind};
Expand Down
1 change: 0 additions & 1 deletion src/tokio_util.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.

use resources::Resource;

use futures;
Expand Down
1 change: 1 addition & 0 deletions tools/benchmark_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
import sys
import os
import benchmark
Expand Down
1 change: 1 addition & 0 deletions tools/build_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
import sys
from build import main as build
from test import main as test
Expand Down
1 change: 1 addition & 0 deletions tools/check_output_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Given a deno executable, this script execute several integration tests
# with it. The tests are stored in //tests/ and each script has a corresponding
# .out file which specifies what the stdout should be.
Expand Down
1 change: 1 addition & 0 deletions tools/deno_dir_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Check deno dir is created properly
# Usage: deno_dir_test.py [path to deno dir]
import os
Expand Down
1 change: 1 addition & 0 deletions tools/format.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
from glob import glob
import os
from third_party import third_party_path, fix_symlinks, google_env, clang_format_path
Expand Down
2 changes: 1 addition & 1 deletion tools/http_benchmark.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python

# Copyright 2018 the Deno authors. All rights reserved. MIT license.
import os
import sys
import util
Expand Down
1 change: 1 addition & 0 deletions tools/http_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Many tests expect there to be an http server on port 4545 servering the deno
# root directory.
import os
Expand Down
1 change: 1 addition & 0 deletions tools/lint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Does google-lint on c++ files and ts-lint on typescript files

import os
Expand Down
1 change: 1 addition & 0 deletions tools/node_http.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
const http = require("http");
const port = process.argv[2] || "4544";
console.log("port", port);
Expand Down
1 change: 1 addition & 0 deletions tools/rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
max_width = 80
tab_spaces = 2
1 change: 1 addition & 0 deletions tools/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
import third_party
from util import build_mode, build_path, enable_ansi_colors, root_path, run
from util import shell_quote
Expand Down
1 change: 0 additions & 1 deletion tools/setup_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Copyright 2018 the Deno authors. All rights reserved. MIT license.

import os
from setup import gn_string, read_gn_args, write_gn_args
from shutil import rmtree
Expand Down
1 change: 1 addition & 0 deletions tools/sync_third_party.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Run this script if you are changing Deno's dependencies.
# To update the deno_third_party git repo after running this, try the following:
# cd third_party
Expand Down
1 change: 1 addition & 0 deletions tools/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# Runs the full test suite.
# Usage: ./tools/test.py out/Debug
import os
Expand Down
1 change: 1 addition & 0 deletions tools/third_party.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
# This script contains helper functions to work with the third_party subrepo.

import os
Expand Down
1 change: 1 addition & 0 deletions tools/unit_tests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
import util
import sys
import subprocess
Expand Down
1 change: 1 addition & 0 deletions website/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- Copyright 2018 the Deno authors. All rights reserved. MIT license. -->
<!DOCTYPE html>
<html>
<head>
Expand Down

0 comments on commit b809a82

Please sign in to comment.