Cleanup all the code quality remaining issues

Created on 10 April 2024, 8 months ago
Updated 25 April 2024, 7 months ago

This task is to cleanup all the code quality remaining issues. This is necessary in preparation for the core MR. Code quality issues are necessary to address because in core MRs issues with code quality will prevent PHPUnit tests from running.

See last pipeline results.

Due to upstream issues with running eslint in Gitlab CI with customizations, I've spun that off into a separate ticket: 🐛 Eslint is failing with ESLint couldn't find the config "airbnb-base" to extend from Active . Here we're shooting for all jobs passing except eslint. However we do expect eslint to pass locally (eg. yarn run lint:core-js-passing).

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada m4olivei Grimsby, ON

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @m4olivei
  • 🇨🇦Canada m4olivei Grimsby, ON
  • Pipeline finished with Success
    8 months ago
    Total: 212s
    #143934
  • Pipeline finished with Success
    8 months ago
    Total: 218s
    #143946
  • Pipeline finished with Success
    8 months ago
    Total: 262s
    #143962
  • Pipeline finished with Success
    8 months ago
    Total: 345s
    #143988
  • Pipeline finished with Success
    8 months ago
    Total: 211s
    #143996
  • Pipeline finished with Success
    8 months ago
    Total: 268s
    #144007
  • Assigned to m4olivei
  • 🇨🇦Canada m4olivei Grimsby, ON
  • Pipeline finished with Success
    8 months ago
    Total: 220s
    #144047
  • Pipeline finished with Success
    8 months ago
    Total: 220s
    #144048
  • 🇨🇦Canada m4olivei Grimsby, ON

    I've got cspell and phpcs now passing on this MR.

    eslint is also passing locally, however it's not passing in CI. In CI we're getting the following error:

    Oops! Something went wrong! :(
    ESLint: 8.55.0
    ESLint couldn't find the config "airbnb-base" to extend from. Please check that the name of the config is correct.
    The config "airbnb-base" was referenced from the config file in "/builds/project/navigation/web/modules/custom/navigation/.eslintrc.json".

    This error has been happening since we originally added Gitlab CI Add Gitlab CI integration Fixed . See the job run from back then.

    There are others 📌 Fix ESLint on CI Active who have run into this. There is also an issue filed against the Gitlab Templates project. I've commented there and will watch it.

    Ideas to try

    • Remove our eslint customizations and see what happens.
    • Ignore eslint for now
    • ???
  • Pipeline finished with Success
    8 months ago
    #144105
  • 🇨🇦Canada m4olivei Grimsby, ON

    Also noting that eslint config in CI just got a big-ish change a few days ago: #3432261: Eslint on contrib is making incorrect recommendations .

  • Issue was unassigned.
  • Status changed to Needs review 8 months ago
  • 🇨🇦Canada m4olivei Grimsby, ON

    As the eslint seems to be having larger issues that will take collaboration with the Gitlab Template project. Let's spin it off and not hold up the cleanup we were able to get done here. Follow up issue: 🐛 Eslint is failing with ESLint couldn't find the config "airbnb-base" to extend from Active .

  • Pipeline finished with Success
    8 months ago
    #144122
  • 🇨🇦Canada m4olivei Grimsby, ON
  • Status changed to RTBC 8 months ago
  • 🇪🇸Spain ckrina Barcelona

    LGTM. Good idea to spinoff the eslint fixes.

  • Pipeline finished with Skipped
    8 months ago
    #144146
    • m4olivei committed 7717a835 on 1.x
      Issue #3439979 by m4olivei, ckrina: Cleanup all the code quality...
  • Status changed to Fixed 8 months ago
  • 🇨🇦Canada m4olivei Grimsby, ON

    Great! Thanks. Merged to 1.x 🎉.

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Pipeline finished with Failed
    4 months ago
    #244221
  • Pipeline finished with Failed
    4 months ago
    Total: 8091s
    #245423
  • Pipeline finished with Canceled
    2 months ago
    Total: 122s
    #290921
  • Pipeline finished with Failed
    2 months ago
    Total: 477s
    #290923
  • Pipeline finished with Success
    2 months ago
    Total: 508s
    #291034
  • Pipeline finished with Success
    2 months ago
    Total: 448s
    #291062
  • Pipeline finished with Success
    2 months ago
    Total: 455s
    #298023
  • Pipeline finished with Success
    about 2 months ago
    #309125
  • Pipeline finished with Failed
    8 days ago
    Total: 722s
    #350985
  • Pipeline finished with Failed
    7 days ago
    Total: 1435s
    #351974
  • Pipeline finished with Failed
    7 days ago
    Total: 2327s
    #352065
  • Pipeline finished with Failed
    7 days ago
    Total: 1152s
    #352180
Production build 0.71.5 2024