Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Commit

Permalink
v0.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
brentlintner committed Jul 21, 2017
1 parent cefd20f commit 4f305b2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/cli/analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,25 @@ var logger = require("./../logger");
var plugin = require("./../plugin");
var upload = require("./analyze/upload");
var log_helper = require("./analyze/log_helper");
var DEFAULT_IGNORE_DIRS = [
".git",
"node_modules"
];
var log = logger.create("cli");
var log_and_exit = function (error) {
log.error(_.get(error, "stack", error));
process.exit(1);
};
var add_default_ignores = function (vile_yml) {
var base_ignore = _.get(vile_yml, "vile.ignore", []);
var new_ignore = _.uniq(_.concat(base_ignore, DEFAULT_IGNORE_DIRS));
_.set(vile_yml, "vile.ignore", new_ignore);
};
var analyze = function (opts, paths) {
var custom_plugins = typeof opts.plugins == "string" ?
_.compact(_.split(opts.plugins, ",")) : [];
var vile_yml = config.get();
add_default_ignores(vile_yml);
var exec_opts = {
combine: opts.combine,
dont_post_process: opts.dontPostProcess,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vile",
"version": "0.18.2",
"version": "0.18.3",
"description": "A punishing yet easy to use tool for writing insightful code.",
"main": "lib/index.js",
"types": "src/@types/index.d.ts",
Expand Down

0 comments on commit 4f305b2

Please sign in to comment.