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.2.0 to 1.3.0

.editorconfig

15

CHANGELOG.md

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

<a name="1.3.0"></a>
# [1.3.0](https://github.com/replicatedhq/dockerfilelint/compare/v1.2.0...v1.3.0) (2017-09-12)
### Bug Fixes
* port/protocol is a valid Dockerfile syntax ([#85](https://github.com/replicatedhq/dockerfilelint/issues/85)) ([1698c61](https://github.com/replicatedhq/dockerfilelint/commit/1698c61))
### Features
* add --version cli option ([#87](https://github.com/replicatedhq/dockerfilelint/issues/87)) ([78b58e2](https://github.com/replicatedhq/dockerfilelint/commit/78b58e2))
<a name="1.2.0"></a>

@@ -7,0 +22,0 @@ # [1.2.0](https://github.com/replicatedhq/dockerfilelint/compare/v1.1.2...v1.2.0) (2017-07-03)

2

lib/checks.js

@@ -17,3 +17,3 @@ var parser = require('./parser');

expose_port_valid: function(port) {
return /^[0-9]+$/.test(port);
return /^([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(\/tcp|\/udp){0,1}$/.test(port);
},

@@ -20,0 +20,0 @@

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

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

@@ -22,6 +22,7 @@ # Linter and validator for Dockerfile

Options:
-o, --output Specify the format to use for output of linting results. Valid values
are `json` or `cli` (default). [string]
-j, --json Output linting results as JSON, equivalent to `-o json`. [boolean]
-h, --help Show help [boolean]
-o, --output Specify the format to use for output of linting results. Valid values
are `json` or `cli` (default). [string]
-j, --json Output linting results as JSON, equivalent to `-o json`. [boolean]
-v, --version Show version number [boolean]
-h, --help Show help [boolean]

@@ -28,0 +29,0 @@ Examples:

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