     if typeof config == 'undefined'
       return
 
-    styleSettings =
-      standard: pkgConfig(null, { cwd: @filePath, root: 'standard' })
-      semistandard: pkgConfig(null, { cwd: @filePath, root: 'semistandard' })
-
     # see if setting checkStyleDevDependencies is true
     # if not fallback to style value to decide which bin
     # we should use
     if config.checkStyleDevDependencies
-      devDeps = pkgConfig(null, { cwd: @filePath, root: 'devDependencies' })
-      @executablePath = @formatDevDepsExecPath(devDeps, styleSettings)
+      @checkDevDeps()
     else
       if config.style == 'standard'
         @linterName = 'js-standard'

    relativeFilePath = @filePath.replace(projectPath, '')
    relativeFilePath = relativeFilePath.substring(1)

    if devDeps and (devDeps.standard or devDeps.semistandard)
      if devDeps.standard
        # Set execPath to standard bin
        # and change linter name
        # NOTE: this variable can be changed
        # along the logic flow
        @linterName = 'js-standard'
        execPath = binPath.standard

        # If ignore glob patterns are present
        if styleSettings.standard.ignore
          ignoreGlobPatterns = []
          ignoreGlobPatterns = ignoreGlobPatterns.concat styleSettings.standard.ignore

          testGlobPatterns = ignoreGlobPatterns.some (pattern) ->
            return minimatch(relativeFilePath, pattern)

          if testGlobPatterns
            execPath = false

      else
        # Set execPath to semistandard bin
        # and change linter name
        # NOTE: the execPath variable can be changed
        # along the logic flow
        @linterName = 'js-semistandard'
        execPath = binPath.semiStandard

        # If ignore glob patterns are present
        if styleSettings.semistandard.ignore
          ignoreGlobPatterns = []
          ignoreGlobPatterns = ignoreGlobPatterns.concat styleSettings.semistandard.ignore

          testGlobPatterns = ignoreGlobPatterns.some (pattern) ->
            return minimatch(relativeFilePath, pattern)

          if testGlobPatterns
            execPath = false

    execPath

  formatMessage: (match) ->
    if !match.error && !match.warning

      # No style path!
      @executablePath = path.resolve(__dirname, 'no-style.js')

  checkDevDeps: () ->
    # This get devDependencies property
    # from the nearest package.json
    devDeps = pkgConfig(null, { cwd: @filePath, root: 'devDependencies' })

    if devDeps and (devDeps.standard or devDeps.semistandard)
      if devDeps.standard
        # Set execPath to standard bin
        # and change linter name
        @linterName = 'js-standard'
        @executablePath = binPath.standard

      else
        # Set execPath to semistandard bin
        # and change linter name
        @linterName = 'js-semistandard'
        @executablePath = binPath.semiStandard
    else
      @executablePath = false

  checkStyleSettings: () ->
    # Default value
    styleSettings = false

    # This is the absolute path
    # of the project path relative
