 
         # If ignore glob patterns are present
         if standardOpts.ignore
-          relativeFilePath = '' ## TODO get relative file path
           ignoreGlobPatterns = []
           ignoreGlobPatterns.concat standardOpts.ignore
 
           testGlobPatterns = ignoreGlobPatterns.some (pattern) ->
-            minimatch relativeFilePath pattern
+            return minimatch(relativeFilePath, pattern)
 
           if testGlobPatterns
             execPath = false

pkgConfig = require 'pkg-config'
binPath = require './bin-path.coffee'
minimatch = require 'minimatch'

class LinterJsStandard extends Linter


    # Default value
    execPath = false

    # This is the absolute path
    # of the project path relative
    # to the package.json
    projectPath = findRoot(@filePath)

    # Get relative path of the filePath
    relativeFilePath = @filePath.replace(projectPath, '')
    relativeFilePath = relativeFilePath.substring(1)

    if devDeps and (devDeps.standard or devDeps.semistandard)
      if devDeps.standard
        # Set execPath to standard bin
