Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
Rename prettyPrint() to prettyPrintWarnings()
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyOrekhov committed Mar 2, 2017
1 parent 812a789 commit c84938e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Bluebird = require("bluebird");

const lints = require("./lints");
const report = require("./report");
const prettyPrint = require("./pretty-print");
const prettyPrintWarnings = require("./pretty-print-warnings");

Bluebird.promisifyAll(fs);

Expand All @@ -22,7 +22,7 @@ module.exports = function cli({
.then(JSON.parse)
.then((config) => lints(config, lintersDirectory))
.then(report)
.then(prettyPrint)
.then(prettyPrintWarnings)
.tap(log)
.then(function setAndReturnExitCode(output) {
process.exitCode = Number(output.length > 0);
Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions test/pretty-print.js → test/pretty-print-warnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

const {test} = require("tap");

const prettyPrint = require("../src/pretty-print");
const prettyPrintWarnings = require("../src/pretty-print-warnings");

test("prettyPrint()", function (t) {
const result = prettyPrint({
test("prettyPrintWarnings()", function (t) {
const result = prettyPrintWarnings({
filesWithWarnings: {
fileNameA: [
{
Expand Down Expand Up @@ -78,8 +78,8 @@ fileNameC (linterA)
t.end();
});

test("prettyPrint()", function (t) {
const resultWithoutFiles = prettyPrint({filesWithWarnings: {}});
test("prettyPrintWarnings()", function (t) {
const resultWithoutFiles = prettyPrintWarnings({filesWithWarnings: {}});

t.strictSame(
resultWithoutFiles,
Expand Down

0 comments on commit c84938e

Please sign in to comment.