Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dockerlint

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dockerlint - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

25

lib/checks.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc