Skip to content

Commit

Permalink
Sonar (#22)
Browse files Browse the repository at this point in the history
* ci: sonarlint

WAL-223

* chore: rebuild

* chore(release): 0.6.1
  • Loading branch information
mseaward authored May 10, 2019
1 parent 07b94ed commit c53c656
Show file tree
Hide file tree
Showing 159 changed files with 13,434 additions and 243 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.

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=
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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.

<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
4 changes: 1 addition & 3 deletions build/peerplaysjs-lib.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/peerplaysjs-lib.min.js

Large diffs are not rendered by default.

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 c53c656

Please sign in to comment.