diff --git a/.codeclimate.yml b/.codeclimate.yml index 29d31a8fb..b56fe5ba0 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -33,18 +33,18 @@ engines: enabled: true exclude_paths: -- "core/public/js/jquery/*" -- "data/*" -- "docs/*" -- "library/REST/*" -- "library/SwaggerUI/*" -- "log/*" -- "modules/oai/library/oai/*" -- "modules/statistics/public/js/googlemaps/*" -- "modules/statistics/public/js/jquery/*" -- "modules/visualize/public/js/jquery/*" -- "modules/visualize/public/js/webgl/*" -- "provisioning/*" -- "tmp/*" -- "utils/*" -- "vendor/*" + - 'core/public/js/jquery/*' + - 'data/*' + - 'docs/*' + - 'library/REST/*' + - 'library/SwaggerUI/*' + - 'log/*' + - 'modules/oai/library/oai/*' + - 'modules/statistics/public/js/googlemaps/*' + - 'modules/statistics/public/js/jquery/*' + - 'modules/visualize/public/js/jquery/*' + - 'modules/visualize/public/js/webgl/*' + - 'provisioning/*' + - 'tmp/*' + - 'utils/*' + - 'vendor/*' diff --git a/.eslintrc b/.eslintrc index 658e0a9c8..19d924d8a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -18,26 +18,31 @@ #============================================================================= --- +root: true + +env: + browser: true + jquery: true + +extends: 'eslint:recommended' + rules: indent: - 2 - 4 - quotes: - - 2 - - single + linebreak-style: - 2 - unix - semi: - - 2 - - always no-unused-vars: - 2 - argsIgnorePattern: ^_ -env: - browser: true - jquery: true + quotes: + - 2 + - single -extends: 'eslint:recommended' + semi: + - 2 + - always diff --git a/.styleci.yml b/.styleci.yml index 6e0edea44..c69858861 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -29,7 +29,6 @@ disabled: - phpdoc_types - phpdoc_var_without_name - finder: exclude: - data diff --git a/app.yaml b/app.yaml index 94f585ab4..f45f64259 100644 --- a/app.yaml +++ b/app.yaml @@ -26,30 +26,30 @@ api_version: 1 threadsafe: yes handlers: -- url: /(apple-touch-icon-.*\.png)$ - static_files: \1 - upload: apple-touch-icon-.*\.png$ - secure: always + - url: /(apple-touch-icon-.*\.png)$ + static_files: \1 + upload: apple-touch-icon-.*\.png$ + secure: always -- url: /favicon\.ico$ - static_files: favicon.ico - upload: favicon\.ico$ - secure: always + - url: /favicon\.ico$ + static_files: favicon.ico + upload: favicon\.ico$ + secure: always -- url: /(.*/(public|SwaggerUI)/.*\.(css|gif|ico|jpeg|jpg|js|map|png))$ - static_files: \1 - upload: .*\.(css|gif|ico|jpeg|jpg|js|map|png)$ - secure: always + - url: /(.*/(public|SwaggerUI)/.*\.(css|gif|ico|jpeg|jpg|js|map|png))$ + static_files: \1 + upload: .*\.(css|gif|ico|jpeg|jpg|js|map|png)$ + secure: always -# Must enable the task scheduler module. The cron job is defined in cron.yaml. -- url: /scheduler/run - script: index.php - login: admin - secure: always + # Must enable the task scheduler module. The cron job is defined in cron.yaml. + - url: /scheduler/run + script: index.php + login: admin + secure: always -- url: /.* - script: index.php - secure: always + - url: /.* + script: index.php + secure: always # Update with the bucket name and the project id. Also update php.ini with the bucket name. env_variables: @@ -59,10 +59,10 @@ env_variables: midas_temp_path: gs://your-cloudstorage-bucket/tmp skip_files: -- ^(.*/)?.*/(\.DS_Store|\.htaccess|\.gitignore|CMakeLists\.txt|.*\.java)$ -- ^(.*/)?.*/\.sass-cache/.* -- ^(.*/)?(\.codeclimate\.yml|\.coveralls\.yml|\.editorconfig|\.php_cs|\.php_cs\.cache|\.styleci\.yml|\.travis\.yml|AUTHORS|bower\.json|composer\.json|composer\.lock|composer\.phar|COPYRIGHT|CTestConfig\.cmake|LICENSE|mkdocs\.yml|phpunit\.xml\.dist|README\.md|requirements\.txt|Vagrantfile)$ -- ^(.*/)?core/configs/.*\.local\.ini$ -- ^(.*/)?(\.git|\.idea|\.vagrant|data|docs|env|log|provisioning|site|tests|tmp|utils)/.* -- ^(.*/)?(core|modules/.*)/(database/(pgsql|sqlite)|tests)/.* -- ^(.*/)?modules/(archive|batchmake|dicom.*|javauploaddownload|metadataextractor|pvw|remoteprocessing|solr|statistics|visualize)/.* + - ^(.*/)?.*/(\.DS_Store|\.htaccess|\.gitignore|CMakeLists\.txt|.*\.java)$ + - ^(.*/)?.*/\.sass-cache/.* + - ^(.*/)?(\.codeclimate\.yml|\.coveralls\.yml|\.editorconfig|\.php_cs|\.php_cs\.cache|\.styleci\.yml|\.travis\.yml|AUTHORS|bower\.json|composer\.json|composer\.lock|composer\.phar|COPYRIGHT|CTestConfig\.cmake|LICENSE|mkdocs\.yml|phpunit\.xml\.dist|README\.md|requirements\.txt|Vagrantfile)$ + - ^(.*/)?core/configs/.*\.local\.ini$ + - ^(.*/)?(\.git|\.idea|\.vagrant|data|docs|env|log|provisioning|site|tests|tmp|utils)/.* + - ^(.*/)?(core|modules/.*)/(database/(pgsql|sqlite)|tests)/.* + - ^(.*/)?modules/(archive|batchmake|dicom.*|javauploaddownload|metadataextractor|pvw|remoteprocessing|solr|statistics|visualize)/.* diff --git a/cron.yaml b/cron.yaml index 05ee94ce9..cda6e9e08 100644 --- a/cron.yaml +++ b/cron.yaml @@ -20,6 +20,6 @@ --- # Must enable the task scheduler module. cron: -- description: task scheduler job - url: /scheduler/run - schedule: every 12 minutes + - description: task scheduler job + url: /scheduler/run + schedule: every 12 minutes