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

dockerfilelint

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dockerfilelint - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

.circleci/config.yml

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.5.0"></a>
# [1.5.0](https://github.com/replicatedhq/dockerfilelint/compare/v1.4.0...v1.5.0) (2019-02-04)
### Features
* Allows ARG before FROM ([#105](https://github.com/replicatedhq/dockerfilelint/issues/105)) ([5fa023d](https://github.com/replicatedhq/dockerfilelint/commit/5fa023d))
<a name="1.4.0"></a>

@@ -7,0 +17,0 @@ # [1.4.0](https://github.com/replicatedhq/dockerfilelint/compare/v1.3.0...v1.4.0) (2017-09-13)

2

lib/index.js

@@ -127,3 +127,3 @@ 'use strict';

// but is not the time (non blank, non commented) line
if (state.stages[state.stages.length - 1].instructionsProcessed === 0 && cmd !== 'from') {
if (state.stages[state.stages.length - 1].instructionsProcessed === 0 && (cmd !== 'arg' && cmd !== 'from')) {
items.push(messages.build(state.rules, 'from_first', line));

@@ -130,0 +130,0 @@ }

@@ -32,4 +32,4 @@ var reference = module.exports = {

'from_first': {
'title': 'First Command Must Be FROM',
'description': 'The first instruction in a Dockerfile must specify the base image using a FROM command. Additionally, FROM cannot appear later in a Dockerfile.',
'title': 'First Command Must Be FROM or ARG',
'description': 'The first instruction in a Dockerfile must specify the base image using a FROM command or an ARG command to modify the FROM command. Additionally, FROM cannot appear later in a Dockerfile.',
'category': 'Possible Bug'

@@ -36,0 +36,0 @@ },

{
"name": "dockerfilelint",
"version": "1.4.0",
"version": "1.5.0",
"description": "A linter for Dockerfiles to find bugs and encourage best practices",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

Sorry, the diff of this file is not supported yet

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