     counter
 
 extConfig = 
-    '.js': 
+    'js': 
         wordsReg: /\w/
         inlineCommentReg: /^\s*\/\//
         blockCommentStartReg: /\s*(\S*)\s*(\/\*)\s*/
         blockCommentEndReg: /(\*\/)\s*(\w)*\s*$/
-    '.java':
+    'java':
         wordsReg: /\w/
         inlineCommentReg: /^\s*\/\//
         blockCommentStartReg: /\s*(\S*)\s*(\/\*)\s*/
         blockCommentEndReg: /(\*\/)\s*(\w)*\s*$/
-    '.css':
+    'css':
         wordsReg: /\w/
         inlineCommentReg: /^\s*\/\//
         blockCommentStartReg: /\s*(\S*)\s*(\/\*)\s*/
         blockCommentEndReg: /(\*\/)\s*(\w)*\s*$/
-    '.coffee':
+    'coffee':
         wordsReg: /\w/
         inlineCommentReg: /^\s*\/\//
         blockCommentStartReg: /\s*(\S*)\s*(\/\*)\s*/
         blockCommentEndReg: /(\*\/)\s*(\w)*\s*$/
-    '.html':
+    'html':
         wordsReg: /\w/
         inlineCommentReg: /^\s*\/\//
         blockCommentStartReg: /\s*(\S*)\s*(<!--)\s*/

        if stats.isDirectory()
            walk fullPath, resultArray
        else
            ext = fullPath.match /.*(\..*)$/
            type = ext[1] if ext isnt null and ext[1] isnt null
            if not extConfig[type]
                continue


        'can not read :' + path + e

    # check type
    ext = p.extname path
    type = ext if ext isnt null
    type = 'js' if not extConfig[type]

    lines = content.split '\n'
    counter = 0
