diff --git a/lib/cli/analyze/log_helper.js b/lib/cli/analyze/log_helper.js index 1a6a478..7d4599f 100644 --- a/lib/cli/analyze/log_helper.js +++ b/lib/cli/analyze/log_helper.js @@ -64,7 +64,6 @@ var to_console_duplicate = function (issue) { }; var to_console_churn = function (issue) { return issue.path + ": " + issue.churn; }; var to_console_comp = function (issue) { return issue.path + ": " + issue.complexity; }; -var to_console_lang = function (issue) { return issue.path + ": " + issue.language; }; var to_console_scm = function (issue) { var date = _.get(issue, "commit.commit_date") || _.get(issue, "commit.author_date"); @@ -76,9 +75,11 @@ var to_console_stat = function (issue) { var loc = _.get(issue, "stat.loc", "?"); var lines = _.get(issue, "stat.lines", "?"); var comments = _.get(issue, "stat.comments", "?"); + var lang = _.get(issue, "stat.language", "?"); return issue.path + " " + ("(" + (size ? (Number(size) / 1024).toFixed(3) + "KB" : "") + ")") + - (": " + lines + " lines, " + loc + " loc, " + comments + " comments"); + (": " + lines + " lines, " + loc + " loc, " + comments) + + (" comments (language: " + lang + ")"); }; var to_console_dep = function (issue) { var name = _.get(issue, "dependency.name", "?"); @@ -186,10 +187,7 @@ var log_issue_messages = function (issues, showsnippets, nocolors) { } } else { - if (issue.type == util.LANG) { - nlog.info_issue(to_console_lang(issue) + msg_postfix); - } - else if (issue.type == util.SCM) { + if (issue.type == util.SCM) { nlog.info_issue(to_console_scm(issue) + msg_postfix); } else if (issue.type == util.STAT) { diff --git a/lib/cli/init/map.js b/lib/cli/init/map.js index 2c73444..dd7d916 100644 --- a/lib/cli/init/map.js +++ b/lib/cli/init/map.js @@ -4,7 +4,7 @@ var frameworks = { brakeman: ["brakeman"], bundler: ["bundler-outdated", "bundler-audit"], coffeelint: ["coffeelint"], - core: ["language", "stat"], + core: ["stat"], coverage: ["coverage"], editorconfig: ["eclint"], eslint: ["eslint"], diff --git a/lib/cli/init/pre.js b/lib/cli/init/pre.js index dbe0f9a..3a6dd4a 100644 --- a/lib/cli/init/pre.js +++ b/lib/cli/init/pre.js @@ -55,7 +55,7 @@ var check_for_existing_package_json = function (config) { name: "vile-project-dependency-config", private: true, scripts: { - "vile-publish": "vile a -u project_name -si --nodecorations" + "vile-publish": "vile a -n -u project_name" } }; var file_data = new Buffer(JSON.stringify(pkg_json_shell, null, " ")); diff --git a/lib/index.js b/lib/index.js index ba750d3..11d6879 100644 --- a/lib/index.js +++ b/lib/index.js @@ -10,7 +10,6 @@ var library = { DEP: util.DEP, DUPE: util.DUPE, ERR: util.ERR, - LANG: util.LANG, MAIN: util.MAIN, OK: util.OK, SCM: util.SCM, diff --git a/lib/util.js b/lib/util.js index bcdca81..2117faf 100644 --- a/lib/util.js +++ b/lib/util.js @@ -155,7 +155,6 @@ module.exports = { DEP: "dependency", DUPE: "duplicate", ERR: "error", - LANG: "lang", MAIN: "maintainability", OK: "ok", SCM: "scm", diff --git a/package.json b/package.json index 10af5a4..2f8ffcf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vile", - "version": "0.17.1", + "version": "0.18.0", "description": "A punishing yet easy to use tool for writing insightful code.", "main": "lib/index.js", "types": "src/@types/index.d.ts",