npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

codecoach

v1.5.2

Published

- ESLint - TSLint - MSBuild (both `msbuild.exe` and `dotnet build` commands) - ScalaStyle - AndroidLint - DartLint

Downloads

18

Readme

Lightweight code review tool. Provide lint output to CodeCoach, it will automatically review pull requests. CodeCoach uses node.js as run time. It can be run from any command line. So it can be integrated with any CI with ease.

Supported linters.

  • ESLint
  • TSLint
  • MSBuild (both msbuild.exe and dotnet build commands)
  • ScalaStyle
  • AndroidLint
  • DartLint

Supported source controls

  • GitHub
  • GitHub Enterprise

Prerequisite

Node.js v14 or later

Installation

Install it globally using npm

$ npm i -g codecoach

or Yarn

$ yarn global add codecoach

Usage

Use command codecoach with required config.

Example

$ codecoach --url="https://github.com/codeleague/codecoach" --pr=99 --token="token1234567890token" -f="eslint;/path/to/eslintoutput/json"

Configs

--url
Required

Repository url

--pr
Required

PR number to review

--token
Required

Repository access token. For GitHub, it's "Personal access tokens" in settings.

--buildLogFile or -f
Required, Repeatable

Build log content files config. Splitted in to 3 part, formatted in <type>;<path>[;<cwd>]

  • Type: one of dotnetbuild, msbuild, tslint, eslint, scalastyle, androidlint or dartlint
  • Path: Path to lint output file to be processed
  • cwd: Repository root directory for lint context (optional, will use current context if not provided)

For example,
Case 1: Run CodeCoach from repo root for eslint and dotnetbuild in the same lint context directory

--buildLogFile="eslint;./src/client/eslint-out.json" --buildLogFile="dotnetbuild;./src/api/msbuild.log"

Case 2: Run CodeCoach from somewhere else for androidlint (linter context is /path/to/project/root)

--buildLogFile="androidlint;./android-lint.xml;/path/to/project/root"
--output or -o
Optional

Parsed lint result output.

--removeOldComment
Optional

Remove existing CodeCoach comments before putting the new one in.

How to get lint output for CodeCoach

ESLint

Use -o <filename> to output lint result to file and -f json to format logs as JSON. (ref.)

TSLint

Use -o <filename> to output lint result to file and -t json or --format json to format logs as JSON. (ref.)

MSBuild and dotnet build

Use -fileLoggerParameters or -flp switch with msbuild, dotnet build or dotnet msbuild command to send logs to file. (ref.)

ScalaStyle

Result is already written to target/scalastyle-result.xml when project is built (ref.)

AndroidLint

Use -o <filename> to output lint result to file (ref.)

DartLint

Use -o <filename> on output lint result created by command dart analyze > <filename> in dart project (ref.)

Contribute

For contribution guidelines and project dev setup. Please see CONTRIBUTING.md