exercism-analysis 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/exercism-analysis.gemspec +30 -0
- data/lib/exercism-analysis.rb +38 -0
- data/lib/exercism-analysis/adapters/adapter.rb +23 -0
- data/lib/exercism-analysis/adapters/clojure.rb +13 -0
- data/lib/exercism-analysis/adapters/go.rb +19 -0
- data/lib/exercism-analysis/adapters/javascript.rb +13 -0
- data/lib/exercism-analysis/adapters/python.rb +13 -0
- data/lib/exercism-analysis/adapters/ruby.rb +19 -0
- data/lib/exercism-analysis/analysis.rb +18 -0
- data/lib/exercism-analysis/analyzers/analyzer.rb +54 -0
- data/lib/exercism-analysis/analyzers/clojure/kibit.rb +25 -0
- data/lib/exercism-analysis/analyzers/go/golint.rb +23 -0
- data/lib/exercism-analysis/analyzers/javascript/jslint.rb +24 -0
- data/lib/exercism-analysis/analyzers/python/pylint.rb +24 -0
- data/lib/exercism-analysis/analyzers/ruby/control_flow.rb +21 -0
- data/lib/exercism-analysis/analyzers/ruby/enumerable_condition.rb +21 -0
- data/lib/exercism-analysis/analyzers/ruby/for_loop.rb +29 -0
- data/lib/exercism-analysis/analyzers/ruby/indentation.rb +21 -0
- data/lib/exercism-analysis/analyzers/ruby/iter_mutation.rb +37 -0
- data/lib/exercism-analysis/analyzers/ruby/output.rb +20 -0
- data/lib/exercism-analysis/analyzers/ruby/range.rb +28 -0
- data/lib/exercism-analysis/analyzers/ruby/roodi.rb +19 -0
- data/lib/exercism-analysis/analyzers/ruby/send.rb +25 -0
- data/lib/exercism-analysis/analyzers/ruby/shebang.rb +23 -0
- data/lib/exercism-analysis/analyzers/ruby/tab.rb +38 -0
- data/lib/exercism-analysis/processors/call_processor.rb +39 -0
- data/lib/exercism-analysis/processors/control_flow_processor.rb +27 -0
- data/lib/exercism-analysis/processors/enumerable_condition_processor.rb +31 -0
- data/lib/exercism-analysis/processors/for_loop_processor.rb +21 -0
- data/lib/exercism-analysis/processors/indentation_processor.rb +69 -0
- data/lib/exercism-analysis/processors/iter_mutation_processor.rb +50 -0
- data/lib/exercism-analysis/processors/processor.rb +34 -0
- data/lib/exercism-analysis/processors/range_processor.rb +23 -0
- data/lib/exercism-analysis/processors/send_processor.rb +23 -0
- data/lib/exercism-analysis/templates/each_to_map.rb +29 -0
- data/lib/exercism-analysis/templates/each_to_select.rb +31 -0
- data/lib/exercism-analysis/templates/range_exclusive.rb +19 -0
- data/lib/exercism-analysis/templates/template.rb +29 -0
- data/vendor/clojure/kibit-runner/LICENSE +214 -0
- data/vendor/clojure/kibit-runner/project.clj +10 -0
- data/vendor/clojure/kibit-runner/src/kibit_runner/core.clj +17 -0
- data/vendor/clojure/kibit-runner/target/kibit-runner-0.1.0-SNAPSHOT-standalone.jar +0 -0
- data/vendor/clojure/kibit-runner/target/kibit-runner-0.1.0-SNAPSHOT.jar +0 -0
- data/vendor/clojure/kibit-runner/target/stale/extract-native.dependencies +1 -0
- data/vendor/go/src/github.com/golang/lint/LICENSE +27 -0
- data/vendor/go/src/github.com/golang/lint/README +59 -0
- data/vendor/go/src/github.com/golang/lint/golint/golint.go +67 -0
- data/vendor/go/src/github.com/golang/lint/lint.go +1061 -0
- data/vendor/go/src/runner/golint_runner.go +23 -0
- data/vendor/javascript/jshint_runner.js +6 -0
- data/vendor/javascript/node_modules/jshint/README.md +47 -0
- data/vendor/javascript/node_modules/jshint/bin/apply +6 -0
- data/vendor/javascript/node_modules/jshint/bin/build +36 -0
- data/vendor/javascript/node_modules/jshint/bin/changelog +36 -0
- data/vendor/javascript/node_modules/jshint/bin/jshint +3 -0
- data/vendor/javascript/node_modules/jshint/bin/land +34 -0
- data/vendor/javascript/node_modules/jshint/data/ascii-identifier-data.js +22 -0
- data/vendor/javascript/node_modules/jshint/data/non-ascii-identifier-part-only.js +1570 -0
- data/vendor/javascript/node_modules/jshint/data/non-ascii-identifier-start.js +48477 -0
- data/vendor/javascript/node_modules/jshint/dist/jshint-rhino.js +60642 -0
- data/vendor/javascript/node_modules/jshint/dist/jshint.js +60525 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/README.md +196 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/cli.js +1139 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/cat.js +17 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/command.js +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/echo.js +54 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/glob.js +6 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/long_desc.js +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/progress.js +11 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/sort.js +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/spinner.js +9 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/static.coffee +27 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/examples/static.js +25 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/index.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/LICENSE +27 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/README.md +250 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/examples/g.js +9 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/examples/usr-local.js +9 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/glob.js +728 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/LICENSE +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/README.md +42 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/inherits.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/inherits_browser.js +23 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/package.json +51 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/node_modules/inherits/test.js +25 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/package.json +58 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/00-setup.js +176 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/bash-comparison.js +63 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/bash-results.json +351 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/cwd-test.js +55 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/globstar-match.js +19 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/mark.js +118 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/new-glob-optional-options.js +10 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/nocase-nomagic.js +113 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/pause-resume.js +73 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/readme-issue.js +36 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/root-nomount.js +39 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/root.js +46 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/stat.js +32 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/node_modules/glob/test/zz-cleanup.js +11 -0
- data/vendor/javascript/node_modules/jshint/node_modules/cli/package.json +70 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/LICENCE +19 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/README.md +33 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/index.js +86 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/LICENCE +19 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/README.md +45 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/index.js +5 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/package.json +89 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/seed.js +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/test/index.js +28 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/node_modules/date-now/test/static/index.html +10 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/package.json +88 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/test/index.js +67 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/test/static/index.html +12 -0
- data/vendor/javascript/node_modules/jshint/node_modules/console-browserify/test/static/test-adapter.js +53 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/Gruntfile.js +48 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/LICENSE-MIT +22 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/README.md +75 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/lib/exit.js +41 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/package.json +69 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/exit_test.js +121 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/10-stderr.txt +10 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/10-stdout-stderr.txt +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/10-stdout.txt +10 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/100-stderr.txt +100 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/100-stdout-stderr.txt +200 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/100-stdout.txt +100 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/1000-stderr.txt +1000 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/1000-stdout-stderr.txt +2000 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/1000-stdout.txt +1000 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/create-files.sh +8 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/log-broken.js +23 -0
- data/vendor/javascript/node_modules/jshint/node_modules/exit/test/fixtures/log.js +25 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/LICENSE +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/README.md +83 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/CollectingHandler.js +55 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/FeedHandler.js +95 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/Parser.js +337 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/ProxyHandler.js +27 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/Stream.js +35 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/Tokenizer.js +891 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/WritableStream.js +21 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/lib/index.js +68 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domelementtype/LICENSE +11 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domelementtype/index.js +14 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domelementtype/package.json +40 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domelementtype/readme.md +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/LICENSE +11 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/index.js +211 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/package.json +68 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/readme.md +102 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/01-basic.json +57 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/02-single_tag_1.json +21 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/03-single_tag_2.json +21 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/04-unescaped_in_script.json +27 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/05-tags_in_comment.json +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/06-comment_in_script.json +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/07-unescaped_in_style.json +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/08-extra_spaces_in_tag.json +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/09-unquoted_attrib.json +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/10-singular_attribute.json +15 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/11-text_outside_tags.json +40 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/12-text_only.json +11 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/13-comment_in_text.json +19 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/14-comment_in_text_in_script.json +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/15-non-verbose.json +22 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/16-normalize_whitespace.json +47 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/17-xml_namespace.json +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/18-enforce_empty_tags.json +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/19-ignore_empty_tags.json +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/20-template_script_tags.json +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/21-conditional_comments.json +15 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/22-lowercase_tags.json +41 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/cases/23-dom-lvl1.json +121 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domhandler/test/tests.js +58 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/LICENSE +11 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/index.js +14 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/helpers.js +141 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/legacy.js +87 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/manipulation.js +77 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/querying.js +94 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/stringify.js +93 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/lib/traversal.js +24 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/package.json +71 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/readme.md +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/test/fixture.js +6 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/test/tests/helpers.js +89 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/test/tests/legacy.js +119 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/domutils/test/utils.js +9 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/LICENSE +11 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/index.js +31 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/lib/decode.js +72 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/lib/decode_codepoint.js +26 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/lib/encode.js +48 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/maps/decode.json +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/maps/entities.json +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/maps/legacy.json +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/maps/xml.json +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/package.json +79 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/readme.md +31 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/test/mocha.opts +2 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/entities/test/test.js +150 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/LICENSE +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/README.md +15 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/duplex.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/float.patch +923 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_duplex.js +89 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_passthrough.js +46 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_readable.js +944 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_transform.js +209 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_writable.js +472 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/README.md +3 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/float.patch +604 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/lib/util.js +107 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/package.json +53 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/core-util-is/util.js +106 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/LICENSE +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/README.md +42 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/inherits.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/inherits_browser.js +23 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/package.json +51 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/inherits/test.js +25 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/README.md +54 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/build/build.js +209 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/component.json +19 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/index.js +3 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/isarray/package.json +54 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/LICENSE +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/README.md +7 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/index.js +200 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/node_modules/string_decoder/package.json +53 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/package.json +68 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/passthrough.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/readable.js +7 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/transform.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/node_modules/readable-stream/writable.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/package.json +90 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/01-events.js +9 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/02-stream.js +23 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/03-feed.js +19 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/Atom_Example.xml +25 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/Attributes.html +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/Basic.html +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/RDF_Example.xml +63 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Documents/RSS_Example.xml +48 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/01-simple.json +44 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/02-template.json +63 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/03-lowercase_tags.json +46 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/04-cdata.json +50 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/05-cdata-special.json +35 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/06-leading-lt.json +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/07-self-closing.json +67 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/08-implicit-close-tags.json +59 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/09-attributes.json +68 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/10-crazy-attrib.json +52 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/11-script_in_script.json +54 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/12-long-comment-end.json +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/13-long-cdata-end.json +22 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/14-implicit-open-tags.json +27 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/15-lt-whitespace.json +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/16-double_attribs.json +45 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/17-numeric_entities.json +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/18-legacy_entities.json +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/19-named_entities.json +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/20-xml_entities.json +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/21-entity_in_attribute.json +38 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/22-double_brackets.json +41 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/23-legacy_entity_fail.json +16 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/24-special_special.json +133 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/25-empty_tag_name.json +13 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/26-not-quite-closed.json +35 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/27-entities_in_attributes.json +62 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/28-cdata_in_html.json +9 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/29-comment_edge-cases.json +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Events/30-cdata_edge-cases.json +22 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Feeds/01-rss.js +34 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Feeds/02-atom.js +18 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Feeds/03-rdf.js +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/01-basic.json +83 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/02-RSS.json +1093 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/03-Atom.json +644 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/04-RDF.json +1399 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/Stream/05-Attributes.json +354 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/api.js +63 -0
- data/vendor/javascript/node_modules/jshint/node_modules/htmlparser2/test/test-helper.js +83 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/LICENSE +23 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/README.md +218 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/minimatch.js +1061 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +14 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/LICENSE +23 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/README.md +97 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +252 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/package.json +50 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/test/basic.js +369 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +52 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +50 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/package.json +58 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/node_modules/sigmund/test/basic.js +24 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/package.json +57 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/basic.js +399 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/brace-expand.js +33 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/caching.js +14 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/defaults.js +274 -0
- data/vendor/javascript/node_modules/jshint/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/LICENSE +26 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/README.md +569 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/bin/shjs +51 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/global.js +3 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/make.js +47 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/package.json +61 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/scripts/generate-docs.js +21 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/scripts/run-tests.js +50 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/shell.js +157 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/cat.js +43 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/cd.js +19 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/chmod.js +208 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/common.js +203 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/cp.js +201 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/dirs.js +191 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/echo.js +20 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/error.js +10 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/exec.js +181 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/find.js +51 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/grep.js +52 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/ln.js +53 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/ls.js +126 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/mkdir.js +68 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/mv.js +80 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/popd.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/pushd.js +1 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/pwd.js +11 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/rm.js +145 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/sed.js +43 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/tempdir.js +56 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/test.js +85 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/to.js +29 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/toEnd.js +29 -0
- data/vendor/javascript/node_modules/jshint/node_modules/shelljs/src/which.js +83 -0
- data/vendor/javascript/node_modules/jshint/node_modules/strip-json-comments/cli.js +41 -0
- data/vendor/javascript/node_modules/jshint/node_modules/strip-json-comments/package.json +76 -0
- data/vendor/javascript/node_modules/jshint/node_modules/strip-json-comments/readme.md +74 -0
- data/vendor/javascript/node_modules/jshint/node_modules/strip-json-comments/strip-json-comments.js +64 -0
- data/vendor/javascript/node_modules/jshint/node_modules/underscore/LICENSE +23 -0
- data/vendor/javascript/node_modules/jshint/node_modules/underscore/README.md +22 -0
- data/vendor/javascript/node_modules/jshint/node_modules/underscore/package.json +66 -0
- data/vendor/javascript/node_modules/jshint/node_modules/underscore/underscore-min.js +6 -0
- data/vendor/javascript/node_modules/jshint/node_modules/underscore/underscore.js +1343 -0
- data/vendor/javascript/node_modules/jshint/package.json +80 -0
- data/vendor/javascript/node_modules/jshint/src/cli.js +731 -0
- data/vendor/javascript/node_modules/jshint/src/jshint.js +5023 -0
- data/vendor/javascript/node_modules/jshint/src/lex.js +1650 -0
- data/vendor/javascript/node_modules/jshint/src/messages.js +223 -0
- data/vendor/javascript/node_modules/jshint/src/platforms/rhino.js +115 -0
- data/vendor/javascript/node_modules/jshint/src/reg.js +38 -0
- data/vendor/javascript/node_modules/jshint/src/reporters/checkstyle.js +81 -0
- data/vendor/javascript/node_modules/jshint/src/reporters/default.js +34 -0
- data/vendor/javascript/node_modules/jshint/src/reporters/jslint_xml.js +57 -0
- data/vendor/javascript/node_modules/jshint/src/reporters/non_error.js +52 -0
- data/vendor/javascript/node_modules/jshint/src/state.js +28 -0
- data/vendor/javascript/node_modules/jshint/src/style.js +143 -0
- data/vendor/javascript/node_modules/jshint/src/vars.js +658 -0
- data/vendor/python/astroid/COPYING +339 -0
- data/vendor/python/astroid/COPYING.LESSER +510 -0
- data/vendor/python/astroid/ChangeLog +574 -0
- data/vendor/python/astroid/MANIFEST.in +9 -0
- data/vendor/python/astroid/README +56 -0
- data/vendor/python/astroid/README.Python3 +26 -0
- data/vendor/python/astroid/__init__.py +118 -0
- data/vendor/python/astroid/__init__.pyc +0 -0
- data/vendor/python/astroid/__pkginfo__.py +48 -0
- data/vendor/python/astroid/__pkginfo__.pyc +0 -0
- data/vendor/python/astroid/announce.txt +23 -0
- data/vendor/python/astroid/as_string.py +496 -0
- data/vendor/python/astroid/as_string.pyc +0 -0
- data/vendor/python/astroid/bases.py +618 -0
- data/vendor/python/astroid/bases.pyc +0 -0
- data/vendor/python/astroid/brain/py2gi.py +159 -0
- data/vendor/python/astroid/brain/py2gi.pyc +0 -0
- data/vendor/python/astroid/brain/py2mechanize.py +20 -0
- data/vendor/python/astroid/brain/py2mechanize.pyc +0 -0
- data/vendor/python/astroid/brain/py2qt4.py +25 -0
- data/vendor/python/astroid/brain/py2qt4.pyc +0 -0
- data/vendor/python/astroid/brain/py2stdlib.py +252 -0
- data/vendor/python/astroid/brain/py2stdlib.pyc +0 -0
- data/vendor/python/astroid/builder.py +238 -0
- data/vendor/python/astroid/builder.pyc +0 -0
- data/vendor/python/astroid/exceptions.py +51 -0
- data/vendor/python/astroid/exceptions.pyc +0 -0
- data/vendor/python/astroid/inference.py +393 -0
- data/vendor/python/astroid/inference.pyc +0 -0
- data/vendor/python/astroid/inspector.py +275 -0
- data/vendor/python/astroid/manager.py +336 -0
- data/vendor/python/astroid/manager.pyc +0 -0
- data/vendor/python/astroid/mixins.py +122 -0
- data/vendor/python/astroid/mixins.pyc +0 -0
- data/vendor/python/astroid/node_classes.py +928 -0
- data/vendor/python/astroid/node_classes.pyc +0 -0
- data/vendor/python/astroid/nodes.py +73 -0
- data/vendor/python/astroid/nodes.pyc +0 -0
- data/vendor/python/astroid/protocols.py +322 -0
- data/vendor/python/astroid/protocols.pyc +0 -0
- data/vendor/python/astroid/raw_building.py +361 -0
- data/vendor/python/astroid/raw_building.pyc +0 -0
- data/vendor/python/astroid/rebuilder.py +954 -0
- data/vendor/python/astroid/rebuilder.pyc +0 -0
- data/vendor/python/astroid/scoped_nodes.py +1118 -0
- data/vendor/python/astroid/scoped_nodes.pyc +0 -0
- data/vendor/python/astroid/setup.py +184 -0
- data/vendor/python/astroid/tox.ini +10 -0
- data/vendor/python/astroid/utils.py +236 -0
- data/vendor/python/astroid/utils.pyc +0 -0
- data/vendor/python/logilab/__init__.py +0 -0
- data/vendor/python/logilab/__init__.pyc +0 -0
- data/vendor/python/logilab/common/COPYING +339 -0
- data/vendor/python/logilab/common/COPYING.LESSER +510 -0
- data/vendor/python/logilab/common/ChangeLog +1517 -0
- data/vendor/python/logilab/common/MANIFEST.in +13 -0
- data/vendor/python/logilab/common/README +185 -0
- data/vendor/python/logilab/common/README.Python3 +29 -0
- data/vendor/python/logilab/common/__init__.py +171 -0
- data/vendor/python/logilab/common/__init__.pyc +0 -0
- data/vendor/python/logilab/common/__pkginfo__.py +53 -0
- data/vendor/python/logilab/common/__pkginfo__.pyc +0 -0
- data/vendor/python/logilab/common/announce.txt +25 -0
- data/vendor/python/logilab/common/bin/pytest +7 -0
- data/vendor/python/logilab/common/bin/pytest.bat +17 -0
- data/vendor/python/logilab/common/cache.py +114 -0
- data/vendor/python/logilab/common/changelog.py +236 -0
- data/vendor/python/logilab/common/changelog.pyc +0 -0
- data/vendor/python/logilab/common/clcommands.py +332 -0
- data/vendor/python/logilab/common/cli.py +208 -0
- data/vendor/python/logilab/common/compat.py +243 -0
- data/vendor/python/logilab/common/compat.pyc +0 -0
- data/vendor/python/logilab/common/configuration.py +1094 -0
- data/vendor/python/logilab/common/configuration.pyc +0 -0
- data/vendor/python/logilab/common/contexts.py +5 -0
- data/vendor/python/logilab/common/corbautils.py +117 -0
- data/vendor/python/logilab/common/daemon.py +100 -0
- data/vendor/python/logilab/common/date.py +333 -0
- data/vendor/python/logilab/common/dbf.py +229 -0
- data/vendor/python/logilab/common/debugger.py +210 -0
- data/vendor/python/logilab/common/decorators.py +281 -0
- data/vendor/python/logilab/common/decorators.pyc +0 -0
- data/vendor/python/logilab/common/deprecation.py +188 -0
- data/vendor/python/logilab/common/deprecation.pyc +0 -0
- data/vendor/python/logilab/common/fileutils.py +402 -0
- data/vendor/python/logilab/common/graph.py +276 -0
- data/vendor/python/logilab/common/graph.pyc +0 -0
- data/vendor/python/logilab/common/hg.py +130 -0
- data/vendor/python/logilab/common/interface.py +71 -0
- data/vendor/python/logilab/common/interface.pyc +0 -0
- data/vendor/python/logilab/common/logging_ext.py +193 -0
- data/vendor/python/logilab/common/modutils.py +695 -0
- data/vendor/python/logilab/common/modutils.pyc +0 -0
- data/vendor/python/logilab/common/optik_ext.py +391 -0
- data/vendor/python/logilab/common/optik_ext.pyc +0 -0
- data/vendor/python/logilab/common/optparser.py +90 -0
- data/vendor/python/logilab/common/proc.py +277 -0
- data/vendor/python/logilab/common/pyro_ext.py +180 -0
- data/vendor/python/logilab/common/pytest.py +1177 -0
- data/vendor/python/logilab/common/python-logilab-common.spec +184 -0
- data/vendor/python/logilab/common/registry.py +1113 -0
- data/vendor/python/logilab/common/setup.cfg +3 -0
- data/vendor/python/logilab/common/setup.py +189 -0
- data/vendor/python/logilab/common/shellutils.py +455 -0
- data/vendor/python/logilab/common/sphinx_ext.py +87 -0
- data/vendor/python/logilab/common/sphinxutils.py +122 -0
- data/vendor/python/logilab/common/table.py +925 -0
- data/vendor/python/logilab/common/tasksqueue.py +100 -0
- data/vendor/python/logilab/common/textutils.py +534 -0
- data/vendor/python/logilab/common/textutils.pyc +0 -0
- data/vendor/python/logilab/common/tree.py +369 -0
- data/vendor/python/logilab/common/tree.pyc +0 -0
- data/vendor/python/logilab/common/umessage.py +190 -0
- data/vendor/python/logilab/common/ureports/__init__.py +174 -0
- data/vendor/python/logilab/common/ureports/__init__.pyc +0 -0
- data/vendor/python/logilab/common/ureports/docbook_writer.py +139 -0
- data/vendor/python/logilab/common/ureports/html_writer.py +131 -0
- data/vendor/python/logilab/common/ureports/html_writer.pyc +0 -0
- data/vendor/python/logilab/common/ureports/nodes.py +201 -0
- data/vendor/python/logilab/common/ureports/nodes.pyc +0 -0
- data/vendor/python/logilab/common/ureports/text_writer.py +140 -0
- data/vendor/python/logilab/common/ureports/text_writer.pyc +0 -0
- data/vendor/python/logilab/common/urllib2ext.py +87 -0
- data/vendor/python/logilab/common/vcgutils.py +216 -0
- data/vendor/python/logilab/common/visitor.py +107 -0
- data/vendor/python/logilab/common/visitor.pyc +0 -0
- data/vendor/python/logilab/common/xmlrpcutils.py +131 -0
- data/vendor/python/logilab/common/xmlutils.py +61 -0
- data/vendor/python/pylint/CONTRIBUTORS.txt +38 -0
- data/vendor/python/pylint/COPYING +340 -0
- data/vendor/python/pylint/ChangeLog +1437 -0
- data/vendor/python/pylint/DEPENDS +3 -0
- data/vendor/python/pylint/MANIFEST.in +14 -0
- data/vendor/python/pylint/README +50 -0
- data/vendor/python/pylint/README.Python3 +37 -0
- data/vendor/python/pylint/__init__.py +44 -0
- data/vendor/python/pylint/__init__.pyc +0 -0
- data/vendor/python/pylint/__main__.py +3 -0
- data/vendor/python/pylint/__pkginfo__.py +74 -0
- data/vendor/python/pylint/__pkginfo__.pyc +0 -0
- data/vendor/python/pylint/bin/epylint +3 -0
- data/vendor/python/pylint/bin/epylint.bat +5 -0
- data/vendor/python/pylint/bin/pylint +3 -0
- data/vendor/python/pylint/bin/pylint-gui +3 -0
- data/vendor/python/pylint/bin/pylint-gui.bat +5 -0
- data/vendor/python/pylint/bin/pylint.bat +5 -0
- data/vendor/python/pylint/bin/pyreverse +3 -0
- data/vendor/python/pylint/bin/pyreverse.bat +5 -0
- data/vendor/python/pylint/bin/symilar +3 -0
- data/vendor/python/pylint/bin/symilar.bat +5 -0
- data/vendor/python/pylint/checkers/__init__.py +145 -0
- data/vendor/python/pylint/checkers/__init__.pyc +0 -0
- data/vendor/python/pylint/checkers/base.py +1141 -0
- data/vendor/python/pylint/checkers/base.pyc +0 -0
- data/vendor/python/pylint/checkers/classes.py +792 -0
- data/vendor/python/pylint/checkers/classes.pyc +0 -0
- data/vendor/python/pylint/checkers/design_analysis.py +367 -0
- data/vendor/python/pylint/checkers/design_analysis.pyc +0 -0
- data/vendor/python/pylint/checkers/exceptions.py +306 -0
- data/vendor/python/pylint/checkers/exceptions.pyc +0 -0
- data/vendor/python/pylint/checkers/format.py +943 -0
- data/vendor/python/pylint/checkers/format.pyc +0 -0
- data/vendor/python/pylint/checkers/imports.py +394 -0
- data/vendor/python/pylint/checkers/imports.pyc +0 -0
- data/vendor/python/pylint/checkers/logging.py +213 -0
- data/vendor/python/pylint/checkers/logging.pyc +0 -0
- data/vendor/python/pylint/checkers/misc.py +90 -0
- data/vendor/python/pylint/checkers/misc.pyc +0 -0
- data/vendor/python/pylint/checkers/newstyle.py +151 -0
- data/vendor/python/pylint/checkers/newstyle.pyc +0 -0
- data/vendor/python/pylint/checkers/raw_metrics.py +129 -0
- data/vendor/python/pylint/checkers/raw_metrics.pyc +0 -0
- data/vendor/python/pylint/checkers/similar.py +365 -0
- data/vendor/python/pylint/checkers/similar.pyc +0 -0
- data/vendor/python/pylint/checkers/stdlib.py +69 -0
- data/vendor/python/pylint/checkers/stdlib.pyc +0 -0
- data/vendor/python/pylint/checkers/strings.py +304 -0
- data/vendor/python/pylint/checkers/strings.pyc +0 -0
- data/vendor/python/pylint/checkers/typecheck.py +451 -0
- data/vendor/python/pylint/checkers/typecheck.pyc +0 -0
- data/vendor/python/pylint/checkers/utils.py +416 -0
- data/vendor/python/pylint/checkers/utils.pyc +0 -0
- data/vendor/python/pylint/checkers/variables.py +741 -0
- data/vendor/python/pylint/checkers/variables.pyc +0 -0
- data/vendor/python/pylint/config.py +156 -0
- data/vendor/python/pylint/config.pyc +0 -0
- data/vendor/python/pylint/epylint.py +175 -0
- data/vendor/python/pylint/gui.py +508 -0
- data/vendor/python/pylint/interfaces.py +72 -0
- data/vendor/python/pylint/interfaces.pyc +0 -0
- data/vendor/python/pylint/lint.py +1106 -0
- data/vendor/python/pylint/lint.pyc +0 -0
- data/vendor/python/pylint/pyreverse/__init__.py +5 -0
- data/vendor/python/pylint/pyreverse/diadefslib.py +233 -0
- data/vendor/python/pylint/pyreverse/diagrams.py +247 -0
- data/vendor/python/pylint/pyreverse/main.py +124 -0
- data/vendor/python/pylint/pyreverse/utils.py +131 -0
- data/vendor/python/pylint/pyreverse/writer.py +199 -0
- data/vendor/python/pylint/reporters/__init__.py +138 -0
- data/vendor/python/pylint/reporters/__init__.pyc +0 -0
- data/vendor/python/pylint/reporters/guireporter.py +28 -0
- data/vendor/python/pylint/reporters/guireporter.pyc +0 -0
- data/vendor/python/pylint/reporters/html.py +70 -0
- data/vendor/python/pylint/reporters/html.pyc +0 -0
- data/vendor/python/pylint/reporters/text.py +143 -0
- data/vendor/python/pylint/reporters/text.pyc +0 -0
- data/vendor/python/pylint/setup.cfg +3 -0
- data/vendor/python/pylint/setup.py +203 -0
- data/vendor/python/pylint/tox.ini +10 -0
- data/vendor/python/pylint/utils.py +744 -0
- data/vendor/python/pylint/utils.pyc +0 -0
- data/vendor/python/pylint_runner.py +22 -0
- metadata +675 -0
@@ -0,0 +1,728 @@
|
|
1
|
+
// Approach:
|
2
|
+
//
|
3
|
+
// 1. Get the minimatch set
|
4
|
+
// 2. For each pattern in the set, PROCESS(pattern)
|
5
|
+
// 3. Store matches per-set, then uniq them
|
6
|
+
//
|
7
|
+
// PROCESS(pattern)
|
8
|
+
// Get the first [n] items from pattern that are all strings
|
9
|
+
// Join these together. This is PREFIX.
|
10
|
+
// If there is no more remaining, then stat(PREFIX) and
|
11
|
+
// add to matches if it succeeds. END.
|
12
|
+
// readdir(PREFIX) as ENTRIES
|
13
|
+
// If fails, END
|
14
|
+
// If pattern[n] is GLOBSTAR
|
15
|
+
// // handle the case where the globstar match is empty
|
16
|
+
// // by pruning it out, and testing the resulting pattern
|
17
|
+
// PROCESS(pattern[0..n] + pattern[n+1 .. $])
|
18
|
+
// // handle other cases.
|
19
|
+
// for ENTRY in ENTRIES (not dotfiles)
|
20
|
+
// // attach globstar + tail onto the entry
|
21
|
+
// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $])
|
22
|
+
//
|
23
|
+
// else // not globstar
|
24
|
+
// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)
|
25
|
+
// Test ENTRY against pattern[n]
|
26
|
+
// If fails, continue
|
27
|
+
// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])
|
28
|
+
//
|
29
|
+
// Caveat:
|
30
|
+
// Cache all stats and readdirs results to minimize syscall. Since all
|
31
|
+
// we ever care about is existence and directory-ness, we can just keep
|
32
|
+
// `true` for files, and [children,...] for directories, or `false` for
|
33
|
+
// things that don't exist.
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
module.exports = glob
|
38
|
+
|
39
|
+
var fs = require("fs")
|
40
|
+
, minimatch = require("minimatch")
|
41
|
+
, Minimatch = minimatch.Minimatch
|
42
|
+
, inherits = require("inherits")
|
43
|
+
, EE = require("events").EventEmitter
|
44
|
+
, path = require("path")
|
45
|
+
, isDir = {}
|
46
|
+
, assert = require("assert").ok
|
47
|
+
|
48
|
+
function glob (pattern, options, cb) {
|
49
|
+
if (typeof options === "function") cb = options, options = {}
|
50
|
+
if (!options) options = {}
|
51
|
+
|
52
|
+
if (typeof options === "number") {
|
53
|
+
deprecated()
|
54
|
+
return
|
55
|
+
}
|
56
|
+
|
57
|
+
var g = new Glob(pattern, options, cb)
|
58
|
+
return g.sync ? g.found : g
|
59
|
+
}
|
60
|
+
|
61
|
+
glob.fnmatch = deprecated
|
62
|
+
|
63
|
+
function deprecated () {
|
64
|
+
throw new Error("glob's interface has changed. Please see the docs.")
|
65
|
+
}
|
66
|
+
|
67
|
+
glob.sync = globSync
|
68
|
+
function globSync (pattern, options) {
|
69
|
+
if (typeof options === "number") {
|
70
|
+
deprecated()
|
71
|
+
return
|
72
|
+
}
|
73
|
+
|
74
|
+
options = options || {}
|
75
|
+
options.sync = true
|
76
|
+
return glob(pattern, options)
|
77
|
+
}
|
78
|
+
|
79
|
+
this._processingEmitQueue = false
|
80
|
+
|
81
|
+
glob.Glob = Glob
|
82
|
+
inherits(Glob, EE)
|
83
|
+
function Glob (pattern, options, cb) {
|
84
|
+
if (!(this instanceof Glob)) {
|
85
|
+
return new Glob(pattern, options, cb)
|
86
|
+
}
|
87
|
+
|
88
|
+
if (typeof options === "function") {
|
89
|
+
cb = options
|
90
|
+
options = null
|
91
|
+
}
|
92
|
+
|
93
|
+
if (typeof cb === "function") {
|
94
|
+
this.on("error", cb)
|
95
|
+
this.on("end", function (matches) {
|
96
|
+
cb(null, matches)
|
97
|
+
})
|
98
|
+
}
|
99
|
+
|
100
|
+
options = options || {}
|
101
|
+
|
102
|
+
this._endEmitted = false
|
103
|
+
this.EOF = {}
|
104
|
+
this._emitQueue = []
|
105
|
+
|
106
|
+
this.paused = false
|
107
|
+
this._processingEmitQueue = false
|
108
|
+
|
109
|
+
this.maxDepth = options.maxDepth || 1000
|
110
|
+
this.maxLength = options.maxLength || Infinity
|
111
|
+
this.cache = options.cache || {}
|
112
|
+
this.statCache = options.statCache || {}
|
113
|
+
|
114
|
+
this.changedCwd = false
|
115
|
+
var cwd = process.cwd()
|
116
|
+
if (!options.hasOwnProperty("cwd")) this.cwd = cwd
|
117
|
+
else {
|
118
|
+
this.cwd = options.cwd
|
119
|
+
this.changedCwd = path.resolve(options.cwd) !== cwd
|
120
|
+
}
|
121
|
+
|
122
|
+
this.root = options.root || path.resolve(this.cwd, "/")
|
123
|
+
this.root = path.resolve(this.root)
|
124
|
+
if (process.platform === "win32")
|
125
|
+
this.root = this.root.replace(/\\/g, "/")
|
126
|
+
|
127
|
+
this.nomount = !!options.nomount
|
128
|
+
|
129
|
+
if (!pattern) {
|
130
|
+
throw new Error("must provide pattern")
|
131
|
+
}
|
132
|
+
|
133
|
+
// base-matching: just use globstar for that.
|
134
|
+
if (options.matchBase && -1 === pattern.indexOf("/")) {
|
135
|
+
if (options.noglobstar) {
|
136
|
+
throw new Error("base matching requires globstar")
|
137
|
+
}
|
138
|
+
pattern = "**/" + pattern
|
139
|
+
}
|
140
|
+
|
141
|
+
this.strict = options.strict !== false
|
142
|
+
this.dot = !!options.dot
|
143
|
+
this.mark = !!options.mark
|
144
|
+
this.sync = !!options.sync
|
145
|
+
this.nounique = !!options.nounique
|
146
|
+
this.nonull = !!options.nonull
|
147
|
+
this.nosort = !!options.nosort
|
148
|
+
this.nocase = !!options.nocase
|
149
|
+
this.stat = !!options.stat
|
150
|
+
|
151
|
+
this.debug = !!options.debug || !!options.globDebug
|
152
|
+
if (this.debug)
|
153
|
+
this.log = console.error
|
154
|
+
|
155
|
+
this.silent = !!options.silent
|
156
|
+
|
157
|
+
var mm = this.minimatch = new Minimatch(pattern, options)
|
158
|
+
this.options = mm.options
|
159
|
+
pattern = this.pattern = mm.pattern
|
160
|
+
|
161
|
+
this.error = null
|
162
|
+
this.aborted = false
|
163
|
+
|
164
|
+
// list of all the patterns that ** has resolved do, so
|
165
|
+
// we can avoid visiting multiple times.
|
166
|
+
this._globstars = {}
|
167
|
+
|
168
|
+
EE.call(this)
|
169
|
+
|
170
|
+
// process each pattern in the minimatch set
|
171
|
+
var n = this.minimatch.set.length
|
172
|
+
|
173
|
+
// The matches are stored as {<filename>: true,...} so that
|
174
|
+
// duplicates are automagically pruned.
|
175
|
+
// Later, we do an Object.keys() on these.
|
176
|
+
// Keep them as a list so we can fill in when nonull is set.
|
177
|
+
this.matches = new Array(n)
|
178
|
+
|
179
|
+
this.minimatch.set.forEach(iterator.bind(this))
|
180
|
+
function iterator (pattern, i, set) {
|
181
|
+
this._process(pattern, 0, i, function (er) {
|
182
|
+
if (er) this.emit("error", er)
|
183
|
+
if (-- n <= 0) this._finish()
|
184
|
+
})
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
Glob.prototype.log = function () {}
|
189
|
+
|
190
|
+
Glob.prototype._finish = function () {
|
191
|
+
assert(this instanceof Glob)
|
192
|
+
|
193
|
+
var nou = this.nounique
|
194
|
+
, all = nou ? [] : {}
|
195
|
+
|
196
|
+
for (var i = 0, l = this.matches.length; i < l; i ++) {
|
197
|
+
var matches = this.matches[i]
|
198
|
+
this.log("matches[%d] =", i, matches)
|
199
|
+
// do like the shell, and spit out the literal glob
|
200
|
+
if (!matches) {
|
201
|
+
if (this.nonull) {
|
202
|
+
var literal = this.minimatch.globSet[i]
|
203
|
+
if (nou) all.push(literal)
|
204
|
+
else all[literal] = true
|
205
|
+
}
|
206
|
+
} else {
|
207
|
+
// had matches
|
208
|
+
var m = Object.keys(matches)
|
209
|
+
if (nou) all.push.apply(all, m)
|
210
|
+
else m.forEach(function (m) {
|
211
|
+
all[m] = true
|
212
|
+
})
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
if (!nou) all = Object.keys(all)
|
217
|
+
|
218
|
+
if (!this.nosort) {
|
219
|
+
all = all.sort(this.nocase ? alphasorti : alphasort)
|
220
|
+
}
|
221
|
+
|
222
|
+
if (this.mark) {
|
223
|
+
// at *some* point we statted all of these
|
224
|
+
all = all.map(this._mark, this)
|
225
|
+
}
|
226
|
+
|
227
|
+
this.log("emitting end", all)
|
228
|
+
|
229
|
+
this.EOF = this.found = all
|
230
|
+
this.emitMatch(this.EOF)
|
231
|
+
}
|
232
|
+
|
233
|
+
function alphasorti (a, b) {
|
234
|
+
a = a.toLowerCase()
|
235
|
+
b = b.toLowerCase()
|
236
|
+
return alphasort(a, b)
|
237
|
+
}
|
238
|
+
|
239
|
+
function alphasort (a, b) {
|
240
|
+
return a > b ? 1 : a < b ? -1 : 0
|
241
|
+
}
|
242
|
+
|
243
|
+
Glob.prototype._mark = function (p) {
|
244
|
+
var c = this.cache[p]
|
245
|
+
var m = p
|
246
|
+
if (c) {
|
247
|
+
var isDir = c === 2 || Array.isArray(c)
|
248
|
+
var slash = p.slice(-1) === '/'
|
249
|
+
|
250
|
+
if (isDir && !slash)
|
251
|
+
m += '/'
|
252
|
+
else if (!isDir && slash)
|
253
|
+
m = m.slice(0, -1)
|
254
|
+
|
255
|
+
if (m !== p) {
|
256
|
+
this.statCache[m] = this.statCache[p]
|
257
|
+
this.cache[m] = this.cache[p]
|
258
|
+
}
|
259
|
+
}
|
260
|
+
|
261
|
+
return m
|
262
|
+
}
|
263
|
+
|
264
|
+
Glob.prototype.abort = function () {
|
265
|
+
this.aborted = true
|
266
|
+
this.emit("abort")
|
267
|
+
}
|
268
|
+
|
269
|
+
Glob.prototype.pause = function () {
|
270
|
+
if (this.paused) return
|
271
|
+
if (this.sync)
|
272
|
+
this.emit("error", new Error("Can't pause/resume sync glob"))
|
273
|
+
this.paused = true
|
274
|
+
this.emit("pause")
|
275
|
+
}
|
276
|
+
|
277
|
+
Glob.prototype.resume = function () {
|
278
|
+
if (!this.paused) return
|
279
|
+
if (this.sync)
|
280
|
+
this.emit("error", new Error("Can't pause/resume sync glob"))
|
281
|
+
this.paused = false
|
282
|
+
this.emit("resume")
|
283
|
+
this._processEmitQueue()
|
284
|
+
//process.nextTick(this.emit.bind(this, "resume"))
|
285
|
+
}
|
286
|
+
|
287
|
+
Glob.prototype.emitMatch = function (m) {
|
288
|
+
this.log('emitMatch', m)
|
289
|
+
this._emitQueue.push(m)
|
290
|
+
this._processEmitQueue()
|
291
|
+
}
|
292
|
+
|
293
|
+
Glob.prototype._processEmitQueue = function (m) {
|
294
|
+
this.log("pEQ paused=%j processing=%j m=%j", this.paused,
|
295
|
+
this._processingEmitQueue, m)
|
296
|
+
var done = false
|
297
|
+
while (!this._processingEmitQueue &&
|
298
|
+
!this.paused) {
|
299
|
+
this._processingEmitQueue = true
|
300
|
+
var m = this._emitQueue.shift()
|
301
|
+
this.log(">processEmitQueue", m === this.EOF ? ":EOF:" : m)
|
302
|
+
if (!m) {
|
303
|
+
this.log(">processEmitQueue, falsey m")
|
304
|
+
this._processingEmitQueue = false
|
305
|
+
break
|
306
|
+
}
|
307
|
+
|
308
|
+
if (m === this.EOF || !(this.mark && !this.stat)) {
|
309
|
+
this.log("peq: unmarked, or eof")
|
310
|
+
next.call(this, 0, false)
|
311
|
+
} else if (this.statCache[m]) {
|
312
|
+
var sc = this.statCache[m]
|
313
|
+
var exists
|
314
|
+
if (sc)
|
315
|
+
exists = sc.isDirectory() ? 2 : 1
|
316
|
+
this.log("peq: stat cached")
|
317
|
+
next.call(this, exists, exists === 2)
|
318
|
+
} else {
|
319
|
+
this.log("peq: _stat, then next")
|
320
|
+
this._stat(m, next)
|
321
|
+
}
|
322
|
+
|
323
|
+
function next(exists, isDir) {
|
324
|
+
this.log("next", m, exists, isDir)
|
325
|
+
var ev = m === this.EOF ? "end" : "match"
|
326
|
+
|
327
|
+
// "end" can only happen once.
|
328
|
+
assert(!this._endEmitted)
|
329
|
+
if (ev === "end")
|
330
|
+
this._endEmitted = true
|
331
|
+
|
332
|
+
if (exists) {
|
333
|
+
// Doesn't mean it necessarily doesn't exist, it's possible
|
334
|
+
// we just didn't check because we don't care that much, or
|
335
|
+
// this is EOF anyway.
|
336
|
+
if (isDir && !m.match(/\/$/)) {
|
337
|
+
m = m + "/"
|
338
|
+
} else if (!isDir && m.match(/\/$/)) {
|
339
|
+
m = m.replace(/\/+$/, "")
|
340
|
+
}
|
341
|
+
}
|
342
|
+
this.log("emit", ev, m)
|
343
|
+
this.emit(ev, m)
|
344
|
+
this._processingEmitQueue = false
|
345
|
+
if (done && m !== this.EOF && !this.paused)
|
346
|
+
this._processEmitQueue()
|
347
|
+
}
|
348
|
+
}
|
349
|
+
done = true
|
350
|
+
}
|
351
|
+
|
352
|
+
Glob.prototype._process = function (pattern, depth, index, cb_) {
|
353
|
+
assert(this instanceof Glob)
|
354
|
+
|
355
|
+
var cb = function cb (er, res) {
|
356
|
+
assert(this instanceof Glob)
|
357
|
+
if (this.paused) {
|
358
|
+
if (!this._processQueue) {
|
359
|
+
this._processQueue = []
|
360
|
+
this.once("resume", function () {
|
361
|
+
var q = this._processQueue
|
362
|
+
this._processQueue = null
|
363
|
+
q.forEach(function (cb) { cb() })
|
364
|
+
})
|
365
|
+
}
|
366
|
+
this._processQueue.push(cb_.bind(this, er, res))
|
367
|
+
} else {
|
368
|
+
cb_.call(this, er, res)
|
369
|
+
}
|
370
|
+
}.bind(this)
|
371
|
+
|
372
|
+
if (this.aborted) return cb()
|
373
|
+
|
374
|
+
if (depth > this.maxDepth) return cb()
|
375
|
+
|
376
|
+
// Get the first [n] parts of pattern that are all strings.
|
377
|
+
var n = 0
|
378
|
+
while (typeof pattern[n] === "string") {
|
379
|
+
n ++
|
380
|
+
}
|
381
|
+
// now n is the index of the first one that is *not* a string.
|
382
|
+
|
383
|
+
// see if there's anything else
|
384
|
+
var prefix
|
385
|
+
switch (n) {
|
386
|
+
// if not, then this is rather simple
|
387
|
+
case pattern.length:
|
388
|
+
prefix = pattern.join("/")
|
389
|
+
this._stat(prefix, function (exists, isDir) {
|
390
|
+
// either it's there, or it isn't.
|
391
|
+
// nothing more to do, either way.
|
392
|
+
if (exists) {
|
393
|
+
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
394
|
+
if (prefix.charAt(0) === "/") {
|
395
|
+
prefix = path.join(this.root, prefix)
|
396
|
+
} else {
|
397
|
+
prefix = path.resolve(this.root, prefix)
|
398
|
+
}
|
399
|
+
}
|
400
|
+
|
401
|
+
if (process.platform === "win32")
|
402
|
+
prefix = prefix.replace(/\\/g, "/")
|
403
|
+
|
404
|
+
this.matches[index] = this.matches[index] || {}
|
405
|
+
this.matches[index][prefix] = true
|
406
|
+
this.emitMatch(prefix)
|
407
|
+
}
|
408
|
+
return cb()
|
409
|
+
})
|
410
|
+
return
|
411
|
+
|
412
|
+
case 0:
|
413
|
+
// pattern *starts* with some non-trivial item.
|
414
|
+
// going to readdir(cwd), but not include the prefix in matches.
|
415
|
+
prefix = null
|
416
|
+
break
|
417
|
+
|
418
|
+
default:
|
419
|
+
// pattern has some string bits in the front.
|
420
|
+
// whatever it starts with, whether that's "absolute" like /foo/bar,
|
421
|
+
// or "relative" like "../baz"
|
422
|
+
prefix = pattern.slice(0, n)
|
423
|
+
prefix = prefix.join("/")
|
424
|
+
break
|
425
|
+
}
|
426
|
+
|
427
|
+
// get the list of entries.
|
428
|
+
var read
|
429
|
+
if (prefix === null) read = "."
|
430
|
+
else if (isAbsolute(prefix) || isAbsolute(pattern.join("/"))) {
|
431
|
+
if (!prefix || !isAbsolute(prefix)) {
|
432
|
+
prefix = path.join("/", prefix)
|
433
|
+
}
|
434
|
+
read = prefix = path.resolve(prefix)
|
435
|
+
|
436
|
+
// if (process.platform === "win32")
|
437
|
+
// read = prefix = prefix.replace(/^[a-zA-Z]:|\\/g, "/")
|
438
|
+
|
439
|
+
this.log('absolute: ', prefix, this.root, pattern, read)
|
440
|
+
} else {
|
441
|
+
read = prefix
|
442
|
+
}
|
443
|
+
|
444
|
+
this.log('readdir(%j)', read, this.cwd, this.root)
|
445
|
+
|
446
|
+
return this._readdir(read, function (er, entries) {
|
447
|
+
if (er) {
|
448
|
+
// not a directory!
|
449
|
+
// this means that, whatever else comes after this, it can never match
|
450
|
+
return cb()
|
451
|
+
}
|
452
|
+
|
453
|
+
// globstar is special
|
454
|
+
if (pattern[n] === minimatch.GLOBSTAR) {
|
455
|
+
// test without the globstar, and with every child both below
|
456
|
+
// and replacing the globstar.
|
457
|
+
var s = [ pattern.slice(0, n).concat(pattern.slice(n + 1)) ]
|
458
|
+
entries.forEach(function (e) {
|
459
|
+
if (e.charAt(0) === "." && !this.dot) return
|
460
|
+
// instead of the globstar
|
461
|
+
s.push(pattern.slice(0, n).concat(e).concat(pattern.slice(n + 1)))
|
462
|
+
// below the globstar
|
463
|
+
s.push(pattern.slice(0, n).concat(e).concat(pattern.slice(n)))
|
464
|
+
}, this)
|
465
|
+
|
466
|
+
s = s.filter(function (pattern) {
|
467
|
+
var key = gsKey(pattern)
|
468
|
+
var seen = !this._globstars[key]
|
469
|
+
this._globstars[key] = true
|
470
|
+
return seen
|
471
|
+
}, this)
|
472
|
+
|
473
|
+
if (!s.length)
|
474
|
+
return cb()
|
475
|
+
|
476
|
+
// now asyncForEach over this
|
477
|
+
var l = s.length
|
478
|
+
, errState = null
|
479
|
+
s.forEach(function (gsPattern) {
|
480
|
+
this._process(gsPattern, depth + 1, index, function (er) {
|
481
|
+
if (errState) return
|
482
|
+
if (er) return cb(errState = er)
|
483
|
+
if (--l <= 0) return cb()
|
484
|
+
})
|
485
|
+
}, this)
|
486
|
+
|
487
|
+
return
|
488
|
+
}
|
489
|
+
|
490
|
+
// not a globstar
|
491
|
+
// It will only match dot entries if it starts with a dot, or if
|
492
|
+
// dot is set. Stuff like @(.foo|.bar) isn't allowed.
|
493
|
+
var pn = pattern[n]
|
494
|
+
var rawGlob = pattern[n]._glob
|
495
|
+
, dotOk = this.dot || rawGlob.charAt(0) === "."
|
496
|
+
|
497
|
+
entries = entries.filter(function (e) {
|
498
|
+
return (e.charAt(0) !== "." || dotOk) &&
|
499
|
+
e.match(pattern[n])
|
500
|
+
})
|
501
|
+
|
502
|
+
// If n === pattern.length - 1, then there's no need for the extra stat
|
503
|
+
// *unless* the user has specified "mark" or "stat" explicitly.
|
504
|
+
// We know that they exist, since the readdir returned them.
|
505
|
+
if (n === pattern.length - 1 &&
|
506
|
+
!this.mark &&
|
507
|
+
!this.stat) {
|
508
|
+
entries.forEach(function (e) {
|
509
|
+
if (prefix) {
|
510
|
+
if (prefix !== "/") e = prefix + "/" + e
|
511
|
+
else e = prefix + e
|
512
|
+
}
|
513
|
+
if (e.charAt(0) === "/" && !this.nomount) {
|
514
|
+
e = path.join(this.root, e)
|
515
|
+
}
|
516
|
+
|
517
|
+
if (process.platform === "win32")
|
518
|
+
e = e.replace(/\\/g, "/")
|
519
|
+
|
520
|
+
this.matches[index] = this.matches[index] || {}
|
521
|
+
this.matches[index][e] = true
|
522
|
+
this.emitMatch(e)
|
523
|
+
}, this)
|
524
|
+
return cb.call(this)
|
525
|
+
}
|
526
|
+
|
527
|
+
|
528
|
+
// now test all the remaining entries as stand-ins for that part
|
529
|
+
// of the pattern.
|
530
|
+
var l = entries.length
|
531
|
+
, errState = null
|
532
|
+
if (l === 0) return cb() // no matches possible
|
533
|
+
entries.forEach(function (e) {
|
534
|
+
var p = pattern.slice(0, n).concat(e).concat(pattern.slice(n + 1))
|
535
|
+
this._process(p, depth + 1, index, function (er) {
|
536
|
+
if (errState) return
|
537
|
+
if (er) return cb(errState = er)
|
538
|
+
if (--l === 0) return cb.call(this)
|
539
|
+
})
|
540
|
+
}, this)
|
541
|
+
})
|
542
|
+
|
543
|
+
}
|
544
|
+
|
545
|
+
function gsKey (pattern) {
|
546
|
+
return '**' + pattern.map(function (p) {
|
547
|
+
return (p === minimatch.GLOBSTAR) ? '**' : (''+p)
|
548
|
+
}).join('/')
|
549
|
+
}
|
550
|
+
|
551
|
+
Glob.prototype._stat = function (f, cb) {
|
552
|
+
assert(this instanceof Glob)
|
553
|
+
var abs = f
|
554
|
+
if (f.charAt(0) === "/") {
|
555
|
+
abs = path.join(this.root, f)
|
556
|
+
} else if (this.changedCwd) {
|
557
|
+
abs = path.resolve(this.cwd, f)
|
558
|
+
}
|
559
|
+
|
560
|
+
if (f.length > this.maxLength) {
|
561
|
+
var er = new Error("Path name too long")
|
562
|
+
er.code = "ENAMETOOLONG"
|
563
|
+
er.path = f
|
564
|
+
return this._afterStat(f, abs, cb, er)
|
565
|
+
}
|
566
|
+
|
567
|
+
this.log('stat', [this.cwd, f, '=', abs])
|
568
|
+
|
569
|
+
if (!this.stat && this.cache.hasOwnProperty(f)) {
|
570
|
+
var exists = this.cache[f]
|
571
|
+
, isDir = exists && (Array.isArray(exists) || exists === 2)
|
572
|
+
if (this.sync) return cb.call(this, !!exists, isDir)
|
573
|
+
return process.nextTick(cb.bind(this, !!exists, isDir))
|
574
|
+
}
|
575
|
+
|
576
|
+
var stat = this.statCache[abs]
|
577
|
+
if (this.sync || stat) {
|
578
|
+
var er
|
579
|
+
try {
|
580
|
+
stat = fs.statSync(abs)
|
581
|
+
} catch (e) {
|
582
|
+
er = e
|
583
|
+
}
|
584
|
+
this._afterStat(f, abs, cb, er, stat)
|
585
|
+
} else {
|
586
|
+
fs.stat(abs, this._afterStat.bind(this, f, abs, cb))
|
587
|
+
}
|
588
|
+
}
|
589
|
+
|
590
|
+
Glob.prototype._afterStat = function (f, abs, cb, er, stat) {
|
591
|
+
var exists
|
592
|
+
assert(this instanceof Glob)
|
593
|
+
|
594
|
+
if (abs.slice(-1) === "/" && stat && !stat.isDirectory()) {
|
595
|
+
this.log("should be ENOTDIR, fake it")
|
596
|
+
|
597
|
+
er = new Error("ENOTDIR, not a directory '" + abs + "'")
|
598
|
+
er.path = abs
|
599
|
+
er.code = "ENOTDIR"
|
600
|
+
stat = null
|
601
|
+
}
|
602
|
+
|
603
|
+
var emit = !this.statCache[abs]
|
604
|
+
this.statCache[abs] = stat
|
605
|
+
|
606
|
+
if (er || !stat) {
|
607
|
+
exists = false
|
608
|
+
} else {
|
609
|
+
exists = stat.isDirectory() ? 2 : 1
|
610
|
+
if (emit)
|
611
|
+
this.emit('stat', f, stat)
|
612
|
+
}
|
613
|
+
this.cache[f] = this.cache[f] || exists
|
614
|
+
cb.call(this, !!exists, exists === 2)
|
615
|
+
}
|
616
|
+
|
617
|
+
Glob.prototype._readdir = function (f, cb) {
|
618
|
+
assert(this instanceof Glob)
|
619
|
+
var abs = f
|
620
|
+
if (f.charAt(0) === "/") {
|
621
|
+
abs = path.join(this.root, f)
|
622
|
+
} else if (isAbsolute(f)) {
|
623
|
+
abs = f
|
624
|
+
} else if (this.changedCwd) {
|
625
|
+
abs = path.resolve(this.cwd, f)
|
626
|
+
}
|
627
|
+
|
628
|
+
if (f.length > this.maxLength) {
|
629
|
+
var er = new Error("Path name too long")
|
630
|
+
er.code = "ENAMETOOLONG"
|
631
|
+
er.path = f
|
632
|
+
return this._afterReaddir(f, abs, cb, er)
|
633
|
+
}
|
634
|
+
|
635
|
+
this.log('readdir', [this.cwd, f, abs])
|
636
|
+
if (this.cache.hasOwnProperty(f)) {
|
637
|
+
var c = this.cache[f]
|
638
|
+
if (Array.isArray(c)) {
|
639
|
+
if (this.sync) return cb.call(this, null, c)
|
640
|
+
return process.nextTick(cb.bind(this, null, c))
|
641
|
+
}
|
642
|
+
|
643
|
+
if (!c || c === 1) {
|
644
|
+
// either ENOENT or ENOTDIR
|
645
|
+
var code = c ? "ENOTDIR" : "ENOENT"
|
646
|
+
, er = new Error((c ? "Not a directory" : "Not found") + ": " + f)
|
647
|
+
er.path = f
|
648
|
+
er.code = code
|
649
|
+
this.log(f, er)
|
650
|
+
if (this.sync) return cb.call(this, er)
|
651
|
+
return process.nextTick(cb.bind(this, er))
|
652
|
+
}
|
653
|
+
|
654
|
+
// at this point, c === 2, meaning it's a dir, but we haven't
|
655
|
+
// had to read it yet, or c === true, meaning it's *something*
|
656
|
+
// but we don't have any idea what. Need to read it, either way.
|
657
|
+
}
|
658
|
+
|
659
|
+
if (this.sync) {
|
660
|
+
var er, entries
|
661
|
+
try {
|
662
|
+
entries = fs.readdirSync(abs)
|
663
|
+
} catch (e) {
|
664
|
+
er = e
|
665
|
+
}
|
666
|
+
return this._afterReaddir(f, abs, cb, er, entries)
|
667
|
+
}
|
668
|
+
|
669
|
+
fs.readdir(abs, this._afterReaddir.bind(this, f, abs, cb))
|
670
|
+
}
|
671
|
+
|
672
|
+
Glob.prototype._afterReaddir = function (f, abs, cb, er, entries) {
|
673
|
+
assert(this instanceof Glob)
|
674
|
+
if (entries && !er) {
|
675
|
+
this.cache[f] = entries
|
676
|
+
// if we haven't asked to stat everything for suresies, then just
|
677
|
+
// assume that everything in there exists, so we can avoid
|
678
|
+
// having to stat it a second time. This also gets us one step
|
679
|
+
// further into ELOOP territory.
|
680
|
+
if (!this.mark && !this.stat) {
|
681
|
+
entries.forEach(function (e) {
|
682
|
+
if (f === "/") e = f + e
|
683
|
+
else e = f + "/" + e
|
684
|
+
this.cache[e] = true
|
685
|
+
}, this)
|
686
|
+
}
|
687
|
+
|
688
|
+
return cb.call(this, er, entries)
|
689
|
+
}
|
690
|
+
|
691
|
+
// now handle errors, and cache the information
|
692
|
+
if (er) switch (er.code) {
|
693
|
+
case "ENOTDIR": // totally normal. means it *does* exist.
|
694
|
+
this.cache[f] = 1
|
695
|
+
return cb.call(this, er)
|
696
|
+
case "ENOENT": // not terribly unusual
|
697
|
+
case "ELOOP":
|
698
|
+
case "ENAMETOOLONG":
|
699
|
+
case "UNKNOWN":
|
700
|
+
this.cache[f] = false
|
701
|
+
return cb.call(this, er)
|
702
|
+
default: // some unusual error. Treat as failure.
|
703
|
+
this.cache[f] = false
|
704
|
+
if (this.strict) this.emit("error", er)
|
705
|
+
if (!this.silent) console.error("glob error", er)
|
706
|
+
return cb.call(this, er)
|
707
|
+
}
|
708
|
+
}
|
709
|
+
|
710
|
+
var isAbsolute = process.platform === "win32" ? absWin : absUnix
|
711
|
+
|
712
|
+
function absWin (p) {
|
713
|
+
if (absUnix(p)) return true
|
714
|
+
// pull off the device/UNC bit from a windows path.
|
715
|
+
// from node's lib/path.js
|
716
|
+
var splitDeviceRe =
|
717
|
+
/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/
|
718
|
+
, result = splitDeviceRe.exec(p)
|
719
|
+
, device = result[1] || ''
|
720
|
+
, isUnc = device && device.charAt(1) !== ':'
|
721
|
+
, isAbsolute = !!result[2] || isUnc // UNC paths are always absolute
|
722
|
+
|
723
|
+
return isAbsolute
|
724
|
+
}
|
725
|
+
|
726
|
+
function absUnix (p) {
|
727
|
+
return p.charAt(0) === "/" || p === ""
|
728
|
+
}
|