Comments

heykarthikwithu created an issue. See original summary.

mahaveer003’s picture

Assigned: Unassigned » mahaveer003
Status: Active » Needs work

Working on this.

mahaveer003’s picture

Assigned: mahaveer003 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new6.42 KB

Patch for Code cleaup as per pareview.sh

naveenvalecha’s picture

Title: Code cleaup as per pareview.sh » Coding Standard fixes
Status: Needs review » Needs work
Issue tags: +Novice, +Needs tests

Thanks! this will not fix all the issues as per pareview but as per latest coding standard changes. remove the @file from classes,intefaces and traits file.

Pradnya Pingat’s picture

Assigned: Unassigned » Pradnya Pingat
Pradnya Pingat’s picture

updating patch as per coding standards referred from https://www.drupal.org/coding-standards/docs#file .

Pradnya Pingat’s picture

Assigned: Pradnya Pingat » Unassigned
Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 6: updating_files_as_per_coding_standards-2677856-#6.patch, failed testing.

neerajsingh’s picture

Assigned: Unassigned » neerajsingh
neerajsingh’s picture

Assigned: neerajsingh » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.46 KB
new7.53 KB

Re-rolling the patch.

naveenvalecha’s picture

Issue tags: -Needs tests

we don't need tests here. Removing the tag that was added in #4

willzyx’s picture

Status: Needs review » Needs work

needs a reroll after #2770037: Removed @file tag .

  1. +++ b/coffee.coffee.inc
    @@ -2,8 +2,7 @@
    + * The hooks that are used by Coffee includes an example of hook_coffee_commands().
    

    Line is 82 chars

  2. +++ b/js/coffee.js
    @@ -32,13 +32,8 @@
    -  /**
    -   * Coffee module namespace
    -   *
    -   * @namespace
    -   *
    -   * @todo put this in Drupal.coffee to expose it.
    -   */
    
    @@ -51,7 +46,7 @@
    +   * @todo get most of it out of the behavior in dedicated functions.
    
    @@ -212,11 +206,7 @@
    -  /**
    -   * The HTML elements.
    -   *
    -   * @todo use Drupal.theme.
    -   */
    

    Please revert these changes. The coding standards are properly applied here

  3. +++ b/src/Controller/CoffeeController.php
    @@ -188,9 +183,9 @@ class CoffeeController extends ControllerBase {
    +      // @var $instances \Drupal\Core\Menu\LocalTaskInterface[].
    

    Please revert this change. /** @var ...**/ is used by phpstorm for retrieve type information for the variable

neerajsingh’s picture

Assigned: Unassigned » neerajsingh
neerajsingh’s picture

Status: Needs work » Needs review
StatusFileSize
new4.83 KB

Attaching the re-rolled patch here..

naveenvalecha’s picture

@neerajsingh,
Please provide the interdiff it would be easier to review the changes https://www.drupal.org/documentation/git/interdiff

neerajsingh’s picture

@naveenvalecha, Patch at #10 doesn't apply any more after #2770037: Removed @file tag .

Hence patch at #14 is a new patch. Do we still need a interdiff ?

naveenvalecha’s picture

Assigned: neerajsingh » Unassigned

Alright then this needs test on pareview.sh as my setup of pareview.sh on my local is pretty old.

Steps to test :

Apply the path to a sperate branch
Run that branch against coding standards requirement on pareview.sh and post the link here.

Neeraj,
Now this is in admin's radar, let's get the review from them after this patch gets committed.
Thanks!

leandro713’s picture

Status: Needs review » Needs work

ok, so i grabbed branch 8.x-1.x from coffee repo,
applied patch #3
then applied locally latest pareview.sh from its github repo
and these are the results:


FILE: /home/leandro/git/coffee/coffee.coffee.inc
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 6 | ERROR | Doc comment short description must be on a single line,
   |       | further text should be a separate paragraph
--------------------------------------------------------------------------


FILE: ...me/leandro/git/coffee/tests/modules/coffee_test/coffee_test.info.yml
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
 1 | WARNING | Remove "version" form the info file, it will be added by
   |         | drupal.org packaging automatically
--------------------------------------------------------------------------


FILE: /home/leandro/git/coffee/coffee.module
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
 83 | WARNING | Translatable strings must not begin or end with white
    |         | spaces, use placeholders with t() for variables
--------------------------------------------------------------------------


FILE: /home/leandro/git/coffee/src/Tests/CoffeeTest.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
 77 | WARNING | [x] A comma should follow the last multiline array item.
    |         |     Found: 'account'
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: /home/leandro/git/coffee/src/Controller/CoffeeController.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 187 | ERROR | Inline doc block comments are not allowed; use "/* Comment
     |       | */" or "// Comment" instead
--------------------------------------------------------------------------


FILE: /home/leandro/git/coffee/css/coffee.css
--------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------
 173 | ERROR | [x] Spaces must be used to indent lines; tabs are not
     |       |     allowed
 173 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 174 | ERROR | [x] Spaces must be used to indent lines; tabs are not
     |       |     allowed
 174 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 175 | ERROR | [x] Spaces must be used to indent lines; tabs are not
     |       |     allowed
 175 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 176 | ERROR | [x] Spaces must be used to indent lines; tabs are not
     |       |     allowed
 176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

Time: 273ms; Memory: 9.25Mb
shruti1803’s picture

Assigned: Unassigned » shruti1803
shruti1803’s picture

Assigned: shruti1803 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new3.91 KB
new4.79 KB

Updated patch as said in #18.

leandro713’s picture

Status: Needs review » Reviewed & tested by the community

besides phpcs warns a lot of errors
my local pareview.sh seems to be happy with latest patch
and gives no errors ...

rasikap’s picture

Assigned: Unassigned » rasikap
rasikap’s picture

Status: Reviewed & tested by the community » Needs work
rasikap’s picture

Assigned: rasikap » Unassigned
Status: Needs work » Needs review
StatusFileSize
new6.62 KB
new3.07 KB

Fixed the phpcs issues I found. Please review.

leandro713’s picture

Status: Needs review » Reviewed & tested by the community

ok latest patch is ok for both pareview and phpcs
good work!

  • willzyx committed a1b3fbb on 8.x-1.x authored by rasikap
    Issue #2677856 by neerajsingh, rasikap, shruti1803, Pradnya Pingat,...
willzyx’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.