dockerlint
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -62,4 +62,4 @@ // Generated by CoffeeScript 1.12.4 | ||
exports.getAllVariables = function(rules) { | ||
this.arg(rules); | ||
this.env(rules); | ||
this.arg(rules, true); | ||
this.env(rules, true); | ||
return utils.merge(exports.arg, exports.env); | ||
@@ -85,4 +85,3 @@ }; | ||
} else { | ||
o[argument] = ''; | ||
return 'ok'; | ||
return 'failed'; | ||
} | ||
@@ -314,4 +313,7 @@ if (env[0] && env[1]) { | ||
exports.env = function(rules) { | ||
exports.env = function(rules, ignore) { | ||
var environs, j, len, rule; | ||
if (ignore == null) { | ||
ignore = false; | ||
} | ||
environs = this.getAll('ENV', rules); | ||
@@ -321,3 +323,5 @@ for (j = 0, len = environs.length; j < len; j++) { | ||
if (exports.mergeVariables(exports.env, rule) !== 'ok') { | ||
utils.log('ERROR', "ENV invalid format " + rule["arguments"] + " on line " + rule.line); | ||
if (!ignore) { | ||
utils.log('ERROR', "ENV invalid format " + rule["arguments"] + " on line " + rule.line); | ||
} | ||
return 'failed'; | ||
@@ -329,4 +333,7 @@ } | ||
exports.arg = function(rules) { | ||
exports.arg = function(rules, ignore) { | ||
var j, k, len, len1, pre, ref, rule; | ||
if (ignore == null) { | ||
ignore = false; | ||
} | ||
ref = ['HTTP_PROXY', 'http_proxy', 'HTTPS_PROXY', 'http_proxy', 'FTP_PROXY', 'ftp_proxy', 'NO_PROXY', 'no_proxy']; | ||
@@ -341,3 +348,5 @@ for (j = 0, len = ref.length; j < len; j++) { | ||
if (exports.mergeVariables(exports.arg, rule) !== 'ok') { | ||
utils.log('ERROR', "ARG invalid format " + rule["arguments"] + " on line " + rule.line); | ||
if (!ignore) { | ||
utils.log('ERROR', "ARG invalid format " + rule["arguments"] + " on line " + rule.line); | ||
} | ||
return 'failed'; | ||
@@ -344,0 +353,0 @@ } |
{ | ||
"name": "dockerlint", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "Linting for Dockerfiles", | ||
@@ -5,0 +5,0 @@ "main": "bin/dockerlint", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44304
658