FILE: ...mart_trim/src/Plugin/Field/FieldFormatter/SmartTrimFormatter.php
----------------------------------------------------------------------
FOUND 33 ERRORS AND 1 WARNING AFFECTING 34 LINES
----------------------------------------------------------------------
42 | ERROR | [x] Short array syntax must be used to define arrays
52 | ERROR | [x] Short array syntax must be used to define arrays
62 | ERROR | [x] Short array syntax must be used to define arrays
71 | ERROR | [x] Short array syntax must be used to define arrays
74 | ERROR | [x] Short array syntax must be used to define arrays
81 | ERROR | [x] Short array syntax must be used to define arrays
88 | ERROR | [x] Short array syntax must be used to define arrays
95 | ERROR | [x] Short array syntax must be used to define arrays
101 | ERROR | [x] Short array syntax must be used to define arrays
102 | ERROR | [x] Short array syntax must be used to define arrays
103 | ERROR | [x] Short array syntax must be used to define arrays
108 | ERROR | [x] Short array syntax must be used to define arrays
115 | ERROR | [x] Short array syntax must be used to define arrays
121 | ERROR | [x] Short array syntax must be used to define arrays
122 | ERROR | [x] Short array syntax must be used to define arrays
123 | ERROR | [x] Short array syntax must be used to define arrays
128 | ERROR | [x] Short array syntax must be used to define arrays
134 | ERROR | [x] Short array syntax must be used to define arrays
135 | ERROR | [x] Short array syntax must be used to define arrays
136 | ERROR | [x] Short array syntax must be used to define arrays
142 | ERROR | [x] Short array syntax must be used to define arrays
145 | ERROR | [x] Short array syntax must be used to define arrays
155 | ERROR | [x] Short array syntax must be used to define arrays
158 | ERROR | [x] Short array syntax must be used to define arrays
162 | ERROR | [x] Short array syntax must be used to define arrays
173 | ERROR | [x] Short array syntax must be used to define arrays
196 | ERROR | [x] Short array syntax must be used to define arrays
205 | ERROR | [x] Expected 1 space after ELSEIF keyword; 0 found
214 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, colons, question marks, or
| | closing parentheses
220 | ERROR | [x] Use "elseif" in place of "else if"
270 | WARNING | [ ] Only string literals should be passed to t()
| | where possible
275 | ERROR | [x] Short array syntax must be used to define arrays
276 | ERROR | [x] Short array syntax must be used to define arrays
286 | ERROR | [x] Short array syntax must be used to define arrays
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2997706-coding-standard-7.patch | 10.93 KB | dhirendra.mishra |
| #7 | interdiff_4-7.txt | 1.82 KB | dhirendra.mishra |
| #4 | 2997706-coding-standard-4.patch | 10.94 KB | deepanker_bhalla |
| #2 | 2997706-coding-standard-2.patch | 8.24 KB | deepanker_bhalla |
Comments
Comment #2
deepanker_bhalla commentedHi,
Fixed all.
Comment #3
msankhala commentedAfter applying the patch #2 there are few coding standard issues remaining.
Once you fix this issue you can create a follow-up issue to fix README.txt file as per README template https://www.drupal.org/docs/develop/documenting-your-project/readme-temp...
Comment #4
deepanker_bhalla commentedHi,
Kindly check the patch for the mentioned issues.
Comment #5
msankhala commentedThere are trailing spaces at the end of these lines.
You can configure your editor to trim the trailing spaces on save to avoid this kind of issue.
Comment #6
msankhala commentedAlso, submit interdiff whenever you are submitting a new patch which is different than the previous patch. See https://www.drupal.org/documentation/git/interdiff
Comment #7
dhirendra.mishra commentedThanks @msankhala for updates. I am uploading the interdiff file as well correct patch.Kindly check.
Comment #8
msankhala commented@deepanker_bhalla, @dhirendra.mishra Good work. I can confirm the patch #7 is applying cleanly and fixing all the coding standard reported by the PHPCS. Here is the output:
PHPCS is reporting no coding standard warning after applying the patch #7.
Comment #9
markie commentedSorry for the delay, but #7 is now failing at Hunk #4 due to other patches applied. I am going to try to fix it manually.
Comment #10
markie commenteddid some phpcs fixes of my own and committed. Thanks for your help