Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Enforce noUnusedLocals on all backend and nodes packages (no-changelog) #8428

Merged
merged 4 commits into from
Jan 25, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented Jan 24, 2024

This hopefully makes backend code a tiny bit cleaner.

Review / Merge checklist

  • PR title and summary are descriptive

@netroy netroy requested a review from ivov January 24, 2024 12:39
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Jan 24, 2024
Copy link
Contributor

@ivov ivov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're going this route, we could add noUnusedParameters and so remove @typescript-eslint/no-unused-vars.

https://stackoverflow.com/a/77784907

@netroy netroy force-pushed the fail-lint-on-unused-private-properties branch from 42448d5 to a1daaee Compare January 25, 2024 12:07
@netroy netroy requested a review from ivov January 25, 2024 12:07
Comment on lines -428 to -433
{
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only doubt was whether we could exempt unused params with underscore, but it looks like the TS setting supports this out of the box 👍🏻

Copy link

cypress bot commented Jan 25, 2024

3 flaky tests on run #3903 ↗︎

0 338 5 0 Flakiness 3

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project: n8n Commit: 2827840d5c
Status: Passed Duration: 03:28 💡
Started: Jan 25, 2024 1:20 PM Ended: Jan 25, 2024 1:23 PM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay Screenshots Video
Flakiness  17-sharing.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Sharing > should work for admin role on credentials created by others (also can share it with themselves) Test Replay Screenshots Video
Flakiness  28-debug.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Debug > should be able to debug executions Test Replay Screenshots Video

Review all test suite changes for PR #8428 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit cc2f0ad into master Jan 25, 2024
30 checks passed
@netroy netroy deleted the fail-lint-on-unused-private-properties branch January 25, 2024 13:33
MiloradFilipovic added a commit that referenced this pull request Jan 26, 2024
* master:
  fix(editor): Fix workflows filter resetting (#8411)
  fix(editor): Show pin button on binary output but disable it with tooltip (#8388)
  fix(Merge Node): Passing on no items to "Input 2" results in wrong output items (#8438)
  ci: Enforce `noUnusedLocals` on all backend and nodes packages (no-changelog) (#8428)
  ci: Move docs check notification to #alerts-build (no-changelog) (#8435)
  🚀 Release 1.26.0 (#8427)
@janober
Copy link
Member

janober commented Feb 2, 2024

Got released with n8n@1.27.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants