           return []
 
         try
-          result = linter.lintText({
-            text: editor.getText(),
-            format: path.extname(filePath).slice(1),
-            filename: filePath
-          }, {}, config)
+          compiledConfig = linter.getConfig({}, config)
+
+          if globule.isMatch(compiledConfig.files.include, this.getFilePath(filePath)[1]) and not globule.isMatch(compiledConfig.files.ignore, this.getFilePath(filePath)[1])
+            result = linter.lintText({
+              text: editor.getText(),
+              format: path.extname(filePath).slice(1),
+              filename: filePath
+            }, {}, config)
         catch error
           messages = []
           match = error.message.match /Parsing error at [^:]+: (.*) starting from line #(\d+)/

      description: 'If you\'d like to use a copy of sass-lint other than the one included with this package, specify the path to it here e.g. \'/Users/username/packages/sass-lint\''
      type: 'string'
      default: path.join(__dirname, '..', 'node_modules', 'sass-lint')

  activate: ->
    require('atom-package-deps').install()

          else
            atom.notifications.addError """
              **sass-lint had a problem**
              Please consider filing an issue with [linter-sass-lint](https://github.com/AtomLinter/linter-sass-lint)
              or [sass-lint](https://github.com/sasstools/sass-lint) including the text below and any other
              information possible.

              #{error.stack}
            """, {dismissable: true}
