Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sfdc-generate-codeclimate-coverage

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sfdc-generate-codeclimate-coverage

Code coverage converter to codeclimate format from deployment result

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

sfdc-generate-codeclimate-coverage

Code coverage converter to codeclimate format from deployment result

Getting Started

Works in Unix like system. Windows is not tested.

Installing

npm install -g sfdc-generate-codeclimate-coverage

or

yarn globally add sfdc-generate-codeclimate-coverage

Usage

Command Line

$ sgc -h

  Usage: sgc [options]

  Code coverage converter to codeclimate format from deployment result

  Options:

    -t, --repotoken             code climate repo tok
    -c, --commit                commit sha
    -b, --branch                branch name
    -r, --repo                  salesforce repository path : ['.']
    -d, --deployfile            salesforce deploy result containing file : ['./deployResult.json']
    -o, --output                salesforce code climate coverage output file : ['./coverage.json']

Module

  const sgc = require('sfdc-generate-codeclimate-coverage');

  let deployResult = {} // deployment result file, pipe it from deployment or read it from a file
  sgc({
    'repotoken':'azertyuioiuytrez', // code climate repo token
    'commit': 'oiuyrertyuiopoiuy', // git commit id
    'branch': 'master', // branch name on which the deploy has been done
    'repo': '.', // salesforce metadata repository
  },deployResult,console.log)
  .then(coverage => {
    console.log(coverage); // pipe it or write it to a file
  });

Built With

  • commander - The complete solution for node.js command-line interfaces, inspired by Ruby's commander.

Versioning

SemVer is used for versioning.

Authors

  • Sebastien Colladon - Initial work - scolladon

License

This project is licensed under the MIT License - see the LICENSE.md file for details

FAQs

Package last updated on 09 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc