dockerfilelint
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -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) |
@@ -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
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
190915
53
1891
5