cli/lint-docker.js
function getConfigFilePath () {
  // Look for configuration file in current working directory
  const files = fs.readdirSync(process.cwd())
  const configFile = files.find((filePath) => {
    return CONFIG_FILE_NAMES.find((configFileName) => filePath.indexOf(configFileName) !== -1)
  })

  // If no configuration file was found use recommend configuration
  if (!configFile) {
    return path.join(__dirname, '..', this.defaultConfig)
  }

  // Use configuration from current working directory
  return path.join(process.cwd(), configFile)
}
function getConfigFilePath () {
  // Look for configuration file in current working directory
  const files = fs.readdirSync(process.cwd())
  const configFile = files.find((filePath) => {
    return CONFIG_FILE_NAMES.find((configFileName) => filePath.indexOf(configFileName) !== -1)
  })

  // If no configuration file was found use recommend configuration
  if (!configFile) {
    return path.join(__dirname, '..', this.defaultConfig)
  }

  // Use configuration from current working directory
  return path.join(process.cwd(), configFile)
}
function getConfigFilePath ( ) { // Look for configuration file in current working directory const files = fs . readdirSync ( process . cwd ( ) ) const configFile = files . find ( ( filePath ) => { return CONFIG_FILE_NAMES . find ( ( configFileName ) => filePath . indexOf ( configFileName ) !== - 1 ) } ) // If no configuration file was found use recommend configuration if ( ! configFile ) { return path . join ( __dirname , '..' , this . defaultConfig ) } // Use configuration from current working directory return path . join ( process . cwd ( ) , configFile ) }
Get configuration options for dockerfile_lint
@returns {DockerfileLintConfig} dockerfile lint configuration options
Get configuration options for dockerfile_lint