Fix cspell eslint phpcs phpstan

Created on 18 October 2024, 2 months ago

Problem/Motivation

Fix

  • cspell
  • eslint
  • phpcs
  • phpstan

reported by GitLab CI

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @Anybody
  • 🇮🇳India lavanyatalwar

    Working on it.

  • Merge request !22Fixed some issues → (Merged) created by Anybody
  • Pipeline finished with Failed
    2 months ago
    Total: 247s
    #313325
  • 🇮🇳India lavanyatalwar

    Heyy @anybody,
    I was resolving cspell errors and found the problem lies mostly in the term 'giftcards'.
    Pipeline failure error log suggests to change it to 'giftcard' instead.
    I think changing it will generate an error in th functionality.
    So should I skip cspell or change the term?

  • 🇩🇪Germany Anybody Porta Westfalica

    @lavanyatalwar thanks. For "names" you could add a cspell ignore file to add these special words, like the module name.

    If it's not the module name, it should be spaced:
    Giftcard => Gift card
    Giftcards => Gift cards

  • 🇮🇳India lavanyatalwar

    Okay
    Should I fix phpunit errors as well?
    Because I see some errors related to views as well (missing schema) that is not related to the this module.

  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks, no that should be fixed in 🐛 Fix tests Active (that fix is already present)

  • Pipeline finished with Failed
    2 months ago
    Total: 245s
    #313479
  • 🇮🇳India lavanyatalwar

    @anybody
    Now all the errors have been resolved.
    Kindly check and merge :)

  • 🇩🇪Germany Anybody Porta Westfalica

    Really really GREAT work @lavanyatalwar thank you so much!

    I left some comments to resolve. Would you also like to have a look at the fix tests issue afterwards?

  • 🇮🇳India lavanyatalwar

    Thanks @anybody
    Sure I'll have a look on the issue you are refering.
    Let me first resolve the comments on this issue.

  • First commit to issue fork.
  • 🇮🇳India ankitv18

    @lavanyatalwar we can use _CSPELL_WORDS in case of few words are reported and you create .cspell-project-words.txt file to add all words as a dictionary in that file.

    Please proceed with other feedback from @anybody

  • Pipeline finished with Failed
    2 months ago
    Total: 325s
    #313770
  • 🇮🇳India lavanyatalwar

    Thanks @ankitv18. I agree, I could have used that method.

  • 🇺🇸United States rhovland Oregon

    When addressing spelling issues adding words to the dictionary should only happen for valid words.

    For instance "fewfsfs" is part of an API key. This should not be added to the dictionary. Instead the the following should be appended to the line above the API key in the test
    // cspell:disable-next-line

    The address in the test "2630 Hegal Place" should be modified so it does not trip the spell checker.

    The usage of "autofills" is incorrect. It should say "Chrome autofill incorrectly fills this field with address line 1" as that is clearer language.

  • 🇩🇪Germany Anybody Porta Westfalica

    Thank you for your feedback and input @rhovland! Learned something new today! Thanks!!

  • 🇺🇸United States rhovland Oregon
  • Pipeline finished with Failed
    about 2 months ago
    Total: 259s
    #324757
  • 🇩🇪Germany Anybody Porta Westfalica

    Thank you very very much @lavanyatalwar and @rhovland!!

  • Pipeline finished with Running
    about 2 months ago
    #325384
  • Pipeline finished with Failed
    about 2 months ago
    Total: 252s
    #325416
  • Pipeline finished with Failed
    about 2 months ago
    Total: 244s
    #325487
  • 🇺🇸United States rhovland Oregon

    Tested MR. Everything works as expected.

    Is there anything else that needs addressed in this issue or is this good to go.

  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks @rhovland great work!

    I think it's fine, let's next fix the tests and schema in 🐛 Fix tests Active separately.

    I'm going to merge this now, wonderful improvements!

  • Pipeline finished with Skipped
    about 2 months ago
    #325683
    • anybody committed 6047ae42 on 2.x
      Issue #3481609 by rhovland, anybody, lavanyatalwar, ankitv18: Improve...
  • 🇩🇪Germany Anybody Porta Westfalica
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024