Problem/Motivation

Fix all Line exceeds 80 characters issues.There are multiple issues with Coding standards.

Proposed resolution


FILE: /modules/contrib/scan_code/README.md
---------------------------------------------------------------------------
FOUND 1 ERROR AND 9 WARNINGS AFFECTING 10 LINES
---------------------------------------------------------------------------
 16 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
 18 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
 23 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
 41 | WARNING | [ ] Line exceeds 80 characters; contains 159 characters
 46 | WARNING | [ ] Line exceeds 80 characters; contains 143 characters
 55 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 73 | WARNING | [ ] Line exceeds 80 characters; contains 137 characters
 75 | WARNING | [ ] Line exceeds 80 characters; contains 147 characters
 76 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
 83 | ERROR   | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------



CommentFileSizeAuthor
#2 3376046-2.patch3.35 KBswatichouhan012

Comments

swatichouhan012 created an issue. See original summary.

swatichouhan012’s picture

Assigned: swatichouhan012 » Unassigned
Status: Active » Needs review
StatusFileSize
new3.35 KB

Here's a patch for it.

raveen_thakur51’s picture

@Swati, Your patch is good to go. It is a straightforward fix. Looks good!
As per Drupal coding standards, it is generally recommended to keep lines of code within 80 characters in length. This helps improve code readability, especially when viewed in editors or environments with limited horizontal space.

Thank You.

vasyapledov’s picture

Status: Needs review » Fixed

Fixed in a new release.

vasyapledov’s picture

Status: Fixed » Closed (fixed)
vasyapledov’s picture