Command icon 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

sunil jolapara created an issue. See original summary.

sunil jolapara’s picture

Status: Needs work » Needs review
cleavinjosh’s picture

Version: 2.0.x-dev » 1.1.x-dev
Status: Needs review » Reviewed & tested by the community

Hi @sunil jolapara,

Thank you for providing an MR. I applied MR!3, it was applied smoothly and fixed the phpcs issues.

➜  media_contextual_crop_iwc_adapter git:(1.0.x) curl https://git.drupalcode.org/project/media_contextual_crop_iwc_adapter/-/merge_requests/3.diff | patch -p1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10203    0 10203    0     0  26520      0 --:--:-- --:--:-- --:--:-- 26501
patching file .gitlab-ci.yml
patching file composer.json
patching file media_contextual_crop_iwc_adapter.info.yml
patching file media_contextual_crop_iwc_adapter.module
patching file src/Plugin/MediaContextualCrop/ImageWidgetCrop.php
➜  media_contextual_crop_iwc_adapter git:(1.0.x) ✗ ..
➜  contrib git:(main) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml media_contextual_crop_iwc_adapter
➜  contrib git:(main) ✗

Thank you.

avpaderno’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs issue summary update

The issue summary for PHP_CodeSniffer issues should always show the report given from PHP_CodeSniffer and the arguments passed to phpcs.

Furthermore, since GitLab CI is now enabled for all the projects, GitLab CI should be used to get PHP_CodeSniffer errors/warnings.

cleavinjosh’s picture

Version: 1.1.x-dev » 1.0.x-dev
Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs issue summary update
drdam’s picture

Status: Needs review » Needs work

Can you make the MR for the 2.x branch ?

the 1.x branch are minimaly maintained now

thanks

avpaderno’s picture

Version: 1.0.x-dev » 2.0.x-dev
Issue tags: +Needs issue summary update, +Needs reroll

The issue summary still needs to be updated, since it should link to the GitLab CI report.

avpaderno changed the visibility of the branch 3476682-fix-the-issues to hidden.

avpaderno’s picture

@drdam May the 2.0.x branch be set as the default one?

drdam’s picture

It's the case

cleavinjosh’s picture

Assigned: » cleavinjosh

cleavinjosh’s picture

Assigned: cleavinjosh » Unassigned

Hi,

My apologies, there might have been some composer dependency resolution issues.

I am not sure how to proceed.

Please check and advise. Thank you.

avpaderno’s picture

avpaderno changed the visibility of the branch 3476682-gitlab-ci-reports to hidden.

avpaderno changed the visibility of the branch 3476682-2.0.x-fix-phpcs-issues to hidden.

avpaderno changed the visibility of the branch 3476682-2.0.x-fix-phpcs-issues to active.

avpaderno’s picture

Issue summary: View changes
Status: Needs work » Needs review

avpaderno changed the visibility of the branch 3476682-fix-phpcs-issues to hidden.

roberttabigue’s picture

Hi,

I have applied the latest MR!6 to the Media Contextual ImageWidgetCrop Adapter (2.0.x-dev) on my Drupal local setup, and confirmed all PHPCS errors have been fixed.

FILE: /Users/roberttabigue/Project/DrupalOrg/drupalorgissues/web/themes/contrib/media_contextual_crop_iwc_adapter/media_contextual_crop_iwc_adapter.module
----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------
 68 | ERROR | [x] Expected 1 space after IF keyword; 0 found
----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 103ms; Memory: 10MB

I ran this command on the module:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml media_contextual_crop_iwc_adapter

Please see the attached file for reference.

I'm moving this now to "RTBC".

Thank you!

  • drdam committed 669f0f4e on 2.0.x authored by avpaderno
    Issue #3476682: Fix the issues reported by PHP_CodeSniffer
    
drdam’s picture

Status: Needs review » Fixed

Thanks all

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

drdam’s picture

Status: Fixed » Closed (fixed)

Released in 2.0.4