Skip to content

Commit

Permalink
sync with master (#31)
Browse files Browse the repository at this point in the history
* Pbsa develop (#28)

* Sonar (#22)

* ci: sonarlint

WAL-223

* chore: rebuild

* chore(release): 0.6.1

* PJL-24: security patches (#26)

* Sonar (#22)

* ci: sonarlint

WAL-223

* chore: rebuild

* chore(release): 0.6.1

* ci(packages): update packages to latest where possible

two audit reports cannot be resolved as we cannot update a packages dependencies ourself. They are
dev only issues so production is safe from these warnings

PJL-24-security-patches

* build: rebuild after npm package upgrades

* chore: rebuild after pbsa-develop merge sync and conflict resolution

* Patch npmignore file (#29)

* chore(release): 0.6.2

* chore(release): 0.6.3

* chore(.npmignore): patch npmignore file

ignore irrelevant files when publishing to NPM

* Update readme with sonar scan badges (#30)

* chore(release): 0.6.2

* chore(release): 0.6.3

* docs(readne): update readme to show status reports of repo

status reports are automatically synced/updated with sonarcloud
  • Loading branch information
mseaward authored Dec 12, 2019
1 parent 9bb4854 commit b5ba1b5
Show file tree
Hide file tree
Showing 159 changed files with 16,042 additions and 2,782 deletions.
96 changes: 55 additions & 41 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,43 +1,57 @@
{
"plugins": ["prettier"],
"extends": "airbnb",
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"no-unused-vars": ["error", {
"vars": "all", "args": "after-used"
}],
"comma-dangle": "off",
"indent": ["error", 2, {"SwitchCase": 1}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-console": "off",
"camelcase": "off",
"object-curly-spacing": ["error", "never"],
"prefer-const": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-useless-escape": "off",
"no-restricted-properties": "off",
"consistent-return": "off",
"guard-for-in": "off",
"no-loop-func": "off",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"default-case": "off",
"prefer-destructuring": "off",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" }
],
"arrow-parens": ["error", "always"],
"max-len": ["error", {"code": 100}],
"implicit-arrow-linebreak": ["error", "beside"]
}
"plugins": ["prettier"],
"extends": ["eslint:recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2017
},
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"no-throw-literal": "off",
"operator-assignment": "off",
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used"
}
],
"comma-dangle": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-console": "off",
"camelcase": "off",
"object-curly-spacing": ["error", "never"],
"prefer-const": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-useless-escape": "off",
"no-restricted-properties": "off",
"consistent-return": "off",
"guard-for-in": "off",
"no-loop-func": "off",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"default-case": "error",
"prefer-destructuring": "off",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" }
],
"max-len": ["error", { "code": 100 }],
"implicit-arrow-linebreak": ["error", "beside"],
"no-control-regex": "off",
"arrow-parens": ["error", "always"]
},
"settings": {
"import/resolver": "webpack"
}
}
1 change: 0 additions & 1 deletion .huskyrc.json

This file was deleted.

9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@ test
tools
examples
esdoc.json
lib
scripts
commitlint.config.js
config.fish
sonar-scanner
.scannerwork
.sonarlint
.babelrc
.prettierrc
.gitignore
.eslintrc
.editorconfig
.sonarcloud.properties
.prettierrc
Empty file added .scannerwork/.sonar_lock
Empty file.
7 changes: 7 additions & 0 deletions .scannerwork/report-task.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
organization=peerplays-network
projectKey=peerplays-network_peerplaysjs-lib
serverUrl=https://sonarcloud.io
serverVersion=7.8.0.24676
dashboardUrl=https://sonarcloud.io/dashboard?id=peerplays-network_peerplaysjs-lib
ceTaskId=AWqfCNTGvoFfNZkNe5G1
ceTaskUrl=https://sonarcloud.io/api/ce/task?id=AWqfCNTGvoFfNZkNe5G1
32 changes: 32 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# https://docs.sonarqube.org/latest/analysis/analysis-parameters/#AnalysisParameters-projectBaseDir
#----- Project key
sonar.projectKey=peerplays-network_peerplaysjs-lib

sonar.organization=peerplays-network

# Path to sources
sonar.sources=lib/

sonar.projectDescription='Pure JavaScript Peerplaysjs library for node.js and browsers.'

sonar.links.homepage=https://www.peerplays.com/

sonar.links.issue=https://github.com/peerplays-network/peerplaysjs-lib/issues

sonar.links.scm=https://github.com/peerplays-network/peerplaysjs-lib

sonar.host.url=https://sonarcloud.io

#sonar.exclusions=
#sonar.inclusions=

# Path to tests
#sonar.tests=
#sonar.test.exclusions=
#sonar.test.inclusions=

# Source encoding
#sonar.sourceEncoding=UTF-8

# Exclusions for copy-paste detection
#sonar.cpd.exclusions=
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Change Log
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.6.3](https://github.com/peerplays-network/peerplaysjs-lib/compare/v0.6.0...v0.6.3) (2019-12-12)

### [0.6.2](https://github.com/peerplays-network/peerplaysjs-lib/compare/v0.6.0...v0.6.2) (2019-12-12)

<a name="0.6.1"></a>
## [0.6.1](https://github.com/peerplays-network/peerplaysjs-lib/compare/v0.6.0...v0.6.1) (2019-05-10)



<a name="0.6.0"></a>
# [0.6.0](https://github.com/peerplays-network/peerplaysjs-lib/compare/v0.5.0...v0.6.0) (2019-04-15)

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ Most of this code was written by [jcalfee](https://github.com/jcalfee).
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)

<hr/>

[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-white.svg)](https://sonarcloud.io/dashboard?id=peerplays-network_peerplaysjs-lib)

[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=peerplays-network_peerplaysjs-lib&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=peerplays-network_peerplaysjs-lib) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=peerplays-network_peerplaysjs-lib&metric=alert_status)](https://sonarcloud.io/dashboard?id=peerplays-network_peerplaysjs-lib) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=peerplays-network_peerplaysjs-lib&metric=security_rating)](https://sonarcloud.io/dashboard?id=peerplays-network_peerplaysjs-lib)

[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=peerplays-network_peerplaysjs-lib&metric=bugs)](https://sonarcloud.io/dashboard?id=peerplays-network_peerplaysjs-lib) [![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=peerplays-network_peerplaysjs-lib&metric=ncloc)](https://sonarcloud.io/dashboard?id=peerplays-network_peerplaysjs-lib) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=peerplays-network_peerplaysjs-lib&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=peerplays-network_peerplaysjs-lib)

<hr/>

## Setup

This library can be obtained through npm:
Expand Down
6 changes: 6 additions & 0 deletions config.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function nvm
bass source (brew --prefix nvm)/nvm.sh --no-use ';' nvm $argv
end

set -x NVM_DIR ~/.nvm
nvm use default --silent
Loading

0 comments on commit b5ba1b5

Please sign in to comment.