Skip to content

Commit 7a2a515

Browse files
greenkeeper[bot]gregswindle
authored andcommitted
fix(codacy-coverage): update to v3.0.0
* fix(lint-staged): update to version 7.0.5 * style(color): make colors consistent Make badge colors with GitHub issue and PR status colors, and create greater contrast for the contributing button. * test(jest): extend timeout for api tests Add done calls * test(jest): extend timeout for api tests Add done calls * test(jest): extend timeout for api tests Add done calls * fix(codacy-coverage): update to version 3.0.0 * fix(codacy-coverage): update to v3.0.0
1 parent 941a070 commit 7a2a515

File tree

115 files changed

+44513
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+44513
-91
lines changed

.env.defaults

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,21 @@
1010

1111
# ENV VARS defaults for readme-inspector:
1212

13-
# ReadmeAppraisal
13+
# ReadmeAppraisal REST API
14+
# 💼 Modify this if you are using a company hosted installation.
1415
API_ENDPOINT_README_SCORE="http://readme-score-api.herokuapp.com/score.json?url=&human_breakdown=false&force=false"
1516

16-
# Bitbucket REST API v1.0 and v2.0 base url. Modify this if you're using
17-
# on-premise, company-hosted Bitbucket servers.
17+
# Bitbucket REST API v1.0 and v2.0 base url.
18+
# 💼 Modify this if you're using on-premise, company-hosted Bitbucket servers.
1819
BITBUCKET_API_BASE_URL="https://api.bitbucket.org"
1920

2021
## Google Analytics trackingCode
2122
GA_README_INSPECTOR="UA-117338111-1"
2223

23-
# GitHub REST API v3 baseUrl. Modify this if you're using GitHub Enterprise.
24+
# GitHub REST API v3 baseUrl.
25+
# 💼 Modify this if you're using GitHub Enterprise.
2426
GITHUB_API_BASE_URL="https://api.github.com"
2527

26-
# readme-score-api base url. Modify this if you're using it
27-
# behind a company firewall.
28+
# readme-score-api base url.
29+
# 💼 Modify this if you've installed it behind a company firewall.
2830
README_SCORE_API_BASE_URL="http://readme-score-api.herokuapp.com"

.env.schema

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@
1010

1111
# ENV VARS required for readme-inspector
1212
## Add values to these ENV VARs and save to
13-
## {your-project-root-directory}/.env
13+
## {your-project-root-directory}/.env, e.g.,
14+
## if your root project directory is
15+
##
16+
## $ more-bort-license-plates/
17+
##
18+
## then save your .env file to
19+
##
20+
## $ more-bort-license-plates/.env
1421

15-
# 🔹 OPTIONAL env vars:
22+
# 🔹 OPTIONAL env vars (set in .env.defaults):
1623
API_ENDPOINT_README_SCORE=
1724
BITBUCKET_API_BASE_URL=
1825
GA_README_INSPECTOR=

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@
623623
| [lodash.camelcase@4.3.0](https://lodash.com/) | The lodash method `_.camelCase` exported as a module. | 4.3.0 | MIT | production |
624624
| [lodash.mapkeys@4.6.0](https://lodash.com/) | The lodash method `_.mapKeys` exported as a module. | 4.6.0 | MIT | production |
625625
| [lodash.noop@3.0.1](https://lodash.com/) | The lodash method `_.noop` exported as a module. | 3.0.1 | MIT | production |
626-
| [meow@5.0.0](https://github.com/sindresorhus/meow#readme) | CLI app helper | 4.0.0 | MIT | production |
626+
| [meow@5.0.0](https://github.com/sindresorhus/meow#readme) | CLI app helper | 5.0.0 | MIT | production |
627627
<!-- AUTO-GENERATED-CONTENT:END -->
628628
629629
### 7.2. Development
@@ -638,7 +638,7 @@
638638
| [@semantic-release/npm@3.2.4](https://github.com/semantic-release/npm#readme) | Set of semantic-release plugins to publish to a npm registry | 3.2.4 | MIT | dev |
639639
| [ajv@6.4.0](https://github.com/epoberezkin/ajv) | Another JSON Schema Validator | 6.4.0 | MIT | dev |
640640
| [ajv-keywords@3.1.0](https://github.com/epoberezkin/ajv-keywords#readme) | Custom JSON-Schema keywords for Ajv validator | 3.1.0 | MIT | dev |
641-
| [codacy-coverage@2.1.1](https://github.com/codacy/node-codacy-coverage) | Code Coverage reporter for Codacy.com | 2.1.1 | MIT | dev |
641+
| [codacy-coverage@3.0.0](https://github.com/codacy/node-codacy-coverage) | Code Coverage reporter for Codacy.com | 2.1.1 | MIT | dev |
642642
| [commitplease@3.2.0](https://github.com/jzaefferer/commitplease#readme) | Validates strings as commit messages | 3.2.0 | MIT | dev |
643643
| [coveralls@3.0.0](https://github.com/nickmerwin/node-coveralls#readme) | takes json-cov output into stdin and POSTs to coveralls.io | 3.0.0 | BSD-2-Clause | dev |
644644
| [eslint@4.19.1](https://eslint.org) | An AST-based pattern checker for JavaScript. | 4.19.1 | MIT | dev |
@@ -654,7 +654,7 @@
654654
| [eslint-plugin-prettier@^2.2.0](https://github.com/prettier/eslint-plugin-prettier#readme) | Runs prettier as an eslint rule | 2.6.0 | MIT | dev |
655655
| [eslint-plugin-promise@3.7.0](https://github.com/xjamundx/eslint-plugin-promise#readme) | Enforce best practices for JavaScript promises | 3.7.0 | ISC | dev |
656656
| [eslint-plugin-security@1.4.0](https://github.com/nodesecurity/eslint-plugin-security#readme) | Security rules for eslint | 1.4.0 | Apache-2.0 | dev |
657-
| [eslint-plugin-standard@3.1.0](https://github.com/xjamundx/eslint-plugin-standard#readme) | ESlint Plugin for the Standard Linter | 3.0.1 | MIT | dev |
657+
| [eslint-plugin-standard@3.1.0](https://github.com/xjamundx/eslint-plugin-standard#readme) | ESlint Plugin for the Standard Linter | 3.1.0 | MIT | dev |
658658
| [eslint-plugin-unicorn@4.0.3](https://github.com/sindresorhus/eslint-plugin-unicorn#readme) | Various awesome ESLint rules | 4.0.3 | MIT | dev |
659659
| [eslint-plugin-xss@0.1.9](https://github.com/Rantanen/eslint-plugin-xss#readme) | Validates XSS related issues of mixing HTML and non-HTML content in variables. | 0.1.9 | ISC | dev |
660660
| [fixpack@2.3.1](https://github.com/henrikjoreteg/fixpack) | cli tool that cleans up package.json files. | 2.3.1 | MIT | dev |
@@ -663,7 +663,7 @@
663663
| [jest-runner-eslint@0.4.0](https://github.com/jest-community/jest-runner-eslint) | An experimental ESLint runner for Jest | 0.4.0 | MIT | dev |
664664
| [jsdoc@3.5.5](https://github.com/jsdoc3/jsdoc#readme) | An API documentation generator for JavaScript. | 3.5.5 | Apache-2.0 | dev |
665665
| [lec@^1.0.1](https://github.com/iShafayet/lec) | Command Line Wrapper for Line Ending Corrector (An utility that makes sure your files have consistent line endings) | 1.0.1 | MIT | dev |
666-
| [lint-staged@7.0.5](https://github.com/okonet/lint-staged#readme) | Lint files staged by git | 7.0.4 | MIT | dev |
666+
| [lint-staged@7.0.5](https://github.com/okonet/lint-staged#readme) | Lint files staged by git | 7.0.5 | MIT | dev |
667667
| [lodash.isundefined@3.0.1](https://lodash.com/) | The modern build of lodash’s `_.isUndefined` as a module. | 3.0.1 | MIT | dev |
668668
| [lodash.set@4.3.2](https://lodash.com/) | The lodash method `_.set` exported as a module. | 4.3.2 | MIT | dev |
669669
| [markdown-magic@0.1.21](https://github.com/DavidWells/markdown-magic#readme) | Automatically update markdown files with content from external sources | 0.1.21 | MIT | dev |

.github/assets/examples/usage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ readmeInspector.authenticate({
1919
// 1. Has a README, and
2020
// 2. Score the README for quality.
2121

22-
const info = await readmeInspector.check(
23-
'gregswindle',
24-
'github-resource-converter'
25-
)
22+
const info = await readmeInspector.check({
23+
owner: 'gregswindle',
24+
repo: 'github-resource-converter'
25+
})
2626

2727
// Display the resulting readmeInfo as a
2828
// JSON string.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
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.
44

5+
<a name="2.0.5"></a>
6+
7+
## [2.0.5](https://github.com/commonality/readme-inspector/compare/v2.0.4...v2.0.5) (2018-04-27)
8+
9+
### Bug Fixes
10+
11+
* **codacy-coverage:** update to v3.0.0 ([3892fc5](https://github.com/commonality/readme-inspector/commit/3892fc5))
12+
* **codacy-coverage:** update to version 3.0.0 ([6990e17](https://github.com/commonality/readme-inspector/commit/6990e17))
13+
* **lint-staged:** update to version 7.0.5 ([5c257cd](https://github.com/commonality/readme-inspector/commit/5c257cd))
14+
515
<a name="2.0.2"></a>
616

717
## [2.0.2](https://github.com/commonality/readme-inspector/compare/v2.0.3...v2.0.2) (2018-04-26)

README.md

Lines changed: 51 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<!-- 🚫 AUTO-GENERATED-CONTENT:START (TOC:excludeText=Table of contents) -->
2222
- [1. Installation](#1-installation)
2323
- [2. Configuration](#2-configuration)
24+
* [2.1. Setting environment variables](#21-setting-environment-variables)
2425
- [2. Usage](#2-usage)
2526
- [3. API](#3-api)
2627
* [3.1. `authenticate({token, type, key})`](#31-authenticatetoken-type-key)
@@ -61,22 +62,34 @@ The `commonality/readme-inspector` module combines the mediator, proxy, and fact
6162
* README detection with the `readmeInfo` object, and
6263
* Quality assessment with the `readmeInfo.appraisal` object.
6364

64-
Since both of these features invoke Web services to return information, they both use `.env` variables
65+
### 2.1. Setting environment variables
66+
67+
`readme-inspector` invokes Web services to return information. These services use `.env` variables
6568
that require configuration:
6669

6770
```properties
68-
# 🔹 OPTIONAL env vars
71+
# ENV VARS defaults for readme-inspector:
6972

70-
# API endpoint for the readme-score-api (with default value)
73+
# ReadmeAppraisal REST API
74+
# 💼 Modify this if you are using a company hosted installation.
7175
API_ENDPOINT_README_SCORE="http://readme-score-api.herokuapp.com/score.json?url=&human_breakdown=false&force=false"
7276

73-
# Google Analytics trackingCode (with default value)
77+
# Bitbucket REST API v1.0 and v2.0 base url.
78+
# 💼 Modify this if you're using on-premise,
79+
# company-hosted Bitbucket servers.
80+
BITBUCKET_API_BASE_URL="https://api.bitbucket.org"
81+
82+
## Google Analytics trackingCode
7483
GA_README_INSPECTOR="UA-117338111-1"
7584

76-
# 🔸 GitHub token variables to extend GitHub API rate limits
77-
# from 60 requests per minute to 5,000 requests per minute:
78-
GH_TOKEN=
79-
GITHUB_ACCESS_TOKEN=
85+
# GitHub REST API v3 baseUrl.
86+
# 💼 Modify this if you're using GitHub Enterprise, e.g.,
87+
# GITHUB_API_BASE_URL="https://evilcorp.github.com/v3
88+
GITHUB_API_BASE_URL="https://api.github.com"
89+
90+
# readme-score-api base url.
91+
# 💼 Modify this if you've installed it behind a company firewall.
92+
README_SCORE_API_BASE_URL="http://readme-score-api.herokuapp.com"
8093
```
8194

8295
> ![light-bulb][octicon-light-bulb] **To avoid rate-limiting**, you should [create a personal access token ![External link][octicon-link-external]](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) and save your personal access token in an environment variable called `GH_TOKEN`.
@@ -107,9 +120,16 @@ Defines a schema of what variables should be defined in the combination of
107120

108121
# ENV VARS required for readme-inspector
109122
## Add values to these ENV VARs and save to
110-
## {your-project-root-directory}/.env
111-
112-
# 🔹 OPTIONAL env vars:
123+
## {your-project-root-directory}/.env, e.g.,
124+
## if your root project directory is
125+
##
126+
## $ more-bort-license-plates/
127+
##
128+
## then save your .env file to
129+
##
130+
## $ more-bort-license-plates/.env
131+
132+
# 🔹 OPTIONAL env vars (set in .env.defaults):
113133
API_ENDPOINT_README_SCORE=
114134
BITBUCKET_API_BASE_URL=
115135
GA_README_INSPECTOR=
@@ -149,21 +169,23 @@ file.
149169

150170
# ENV VARS defaults for readme-inspector:
151171

152-
# ReadmeAppraisal
172+
# ReadmeAppraisal REST API
173+
# 💼 Modify this if you are using a company hosted installation.
153174
API_ENDPOINT_README_SCORE="http://readme-score-api.herokuapp.com/score.json?url=&human_breakdown=false&force=false"
154175

155-
# Bitbucket REST API v1.0 and v2.0 base url. Modify this if you're using
156-
# on-premise, company-hosted Bitbucket servers.
176+
# Bitbucket REST API v1.0 and v2.0 base url.
177+
# 💼 Modify this if you're using on-premise, company-hosted Bitbucket servers.
157178
BITBUCKET_API_BASE_URL="https://api.bitbucket.org"
158179

159180
## Google Analytics trackingCode
160181
GA_README_INSPECTOR="UA-117338111-1"
161182

162-
# GitHub REST API v3 baseUrl. Modify this if you're using GitHub Enterprise.
183+
# GitHub REST API v3 baseUrl.
184+
# 💼 Modify this if you're using GitHub Enterprise.
163185
GITHUB_API_BASE_URL="https://api.github.com"
164186

165-
# readme-score-api base url. Modify this if you're using it
166-
# behind a company firewall.
187+
# readme-score-api base url.
188+
# 💼 Modify this if you've installed it behind a company firewall.
167189
README_SCORE_API_BASE_URL="http://readme-score-api.herokuapp.com"
168190
```
169191
<!-- AUTO-GENERATED-CONTENT:END -->
@@ -223,10 +245,10 @@ readmeInspector.authenticate({
223245
// 1. Has a README, and
224246
// 2. Score the README for quality.
225247

226-
const info = await readmeInspector.check(
227-
'gregswindle',
228-
'github-resource-converter'
229-
)
248+
const info = await readmeInspector.check({
249+
owner: 'gregswindle',
250+
repo: 'github-resource-converter'
251+
})
230252

231253
// Display the resulting readmeInfo as a
232254
// JSON string.
@@ -414,7 +436,7 @@ If a README is found, then the `readme-score-api` is invoked:
414436
> ```js
415437
> const readmeInfo = await readmeInspector.check({
416438
> owner: 'commonality',
417-
> ref: 'GH-1-feat-inspect-readmes',
439+
> ref: 'GH-1-a-topic-branch',
418440
> repo: 'readme-inspector'
419441
> })
420442
> ```
@@ -425,7 +447,7 @@ If a README is found, then the `readme-score-api` is invoked:
425447
> readmeInspector
426448
> .check({
427449
> owner: 'commonality',
428-
> ref: 'GH-1-feat-inspect-readmes',
450+
> ref: 'GH-1-a-topic-branch',
429451
> repo: 'readme-inspector'
430452
> })
431453
> .then(readmeInfo => {})
@@ -510,7 +532,7 @@ Retrieves README information _without_ any `AppraisalData`.
510532
> ```js
511533
> const readmeInfo = await readmeInspector.getInfo({
512534
> owner: 'commonality',
513-
> ref: 'GH-1-feat-inspect-readmes',
535+
> ref: 'GH-1-a-topic-branch',
514536
> repo: 'readme-inspector'
515537
> })
516538
> ```
@@ -521,11 +543,13 @@ Retrieves README information _without_ any `AppraisalData`.
521543
> readmeInspector
522544
> .getInfo({
523545
> owner: 'commonality',
524-
> ref: 'GH-1-feat-inspect-readmes',
546+
> ref: 'GH-1-a-topic-branch',
525547
> repo: 'readme-inspector'
526548
> })
527-
> .then(readmeInfo => {})
528-
> .catch(err => {})
549+
> .then(readmeInfo => readmeInfo)
550+
> .catch(err => {
551+
> console.error(err)
552+
> })
529553
> ```
530554
531555
### 3.4. `getAppraisal(url)`

docs/api/readme-inspector/2.0.2/ReadmeAppraisal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ <h5>Example</h5>
472472
<br class="clear">
473473

474474
<footer>
475-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 26 2018 03:59:57 GMT-0500 (CDT) using the Minami theme.
475+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 27 2018 16:18:04 GMT-0500 (CDT) using the Minami theme.
476476
</footer>
477477

478478
<script>prettyPrint();</script>

docs/api/readme-inspector/2.0.2/appraisal-data.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ <h1 class="page-title">appraisal-data.js</h1>
177177
<br class="clear">
178178

179179
<footer>
180-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 26 2018 03:59:57 GMT-0500 (CDT) using the Minami theme.
180+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 27 2018 16:18:04 GMT-0500 (CDT) using the Minami theme.
181181
</footer>
182182

183183
<script>prettyPrint();</script>

docs/api/readme-inspector/2.0.2/external-Contents.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h3>Example</h3>
161161
<br class="clear">
162162

163163
<footer>
164-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 26 2018 03:59:57 GMT-0500 (CDT) using the Minami theme.
164+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 27 2018 16:18:04 GMT-0500 (CDT) using the Minami theme.
165165
</footer>
166166

167167
<script>prettyPrint();</script>

docs/api/readme-inspector/2.0.2/external-Octokit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ <h2>
139139
<br class="clear">
140140

141141
<footer>
142-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Apr 26 2018 03:59:57 GMT-0500 (CDT) using the Minami theme.
142+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Apr 27 2018 16:18:04 GMT-0500 (CDT) using the Minami theme.
143143
</footer>
144144

145145
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)