hull-connector-tester
Advanced tools
Comparing version 0.0.12 to 0.0.13
# CHANGELOG | ||
## v0.0.13 | ||
- update docs | ||
## v0.0.12 | ||
@@ -4,0 +7,0 @@ - update readme |
{ | ||
"name": "hull-connector-tester", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/bin.js", |
@@ -8,2 +8,4 @@ # Hull Connector Tester | ||
You can think of it as code quality check tool, maybe we will even have badges/shields (as http://shields.io/) in future :) | ||
## Continuous Integration usage | ||
@@ -29,8 +31,11 @@ | ||
## What are current checks? | ||
Please review all files in [src/checks](./src/checks) directory. Each function perform one check and the purpose is descibed in the docblock. | ||
## How to add new check? | ||
1. Add new file in [src/checks](./src/checks) directory with the name of the check | ||
2. Create a function taking no arguments and returning `true` in case of success or `string` in case of error with error message | ||
2. Create a function taking no arguments and returning `true` in case of success or `string` in case of error with the error message | ||
3. Export this new check in [src/checks/index.js](./src/checks/index.js) | ||
4. bump version and update [CHANGELOG.md](./CHANGELOG.md) | ||
4. Bump version and update [CHANGELOG.md](./CHANGELOG.md) |
const fs = require("fs"); | ||
module.exports = function checkPackageEngines() { | ||
/** | ||
* This check enforces latest hull-node version | ||
* @return {boolean|string} | ||
*/ | ||
module.exports = function checkHullNodeVersion() { | ||
@@ -5,0 +9,0 @@ const allowedVersions = ["0.13.14"]; |
const fs = require("fs"); | ||
const jsonlint = require("jsonlint"); | ||
module.exports = function lintManifestJson() { | ||
/** | ||
* This check make sure that the manifest.json file is a valid json | ||
* @return {boolean|string} | ||
*/ | ||
module.exports = function checkManifestJsonLint() { | ||
const manifestJson = fs.readFileSync(`${process.cwd()}/manifest.json`, "utf-8"); | ||
@@ -6,0 +11,0 @@ try { |
const fs = require("fs"); | ||
/** | ||
* This check enforces specific versions of | ||
* node, npm and yarn being specified in package.json | ||
* @return {boolean|string} | ||
*/ | ||
module.exports = function checkPackageEngines() { | ||
@@ -4,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
77
39
0
6080
9