- Issue created by @ptmkenny
- @ptmkenny opened merge request.
- Status changed to Needs review
about 2 years ago 3:34pm 6 February 2023 - 🇯🇵Japan ptmkenny
The MR fixes many of the issues. The remaining issues are related to DI (which I think should be in a separate issue because it can break things) and "unused variables" that actually appear to have functions in the code, which I think should be resolved by someone who understands the code better than me :)
Remaining issues:
FILE: /var/www/html/web/modules/contrib/feeds_tamper/feeds_tamper.module ------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------ 54 | WARNING | Unused variable $feed_type_tamper_meta. ------------------------------------------------------------------------ FILE: /var/www/html/web/modules/contrib/feeds_tamper/tests/src/Functional/UiCrudTest.php ---------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------- 182 | WARNING | Unused variable $uuid. ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/modules/contrib/feeds_tamper/legacy/feeds_tamper_ui/tests/feeds_tamper_ui.test ------------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AND 8 WARNINGS AFFECTING 9 LINES ------------------------------------------------------------------------------------------------------------------------------ 166 | ERROR | Public method name "FeedsTamperUIWebTestCase::testCSV" is not in lowerCamel format 196 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead 197 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead 198 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead 201 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead 202 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead 203 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead 218 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead 237 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and | | $this->t() instead ------------------------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/web/modules/contrib/feeds_tamper/src/Form/TamperEditForm.php -------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------- 67 | WARNING | Unused variable $tampers_config. --------------------------------------------------------------------------------
- 🇳🇱Netherlands megachriz
Anything in the legacy folder is not worth fixing, so don't spend any extra time there. The legacy folder only contains the code that has not been ported yet from the D7 version.
We should remove the legacy folder before releasing a stable version. I am first focussing on getting Feeds stable, so Feeds Tamper only gets minimal attention from me right now.