From d24fe09162bebf23ec1647c227c4b7ce6569998d Mon Sep 17 00:00:00 2001 From: Dimitri Alexander Kopriwa Date: Tue, 26 Jun 2018 23:20:36 +0700 Subject: [PATCH 1/3] fix(travis): not forcing on build tag --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 80f0475..43eebbe 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,17 @@ # accept-dot-path [![Build Status](https://travis-ci.org/yeutech-lab/accept-dot-path.svg?branch=master)](https://travis-ci.org/yeutech-lab/accept-dot-path) [![npm Version](https://img.shields.io/npm/v/@yeutech-lab/accept-dot-path.svg?style=flat)](https://www.npmjs.com/package/@yeutech-lab/accept-dot-path) [![License](https://img.shields.io/npm/l/@yeutech-lab/accept-dot-path.svg?style=flat)](https://www.npmjs.com/package/@yeutech-lab/accept-dot-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/@yeutech-lab/accept-dot-path.svg?style=flat)](https://npmjs.org/package/@yeutech-lab/accept-dot-path) [![NPM total downloads](https://img.shields.io/npm/dt/@yeutech-lab/accept-dot-path.svg?style=flat)](https://npmjs.org/package/@yeutech-lab/accept-dot-path) [![npm Version](https://img.shields.io/node/v/@yeutech-lab/accept-dot-path.svg?style=flat)](https://www.npmjs.com/package/@yeutech-lab/accept-dot-path) [![Module formats](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20esm-green.svg?style=flat)](https://www.npmjs.com/package/@yeutech-lab/accept-dot-path) -[![Comments (%)](https://sonarcloud.io/api/badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=comment_lines_density)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=comment_lines_density) -[![Open issues](https://sonarcloud.io/api/badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=open_issues)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=open_issues) -[![Code smells](https://sonarcloud.io/api/badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=code_smells)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=code_smells) -[![Technical debt](https://sonarcloud.io/api/badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=sqale_index)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=sqale_index) -[![Bugs](https://sonarcloud.io/api/badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=bugs)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=bugs) -[![Reliability remediation effort](https://sonarcloud.io/api/badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=reliability_remediation_effort)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=reliability_remediation_effort) -[![Coverage](https://sonarcloud.io/api/badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=coverage)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=coverage) +[![Comments (%)](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=comment_lines_density)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=comment_lines_density) +[![Open issues](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=open_issues)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=open_issues) +[![Code smells](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=code_smells)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=code_smells) +[![Technical debt](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=sqale_index)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=sqale_index) +[![Bugs](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=bugs)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=bugs) +[![Reliability remediation effort](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=reliability_remediation_effort)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=reliability_remediation_effort) +[![Coverage](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=coverage)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=coverage) accept-dot-path is a simple function that accept all path starting with dot(s). + ## Table of Contents - [Documentation](#documentation) From 90273784ff7645c0f6b086f42a441cc6b68e23d2 Mon Sep 17 00:00:00 2001 From: Dimitri Alexander Kopriwa Date: Tue, 26 Jun 2018 23:37:27 +0700 Subject: [PATCH 2/3] fix(travis): not forcing on build tag --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 43eebbe..b4b239e 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,23 @@ # accept-dot-path [![Build Status](https://travis-ci.org/yeutech-lab/accept-dot-path.svg?branch=master)](https://travis-ci.org/yeutech-lab/accept-dot-path) [![npm Version](https://img.shields.io/npm/v/@yeutech-lab/accept-dot-path.svg?style=flat)](https://www.npmjs.com/package/@yeutech-lab/accept-dot-path) [![License](https://img.shields.io/npm/l/@yeutech-lab/accept-dot-path.svg?style=flat)](https://www.npmjs.com/package/@yeutech-lab/accept-dot-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/@yeutech-lab/accept-dot-path.svg?style=flat)](https://npmjs.org/package/@yeutech-lab/accept-dot-path) [![NPM total downloads](https://img.shields.io/npm/dt/@yeutech-lab/accept-dot-path.svg?style=flat)](https://npmjs.org/package/@yeutech-lab/accept-dot-path) [![npm Version](https://img.shields.io/node/v/@yeutech-lab/accept-dot-path.svg?style=flat)](https://www.npmjs.com/package/@yeutech-lab/accept-dot-path) [![Module formats](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20esm-green.svg?style=flat)](https://www.npmjs.com/package/@yeutech-lab/accept-dot-path) -[![Comments (%)](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=comment_lines_density)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=comment_lines_density) -[![Open issues](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=open_issues)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=open_issues) -[![Code smells](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=code_smells)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=code_smells) -[![Technical debt](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=sqale_index)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=sqale_index) -[![Bugs](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=bugs)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=bugs) -[![Reliability remediation effort](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=reliability_remediation_effort)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=reliability_remediation_effort) -[![Coverage](https://sonarcloud.io/api/project_badges/measure?key=com.github.yeutech-lab.accept-dot-path&metric=coverage)](https://sonarcloud.io/component_measures?id=com.github.yeutech-lab.accept-dot-path&metric=coverage) +[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=bugs)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=bugs) +[![Code smells](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=code_smells)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=code_smells) +[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=coverage)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=coverage) +[![Duplicate lines (%)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=duplicated_lines_density)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=duplicated_lines_density) +[![Lines of code](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=ncloc)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=ncloc) +[![Maintainability rating](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=sqale_rating)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=sqale_rating) +[![Quality gate status](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status) +[![Reliability rating](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status) +[![Security rating](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status) +[![Technical debt](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=sqale_index)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=sqale_index) +[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=vulnerabilities)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=vulnerabilities) accept-dot-path is a simple function that accept all path starting with dot(s). +https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=duplicated_lines_density + ## Table of Contents - [Documentation](#documentation) From ba0663d3cfe17041c80536e771be82971ddef218 Mon Sep 17 00:00:00 2001 From: Dimitri Alexander Kopriwa Date: Tue, 26 Jun 2018 23:41:14 +0700 Subject: [PATCH 3/3] fix(travis): not forcing on build tag --- .travis.yml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 47a3688..3a8d8ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,7 +53,7 @@ jobs: organization: $(echo $TRAVIS_REPO_SLUG | awk -F '/' '{print $1}') script: - npm run test - - sonar-scanner -Dsonar.branch=${TRAVIS_BRANCH} -Dsonar.projectVersion=${SONAR_VERSION} + - sonar-scanner -Dsonar.projectVersion=${SONAR_VERSION} # Job: Release - stage: release diff --git a/README.md b/README.md index b4b239e..9137902 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ [![Lines of code](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=ncloc)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=ncloc) [![Maintainability rating](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=sqale_rating)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=sqale_rating) [![Quality gate status](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status) -[![Reliability rating](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status) -[![Security rating](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=alert_status) +[![Reliability rating](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=reliability_rating)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=reliability_rating) +[![Security rating](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=security_rating)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=security_rating) [![Technical debt](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=sqale_index)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=sqale_index) [![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=vulnerabilities)](https://sonarcloud.io/api/project_badges/measure?project=com.github.yeutech-lab.accept-dot-path&metric=vulnerabilities)