Add repolinter support

Fix link in SECURITY file, and add missing copyright and license
notices.

To check, run: repolinter --rulesetUrl https://github.com/hyperledger-labs/hyperledger-community-management-tools/raw/main/repo_structure/repolint.json

Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
This commit is contained in:
Arnaud J Le Hors 2021-02-01 13:35:30 +01:00 committed by denyeart
parent e9122f86e7
commit 6d043af487
10 changed files with 42 additions and 13 deletions

View file

@ -8,5 +8,5 @@ There are two ways to report a security bug. The easiest is to email a descripti
The other way is to file a confidential security bug in our [JIRA bug tracking system](https://jira.hyperledger.org). Be sure to set the “Security Level” to “Security issue”. The other way is to file a confidential security bug in our [JIRA bug tracking system](https://jira.hyperledger.org). Be sure to set the “Security Level” to “Security issue”.
The process by which the Hyperledger Security Team handles security bugs is documented further in our [Defect Response page](https://wiki.hyperledger.org/display/HYP/Defect+Response) on our [wiki](https://wiki.hyperledger.org). The process by which the Hyperledger Security Team handles security bugs is documented further in our [Defect Response page](https://wiki.hyperledger.org/display/SEC/Defect+Response) on our [wiki](https://wiki.hyperledger.org).

View file

@ -1,3 +1,9 @@
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'; 'use strict';
const sinon = require('sinon'); const sinon = require('sinon');
const chai = require('chai'); const chai = require('chai');

View file

@ -1,3 +1,9 @@
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'; 'use strict';
const sinon = require('sinon'); const sinon = require('sinon');
const chai = require('chai'); const chai = require('chai');

View file

@ -1,5 +1,7 @@
/* /*
SPDX-License-Identifier: Apache-2.0 * Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/ */
// ====CHAINCODE EXECUTION SAMPLES (CLI) ================== // ====CHAINCODE EXECUTION SAMPLES (CLI) ==================

View file

@ -1,7 +1,9 @@
/* /*
SPDX-License-Identifier: Apache-2.0 * Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/ */
'use strict'; 'use strict';
const State = require('../ledger-api/state.js'); const State = require('../ledger-api/state.js');
@ -212,4 +214,4 @@ class QueryUtils {
} }
} }
module.exports = QueryUtils; module.exports = QueryUtils;

View file

@ -1,3 +1,9 @@
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
"use strict"; "use strict";
const yaml = require('js-yaml'); const yaml = require('js-yaml');

View file

@ -1,6 +1,7 @@
/* /*
SPDX-License-Identifier: Apache-2.0 * Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/ */
'use strict'; 'use strict';
@ -212,4 +213,4 @@ class QueryUtils {
} }
} }
module.exports = QueryUtils; module.exports = QueryUtils;

View file

@ -1,5 +1,7 @@
/* /*
SPDX-License-Identifier: Apache-2.0 * Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/ */
'use strict'; 'use strict';
@ -7,4 +9,4 @@ SPDX-License-Identifier: Apache-2.0
const tokenERC20Contract = require('./lib/tokenERC20.js'); const tokenERC20Contract = require('./lib/tokenERC20.js');
module.exports.TokenERC20Contract = tokenERC20Contract; module.exports.TokenERC20Contract = tokenERC20Contract;
module.exports.contracts = [tokenERC20Contract]; module.exports.contracts = [tokenERC20Contract];

View file

@ -1,5 +1,7 @@
/* /*
SPDX-License-Identifier: Apache-2.0 * Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/ */
'use strict'; 'use strict';
@ -410,4 +412,4 @@ class TokenERC20Contract extends Contract {
} }
module.exports = TokenERC20Contract; module.exports = TokenERC20Contract;

View file

@ -1,5 +1,7 @@
/* /*
SPDX-License-Identifier: Apache-2.0 * Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/ */
'use strict'; 'use strict';