Problem/Motivation
Steps to reproduce
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/modules/contrib/antibot/
FILE: /web/modules/contrib/antibot/README.md
----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------
40 | WARNING | Line exceeds 80 characters; contains 93 characters
----------------------------------------------------------------------------------
FILE: /web/modules/contrib/antibot/src/Form/AntibotSettings.php
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
61 | ERROR | [x] Expected 1 blank line after function; 2 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------
FILE: /web/modules/contrib/antibot/antibot.module
-------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
205 | ERROR | [x] Expected 1 newline at end of file; 0 found
Issue fork antibot-3566033
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 #5
nisha_j commentedVerified there are no syntax errors or PHPCS violations after the changes.
Thanks,
Comment #6
elfakhar commentedComment #7
paraderojether commentedHi
I reviewed MR!36, and it passed on Gitlab CI. However there are still remaining PHPCS issues reamaing after running
Jether@PrometSources-MacBook-Pro-4 contrib % phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml,twig antibotKindly check and advise, please.
Thank you.
Comment #9
shamir.vs commentedI have created a merge request. Please take a moment to review it. Thank you!
Comment #10
danrodComment #11
danrodI reviewed the changes and tested them locally and found no issues, the changes in the
README.mdandantibot.modulemakes sense to me, thanks a lot to everyone involved, I'll merge this to the 2.0.x branch.Comment #12
danrodComment #13
danrod