There are some coding standard issues in module.
| Comment | File | Size | Author |
|---|---|---|---|
| #30 | media_entity_soundcloudPhpcs.png | 18.91 KB | matheusmaciel |
| #27 | 2886457-27.patch | 5.34 KB | bruno.bicudo |
| #25 | 2886457-25.patch | 3.48 KB | sourabhjain |
| #23 | coding-standards-2886457-23.patch | 5.33 KB | chakkche |
| #2 | media_entity_soundcloud_coding_standard-2886457-2.patch | 8.88 KB | jayesh_makwana |
Issue fork media_entity_soundcloud-2886457
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jayesh_makwana commentedWe create a patch for solving coding standard issues for this module. Please check and apply it.
Comment #3
jcisio commentedPatch no longer applies.
Comment #4
jcisio commentedComment #5
Deepthi kumari commentedHi,
Applied the patch, needs review.
Comment #6
volegerComment #7
jcisio commentedWe won't fix coding standards for 1.x branch.
Comment #8
urvashi_vora commentedHi @jcisio,
I tried resolving all errors for 8.x-2.x-dev. I am applying a patch. Please review it.
Comment #9
libbna commentedAdd a new line at EOF.
Comment #10
libbna commentedComment #11
ruturaj chaubeyWorking on this.
Comment #12
ruturaj chaubeyAdded a patch. Please review this.
Comment #13
ruturaj chaubeyComment #14
libbna commentedI will review.
Comment #15
libbna commentedNot able to apply the #12 patch.
Comment #16
ruturaj chaubeyWill work on this.
Comment #17
chakkche commentedComment #18
shashwat purav commentedHi @Ruturaj Chaubey, are you still working on this?
Comment #19
ruturaj chaubeyComment #20
shashwat purav commentedAdded a patch. Please review this.
Comment #21
chakkche commentedComment #22
chakkche commentedI think this needs to be validated against latest branch i.e 3.x as 8.x-2.x branch doesn't seems to be no longer monitored. Even after applying patch from #20 i can still see some coding standards issues.
FILE: ...home/chakkche/contribs/media_entity_soundcloud/src/Form/SoundcloudForm.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------
118 | ERROR | [x] Expected "void|true" but found "void|TRUE" for function
| | return type
118 | ERROR | [ ] @return doc comment specified, but function has no return
| | statement
118 | ERROR | [ ] Description for the @return value is missing
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...he/contribs/media_entity_soundcloud/src/Plugin/media/Source/Soundcloud.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
84 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
86 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
--------------------------------------------------------------------------------
FILE: ...chakkche/contribs/media_entity_soundcloud/media_entity_soundcloud.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | "core_version_requirement" property is missing in the info.yml
| | file
--------------------------------------------------------------------------------
Time: 173ms; Memory: 10MB
Comment #23
chakkche commentedHere is the patch against branch 3.x
Comment #25
sourabhjainI have resolved all PHPCS issue. Please review.
Comment #27
bruno.bicudoThere was one last error on PHPCS:
I corrected this one and added
StringTranslationTraitto the class. Also, the failing tests were due to the link that was being used onSoundcloudEmbedFormatterTest.phpthat was removed. I changed it for another link (same music, Billie Jean Remix XD).Needs review :)
Comment #28
bruno.bicudoComment #29
matheusmaciel commentedI'll review it!
Comment #30
matheusmaciel commentedI just reviewed it and it looks good for me! I ran phpcs for Coding Standards and Best Practices with an alias, I didn't have any ERROR or WARNING outcome.
Comment #33
rajeshreeputraThis fixes coding standards
Comment #35
rajeshreeputra