// HadolintExecuteCommand Executes the Haskell Dockerfile Linter which is a smarter Dockerfile linter that helps you build [best practice](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/) Docker images.
funcHadolintExecuteCommand()*cobra.Command{
constSTEP_NAME="hadolintExecute"
metadata:=hadolintExecuteMetadata()
varstepConfighadolintExecuteOptions
varstartTimetime.Time
varcreateHadolintExecuteCmd=&cobra.Command{
Use:STEP_NAME,
Short:"Executes the Haskell Dockerfile Linter which is a smarter Dockerfile linter that helps you build [best practice](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/) Docker images.",
cmd.Flags().StringVar(&stepConfig.ConfigurationURL,"configurationUrl",os.Getenv("PIPER_configurationUrl"),"URL pointing to the .hadolint.yaml exclude configuration to be used for linting. Also have a look at `configurationFile` which could avoid central configuration download in case the file is part of your repository.")
cmd.Flags().StringVar(&stepConfig.ConfigurationUsername,"configurationUsername",os.Getenv("PIPER_configurationUsername"),"The username to authenticate")
cmd.Flags().StringVar(&stepConfig.ConfigurationPassword,"configurationPassword",os.Getenv("PIPER_configurationPassword"),"The password to authenticate")
cmd.Flags().StringVar(&stepConfig.DockerFile,"dockerFile",`./Dockerfile`,"Dockerfile to be used for the assessment.")
cmd.Flags().StringVar(&stepConfig.ConfigurationFile,"configurationFile",`.hadolint.yaml`,"Name of the configuration file used locally within the step. If a file with this name is detected as part of your repo downloading the central configuration via `configurationUrl` will be skipped. If you change the file's name make sure your stashing configuration also reflects this.")
cmd.Flags().StringVar(&stepConfig.ReportFile,"reportFile",`hadolint.xml`,"Name of the result file used locally within the step.")
Description:"Executes the Haskell Dockerfile Linter which is a smarter Dockerfile linter that helps you build [best practice](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/) Docker images.",