some of the test file has double semicolon at the end of the line ";;".
// Mock the State service.
$memory_state = new State(new KeyValueMemoryFactory());;
$settings = Settings::getAll();
$request = Request::create('/');;| Comment | File | Size | Author |
|---|---|---|---|
| #2 | remove-double-semicolon-2658006-2.patch | 4.45 KB | miteshmap |
Comments
Comment #2
miteshmapComment #3
cilefen commentedComment #4
snehi commentedIt works for me
RTBC now.
Comment #5
catchDoes this have a DrupalCS rule?
Comment #6
cilefen commented@catch Evidently it does not.
Comment #7
catchThanks for checking.
We should create a DrupalCS/coder issue to add that rule, then once it's in (and DrupalCI is running against core) there'll be no way for core to regress. More at https://www.drupal.org/core/scope#coding-standards
Postponing on the DrupalCS rule.
Comment #8
catchComment #9
naveenvalechaAgree catch with #7 but there is lot of pending work around #1299710: [meta] Automate the coding-standards part of patch review so should not we push these issues in while drupalci will comeup with the support of coding standards
Comment #10
catch@naveenvalecha without a CS rule, none of the work in #1299710: [meta] Automate the coding-standards part of patch review will cover the changes in this issue.
Comment #11
naveenvalecha#10
Yup Make sense
Comment #22
quietone commentedThis was fixed in #3041985: Add Generic.CodeAnalysis.EmptyPHPStatement to phpcs rules to prevent empty PHP statements. Closing as a duplicate.
Comment #23
quietone commentedThat was supposed to be closed as duplicate.