Skip to content
Snippets Groups Projects

Fix Drupal.Arrays.Array.LongLineDeclaration

This change only fixes PHPCS warnings relating to long lines. Closes #3419925

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • quietone
  • quietone
  • quietone
  • quietone
  • quietone
  • quietone
  • 453 453 $project['body']['summary'] = Xss::filter(strip_tags($project['body']['summary']));
    454 454 $project['body']['summary'] = Unicode::truncate($project['body']['summary'], 200, TRUE, TRUE);
    455 455
    456 // Once we hit projects that haven't been updated since March 13, 2020, we
    457 // know they aren't compatible because it is before
    456 // Once we hit projects that haven't been updated since March 13, 2020,
    457 // we know they aren't compatible because it is before
    458 458 // https://www.drupal.org/node/3119415.
    • Comment on lines +456 to 458

      The links should be an @see. And if that is done then the sentence needs to change to explain what this is about. We should not expect future devs to have to go to another page to understand what a bit of code is doing.

      Plus why are we 'hitting' projects? Does this mean 'find'?

    • Note this is in a function called "hackyFixtureMaker". As far as I can tell, this pulls pages of projects from drupal.org, sorted by last updated, and when it "hits" the 2020-03-13, it knows it doesn't need to go further because that's when the "core" directive in .info.yml was deprecated.

      I think "find" implies a search rather than a scan. How about "reach"?

    • changed this line in version 10 of the diff

    • Changed link to use @see. Attempted to make comment clearer.

    • Please register or sign in to reply
  • quietone
  • quietone
  • quietone
  • quietone
  • quietone
  • quietone
  • James Shields added 1 commit

    added 1 commit

    • a194fd6a - Applying improvements suggested by quietone.

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    • 465878c8 - Adding long line array I missed.

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    • 4e2e369e - Ignore missing punctuation on command.

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    • 27178611 - Restore blank line after cspell:ignore.

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    • d0320cc3 - Added phpcs:ignore for blank line after cspell.

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    • 6f64cf07 - Add phpcs ignore for blank line after cspell exceptions.

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    Compare with previous version

  • quietone
  • James Shields added 1 commit

    added 1 commit

    • edd93474 - Move cspell below use statements.

    Compare with previous version

  • James Shields added 15 commits

    added 15 commits

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    Compare with previous version

  • Chris Wells added 8 commits

    added 8 commits

    • 1ca27deb...3ac3ea1b - 7 commits from branch project:1.0.x
    • 0886fc0c - Merge branch '1.0.x' into '3419925-gitlab-ci--' - removes getters and setters from previous issue

    Compare with previous version

  • quietone
  • 453 453 $project['body']['summary'] = Xss::filter(strip_tags($project['body']['summary']));
    454 454 $project['body']['summary'] = Unicode::truncate($project['body']['summary'], 200, TRUE, TRUE);
    455 455
    456 // Once we hit projects that haven't been updated since March 13, 2020,
    457 // we know they aren't compatible because it is before
    458 // https://www.drupal.org/node/3119415.
    456 // Once we reach projects that haven't been updated since 2020-03-13, we
    457 // know they aren't compatible because it is before deprecation of code
    458 // directive in .info.yml file.
    459 // @see https://www.drupal.org/node/3119415
    • Comment on lines +456 to +459

      I think this is referring to the deprecation of the 'core' key, not the 'code directive'. What do you think of this re-wording?

      Suggested change
      456 // Once we reach projects that haven't been updated since 2020-03-13, we
      457 // know they aren't compatible because it is before deprecation of code
      458 // directive in .info.yml file.
      459 // @see https://www.drupal.org/node/3119415
      456 // Projects there were last updated before 2020-03-13 are not
      457 // compatible. That is date of the deprecation of the 'core' key from
      458 // the info.yml file.
      459 // @see https://www.drupal.org/node/3119415
    • Projects ^that

    • Accepting change, but changing "there" to "that", as per Chris's suggestion.

    • Please register or sign in to reply
  • James Shields added 1 commit

    added 1 commit

    • bb13f005 - Clarify description for excluded deprecated projects.

    Compare with previous version

  • James Shields added 19 commits

    added 19 commits

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    Compare with previous version

  • quietone
  • quietone
  • quietone
  • quietone
  • James Shields added 1 commit

    added 1 commit

    • a00b5680 - Restore CSS files from 1.0.x.

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    • 81ad29ee - Correcting missing closing quote.

    Compare with previous version

  • James Shields added 1 commit

    added 1 commit

    • 16b76634 - Remove redundant words from comment.

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading