Skip to content

fix(cli): import fs-extra#11

Merged
gregswindle merged 36 commits intomasterfrom
GH-10-fix-fs-extra-error
Apr 3, 2018
Merged

fix(cli): import fs-extra#11
gregswindle merged 36 commits intomasterfrom
GH-10-fix-fs-extra-error

Conversation

@gregswindle
Copy link
Copy Markdown
Owner

@gregswindle gregswindle commented Apr 3, 2018

Description of change

  1. Add fs-extra as a dependency.
  2. Achieve passing tests with full coverage.
  3. Update npm-outdated dependencies.

Associated issue(s)

Closes #10
Resolves #9
Resolves #8
Resolves #7
Resolves #6

Acceptance criteria/task completion

  • The acceptance criteria for all associated issues have been completed, tested, and validated.

PR check-list

✅ Please review and check the appropriate items.

1. Code standards compliance

JavaScript Style Guide

  • ESLint passes.

2. Code quality Quality Gate

  • The quality gateways pass with an "A" grade.
Measure Scores
Complexity Complexity
Cognitive complexity
Complexity per Class
Complexity per file
Complexity per Function
Duplications Duplications
Issues Issues
Maintainability Code smells
Maintainability
Technical debt
Reliability Reliability
Security Security

3. Test coverage Coverage Status

  • The source code is 100% covered with passing specs.

** These tasks are not required to open a PR, and may be addresses while the PR is open.**

greenkeeper bot and others added 30 commits March 12, 2018 07:19
1. Mock @octokit/rest.js and dotenv
2. Refactor: rename github-resource-converter.js => base-resource-converter.js
3. Reports: send code coverage to Codacy
4. README.md: add contributing section
5. Add tests for baseResourceConverter

#1
1. Add enum exportType
2. Add object fileExporter
3. Add test fixtures

#1,#3,#4
1. Appveyor didn't like the quotes for the eslintrc config path
2. Travis still cannot find the tests
1. .eslintrc: switch-case: 2 spaces
2. .travis: git.depth = 1
3. .travis: no-npm-dedupe
4. .travis: send codacy coverage with npm-script posttest:ci:coverage:codacy
5. .env.example: better explanations with new envvars
6. manifest: format and add npm-scripts
7. docs: fix markdown-magic config to modify CONTRIBUTING.md

#1,#4
Attempt to run jest tests with full directory paths.

#1,#4
Error parsing appveyor.yml:
(Line: 37, Col: 5, Idx: 864) - (Line: 37, Col: 6, Idx: 865):
While scanning for the next token, find character that cannot
start any token

#1,#4
I'm about to give up on Jest! 😠

#1,#4
Moved __(fixtures|mocks|tests)__ dirs to rootDir 🤞
Try using the 'jest-runner-eslint' test runner for Travis-CI and Appveyor.

#1,#4
There's a reason why eslintrc is normally separated from gitignore.

#1,#4
Put directories back under lib/

#1,#4
Correct typo for the coverage directory, too.

#1,#4
- Point to the correct pathname
- Send coverage via an npm-script
Add exclusion patterns for tests, source, and CPD.

#1,#2,#3,#4
Remove trailing whitespaces at ends of lines (L48).
- Source: SonarCloud
- Ref: L48

#1,#2,#3,#4
1. Add fs-extra as a dependency.
2. Achieve passing tests with full coverage.
3. Update npm-outdated dependencies.

GH-10
@gregswindle gregswindle self-assigned this Apr 3, 2018
@gregswindle gregswindle added the greenkeeper Automated dependency update label Apr 3, 2018
@gregswindle
Copy link
Copy Markdown
Owner Author

SonarQube analysis reported 1 issue

  • MINOR 1 minor

Watch the comments in this conversation to review them.

const format = fileExporter.getExportFormat(cli.flags.dest)
const json = await getResources(cli, opts)
if (exportType.format.CSV === format) {
const data = await csvMediator.toCsv(json)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MINOR Immediately return this expression instead of assigning it to the temporary variable "data". rule

@gregswindle gregswindle added priority: critical Product unusable; address immediately status: accepted Defect confirmed or feature endorsed for work type: fix Defect repairs. ⇧ Bumps the PATCH semver. status: review needed type: defect Malfunctioning behavior type: refactor type: test labels Apr 3, 2018
@gregswindle gregswindle added this to the Fix CLI (v1.0.1) milestone Apr 3, 2018
@gregswindle gregswindle merged commit 3b988cf into master Apr 3, 2018
@gregswindle gregswindle deleted the GH-10-fix-fs-extra-error branch April 3, 2018 02:50
@gregswindle
Copy link
Copy Markdown
Owner Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

greenkeeper Automated dependency update priority: critical Product unusable; address immediately status: accepted Defect confirmed or feature endorsed for work status: review needed type: defect Malfunctioning behavior type: fix Defect repairs. ⇧ Bumps the PATCH semver. type: refactor type: test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant