diff --git a/.arcconfig b/.arcconfig new file mode 100644 index 0000000..3483e37 --- /dev/null +++ b/.arcconfig @@ -0,0 +1,6 @@ +{ + "load": [ + "src/", + "/home/avivey/devtools/phabricator/src/" + ] +} diff --git a/.arclint b/.arclint new file mode 100644 index 0000000..7fb4c0f --- /dev/null +++ b/.arclint @@ -0,0 +1,87 @@ +{ + "exclude": [ + "(^externals/)", + "(^webroot/rsrc/externals/(?!javelin/))", + "(/__tests__/data/)", + "(^support/aphlict/server/package-lock.json)" + ], + "linters": { + "chmod": { + "type": "chmod" + }, + "filename": { + "type": "filename" + }, + "generated": { + "type": "generated" + }, + "javelin": { + "type": "javelin", + "include": "(\\.js$)", + "exclude": [ + "(^support/aphlict/)" + ] + }, + "jshint-browser": { + "type": "jshint", + "include": "(\\.js$)", + "exclude": [ + "(^support/aphlict/server/.*\\.js$)", + "(^webroot/rsrc/externals/javelin/core/init_node\\.js$)" + ], + "jshint.jshintrc": "support/lint/browser.jshintrc" + }, + "jshint-node": { + "type": "jshint", + "include": [ + "(^support/aphlict/server/.*\\.js$)", + "(^webroot/rsrc/externals/javelin/core/init_node\\.js$)" + ], + "jshint.jshintrc": "support/lint/node.jshintrc" + }, + "json": { + "type": "json", + "include": [ + "(^src/docs/book/.*\\.book$)", + "(^support/lint/jshintrc$)", + "(^\\.arcconfig$)", + "(^\\.arclint$)", + "(\\.json$)" + ] + }, + "merge-conflict": { + "type": "merge-conflict" + }, + "nolint": { + "type": "nolint" + }, + "phutil-library": { + "type": "phutil-library", + "include": "(\\.php$)" + }, + "spelling": { + "type": "spelling" + }, + "text": { + "type": "text", + "exclude": [ + "(^src/(.*/)?__tests__/[^/]+/.*\\.(txt|json|expect))" + ] + }, + "text-without-length": { + "type": "text", + "include": [ + "(^src/(.*/)?__tests__/[^/]+/.*\\.(txt|json|expect))" + ], + "severity": { + "3": "disabled" + } + }, + "xhpast": { + "type": "xhpast", + "include": "(\\.php$)", + "standard": "phutil.xhpast", + "xhpast.php-version": "5.5" + } + } +} diff --git a/.arcunit b/.arcunit new file mode 100644 index 0000000..f5b2c47 --- /dev/null +++ b/.arcunit @@ -0,0 +1,8 @@ +{ + "engines": { + "phutil": { + "type": "phutil", + "include": "(\\.php$)" + } + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c99835 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# NOTE: Thinking about adding files created by your operating system, IDE, +# or text editor here? Don't! Add them to your per-user .gitignore instead. + + +/src/.phutil_module_cache diff --git a/src/__phutil_library_init__.php b/src/__phutil_library_init__.php new file mode 100644 index 0000000..7627019 --- /dev/null +++ b/src/__phutil_library_init__.php @@ -0,0 +1,3 @@ + 2, + 'class' => array( + 'SemiStructuredDataApplication' => 'applications/semistruct/application/SemiStructuredDataApplication.php', + ), + 'function' => array(), + 'xmap' => array( + 'SemiStructuredDataApplication' => 'PhabricatorApplication', + ), +)); diff --git a/src/application/SemiStructuredDataApplication.php b/src/application/SemiStructuredDataApplication.php new file mode 100644 index 0000000..8e14cbf --- /dev/null +++ b/src/application/SemiStructuredDataApplication.php @@ -0,0 +1,23 @@ + array( + ), + ); + } + +}