Closed jwiebalk closed 4 years ago
This is great, thanks for the contribution!
@marccampbell thanks for merging this, would it be possible to get the npm package updated to include this change? We're using this in our linter but pulling from npm, we can switch it to just clone the repo and use it but using npm is easier 😸
@marccampbell It seems to me that this change is not include in the last published npm package (1.5.0 version). Is there a plan to publish an new version of the npm package soon?
@julie-garrone Thanks for @ mention. We'll publish a new version this week!
This add a configuration option so you can pass in the path to your configuration file and have it use the same config against all of the Dockerfile(s) the linter has found, before it looked for the
.dockerfilelintrc
next to the Dockerfile and if not found used its defaults.This option needs to be used with the path for the file not directly to the file. This is because https://github.com/replicatedhq/dockerfilelint/blob/master/lib/index.js#L85 adds the
.dockerfilelintrc
automatically. I'm happy to work on this further to allow you to pass the full path+filename if wanted.Here's the output showing this is working with both the short/long hand argument.
Default (no
.dockerfilelintrc
located next to Dockerfile)Short and longhand flags with specified
.dockerfilelintrc
I also included the fix from #119 since it seems like that is gonna get merged and it helped clean up the output avoiding that error. (Happy to remove that also if wanted, to keep the history clean)