Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Adding licenses #67

Merged
merged 2 commits into from
Apr 7, 2018
Merged
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
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

npm-debug.log
package-lock.json
13 changes: 13 additions & 0 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/bin/bash

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#-- script to auto publish plugin to VSCode marketplace
# Exit on first error, print all commands.
set -ev
Expand Down
13 changes: 13 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/bin/bash

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#-- script to automate preinstall, server compile, and package
# Exit on first error, print all commands.
set -ev
Expand Down
13 changes: 13 additions & 0 deletions .travis/script.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/bin/bash

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#-- script to automate preinstall, server compile, and package
# Exit on first error, print all commands.
set -ev
Expand Down
11 changes: 11 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
out
server
node_modules
Expand Down
32 changes: 22 additions & 10 deletions client/.vscodeignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
.vscode/**
typings/**
out/test/**
test/**
src/**
**/*.map
.gitignore
.eslintignore
tsconfig.json
vsc-extension-quickstart.md
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

.vscode/**
typings/**
out/test/**
test/**
src/**
**/*.map
.gitignore
.eslintignore
tsconfig.json
vsc-extension-quickstart.md
11 changes: 11 additions & 0 deletions client/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
35 changes: 34 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,11 @@
"compile:client": "tsc -p ./",
"watch:client": "tsc -w -p ./",
"update-vscode": "node ./node_modules/vscode/bin/install",
"licchk": "license-check-and-add",
"postinstall": "node ./node_modules/vscode/bin/install",
"package:vsix": "node ./node_modules/vsce/out/vsce package",
"prepublish": "tsc -p ./",
"pretest": "npm run lint",
"pretest": "npm run lint & npm run licchk",
"test": "nyc node ./node_modules/vscode/bin/test --compilers ts:ts-node/register ./test/*.test.ts",
"tslint": "tslint",
"lint": "npm run tslint 'src/**/*.ts' 'test/extension.test.ts'"
Expand All @@ -264,6 +265,7 @@
"@types/node": "^6.0.52",
"angular-tslint-rules": "^1.2.1",
"chai": "^4.1.2",
"license-check-and-add": "~2.3.0",
"mocha": "^5.0.0",
"nyc": "^11.4.1",
"ts-node": "^4.1.0",
Expand Down Expand Up @@ -299,5 +301,36 @@
"branches": 0,
"functions": 0,
"lines": 0
},
"license-check-and-add-config": {
"folder": ".",
"license": "LICENSE.txt",
"exact_paths_method": "EXCLUDE",
"exact_paths": [
"node_modules",
"out",
"server"
],
"file_type_method": "EXCLUDE",
"file_types": [
".md",
".txt",
".vsix"
],
"insert_license": false,
"license_formats": {
"ts|acl|cto|js|qry": {
"prepend": "/*",
"append": "*/",
"eachLine": {
"prepend": " * "
}
},
"vscodeignore": {
"eachLine": {
"prepend": "# "
}
}
}
}
}
14 changes: 14 additions & 0 deletions client/test/data/valid/acl/permissions.acl
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* Access Control List for the bond data
*/
Expand Down
13 changes: 13 additions & 0 deletions client/test/data/valid/cto/bond.cto
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Definition of a Bond, based on the FpML schema:
* http://www.fpml.org/spec/fpml-5-3-2-wd-2/html/reporting/schemaDocumentation/schemas/fpml-asset-5-3_xsd/elements/bond.html
Expand Down
14 changes: 14 additions & 0 deletions client/test/data/valid/qry/queries.qry
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

query findBondAboveAFaceAmount {
description: "Find all bonds with a face amount greater than _$faceAmount"
statement: SELECT org.acme.bond.BondAsset WHERE (bond.faceAmount > _$faceAmount)
Expand Down
1 change: 1 addition & 0 deletions client/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import * as assert from 'assert';
import * as vscode from 'vscode';
import * as path from 'path';
Expand Down
14 changes: 14 additions & 0 deletions client/test/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

//
// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
//
Expand Down
12 changes: 12 additions & 0 deletions server/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

out
node_modules