 
   # Uncomment for test files
   #directoryFilters: ['Accounts & Users']
-  #fileFilters: 'creating-users.md'
+  #fileFilters: '!sinatra.md'
 
   readOpts: ->
     root: path.join(__dirname, '..')
     fileFilter: @fileFilters
     directoryFilter: @directoryFilters
 
+  fileIsIgnored: (file) ->
+    _.indexOf(Ignored.files, file) >= 0
+
+  loadIgnored: ->
+    files = fs.readFileSync 'commit_analyzer_ignore.txt', 'utf-8'
+    files = files.split('\n')
+    _.each files, (file) -> Ignored.files.push file
+
 App.analyze()

F =
  failed: null

App =
  analyze: ->
    readdirp @readOpts(), (file) =>
      _.each @parsers, (parser) =>
        failed = F.failed
        F.failed = parser.parse(file, failed)

path         = require('path')
es           = require('event-stream')
coffeescript = require('coffee-script')
fs           = require('graceful-fs')
_            = require('underscore')

#
