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

Commit

Permalink
v0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brentlintner committed Jun 30, 2017
1 parent c565c5e commit 545adef
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
10 changes: 4 additions & 6 deletions lib/cli/analyze/log_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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", "?");
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/init/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/init/pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, " "));
Expand Down
1 change: 0 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ module.exports = {
DEP: "dependency",
DUPE: "duplicate",
ERR: "error",
LANG: "lang",
MAIN: "maintainability",
OK: "ok",
SCM: "scm",
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.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",
Expand Down

0 comments on commit 545adef

Please sign in to comment.