Skip to content

Commit f340033

Browse files
authored
Update Readme (#114)
* Update Readme I updated the readme file to fix a typo in the example command * Update Readme Also I updated the parameter used in the constructor because Linter is expecting a path (not the file)
1 parent 54e2dc6 commit f340033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ npm install git+https://github.com/projectatomic/dockerfile_lint
141141
Import and use the validator:
142142
```js
143143
var fs = require('fs');
144-
var rulefile = fs.readFileSync('/path/to/rulefile', 'utf8');
144+
var rulefile = '/path/to/rulefile';
145145
var DockerFileValidator = require('dockerfile_lint');
146-
var validator = new DockeFileValidator(rulefile);
146+
var validator = new DockerFileValidator(rulefile);
147147
var result = validator.validate(dockerfile);
148148
```
149149

0 commit comments

Comments
 (0)