Installing Coder Sniffer https://www.drupal.org/node/1419988
Install
composer global require drupal/coder squizlabs/php_codesniffer
Init
~/.composer/vendor/bin/phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer
| "patches": { | |
| "drupal/core": { | |
| "Setting required on radios marks all options required": "https://www.drupal.org/files/issues/drupal-states-required-options-2731991-5.patch", | |
| "Number widget validation can break AJAX actions": "https://www.drupal.org/files/issues/2614250-40.patch", | |
| "Programmatically created translatable content type returns SQL error on content creation": "https://www.drupal.org/files/issues/2599228-31.patch", | |
| "Clearing cache via UI in translated language resets config translation of field labels to default language": "https://www.drupal.org/files/issues/clearing_cache_via_ui-2650434-128.patch", | |
| "ajax.js insert command sometimes wraps content in a div, potentially producing invalid HTML and other bugs": "https://www.drupal.org/files/issues/ajax_js_insert_command-736066-116.patch", | |
| "View entity reference": "https://www.drupal.org/files/issues/2174633-143-entity-reference.patch" | |
| }, | |
| "drupal/ctools": { |
| php-7.1.2 # ./configure --help | |
| `configure' configures this package to adapt to many kinds of systems. | |
| Usage: ./configure [OPTION]... [VAR=VALUE]... | |
| To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
| VAR=VALUE. See below for descriptions of some of the useful variables. | |
| Defaults for the options are specified in brackets. |
| php-7.1.2$ diff php.ini-production php.ini-development | |
| --- php.ini-production | |
| +++ php.ini-development | |
| @@ -83,7 +83,7 @@ | |
| ; development version only in development environments, as errors shown to | |
| ; application users can inadvertently leak otherwise secure information. | |
| -; This is php.ini-production INI file. | |
| +; This is php.ini-development INI file. | |
| diff --git a/core/lib/Drupal.php b/core/lib/Drupal.php | |
| index d124160..005275b 100644 | |
| --- a/core/lib/Drupal.php | |
| +++ b/core/lib/Drupal.php | |
| @@ -81,7 +81,7 @@ class Drupal { | |
| /** | |
| * The current system version. | |
| */ | |
| - const VERSION = '8.2.0'; | |
| + const VERSION = '8.2.1'; |
| diff --git core/includes/install.inc core/includes/install.inc | |
| index 61725da..43c66d6 100644 | |
| --- core/includes/install.inc | |
| +++ core/includes/install.inc | |
| @@ -940,6 +940,7 @@ function drupal_check_profile($profile) { | |
| $listing = new ExtensionDiscovery(\Drupal::root()); | |
| $module_list = $listing->scan('module'); | |
| foreach ($info['dependencies'] as $module) { | |
| + if (empty($module_list[$module])) assert(FALSE, $module); | |
| $file = \Drupal::root() . '/' . $module_list[$module]->getPath() . "/$module.install"; |
Installing Coder Sniffer https://www.drupal.org/node/1419988
Install
composer global require drupal/coder squizlabs/php_codesniffer
Init
~/.composer/vendor/bin/phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer
| views$ git blame -L 1981,1989 views.module | |
| 2dd76fe0 (Earl Miles 2009-11-02 22:01:27 +0000 1981) function views_exposed_form($form, &$form_state) { | |
| 31dd0540 (The Great Git Migration 2009-10-05 22:49:04 +0000 1982) // Don't show the form when batch operations are in progress. | |
| 4f09d3fd (Earl Miles 2010-10-14 20:04:09 +0000 1983) if ($batch = batch_get() && isset($batch['current_set'])) { | |
| 31dd0540 (The Great Git Migration 2009-10-05 22:49:04 +0000 1984) return array( | |
| 31dd0540 (The Great Git Migration 2009-10-05 22:49:04 +0000 1985) // Set the theme callback to be nothing to avoid errors in template_preprocess_views_exposed_form(). | |
| 31dd0540 (The Great Git Migration 2009-10-05 22:49:04 +0000 1986) '#theme' => '', | |
| 31dd0540 (The Great Git Migration 2009-10-05 22:49:04 +0000 1987) ); | |
| 31dd0540 (The Great Git Migration 2009-10-05 22:49:04 +0000 1988) } | |
| 31dd0540 (The Great Git Migration 2009-10-05 22:49:04 +0000 1989) |
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\idevels_proconsort_utility\Plugin\Field\FieldWidget\InlineEntityFormCustom. | |
| */ | |
| namespace Drupal\idevels_proconsort_utility\Plugin\Field\FieldWidget; | |
| use Drupal\Core\Field\FieldItemListInterface; |
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\custom_utility\ConfigUpdater. | |
| */ | |
| namespace Drupal\custom_utility; | |
| use Drupal\config\StorageReplaceDataWrapper; |