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 no unused imports (no-changelog) #6073

Merged
merged 4 commits into from
Apr 25, 2023
Merged

Conversation

ivov
Copy link
Contributor

@ivov ivov commented Apr 24, 2023

Followup to #6060, to address the unused-imports comments in this review.

The combine-imports comments are covered by #6072.

@github-actions
Copy link
Contributor

Great PR! Please pay attention to the following items before merging:

Files matching packages/**:

  • If fixing bug, added test to cover scenario.
  • If addressing forum or Github issue, added link to description.

Files matching packages/**/*.ts:

  • Added unit tests to cover new or updated functionality.

Files matching **/*.vue:

  • Used composition API for all new components.
  • Added component or unit tests to cover functionality.

Files matching packages/editor-ui/**/*.vue:

  • Added E2E if adding new features.
  • Used design system tokens (colors, spacings...) where possible.

Make sure to check off this list before asking for review.

netroy
netroy previously approved these changes Apr 24, 2023
/**
* https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
*/
'unused-imports/no-unused-imports': 'error',
Copy link
Member

Choose a reason for hiding this comment

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

should we make this a warning during development ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea!

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Apr 24, 2023
@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Patch coverage: 65.57% and project coverage change: -0.02 ⚠️

Comparison is base (8a3b3e5) 18.63% compared to head (4c5877c) 18.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6073      +/-   ##
==========================================
- Coverage   18.63%   18.61%   -0.02%     
==========================================
  Files        2584     2584              
  Lines      116415   116410       -5     
  Branches    18180    18183       +3     
==========================================
- Hits        21689    21673      -16     
- Misses      94092    94101       +9     
- Partials      634      636       +2     
Impacted Files Coverage Δ
...ges/cli/src/UserManagement/UserManagementHelper.ts 77.57% <ø> (ø)
packages/cli/src/WorkflowRunner.ts 9.71% <ø> (ø)
...trol/middleware/versionControlEnabledMiddleware.ts 44.44% <ø> (+5.98%) ⬆️
packages/core/src/BinaryDataManager/index.ts 36.06% <0.00%> (ø)
packages/editor-ui/src/Interface.ts 100.00% <ø> (ø)
packages/editor-ui/src/api/workflow-webhooks.ts 18.36% <ø> (-1.64%) ⬇️
packages/editor-ui/src/api/workflows.ts 23.25% <ø> (-1.75%) ⬇️
packages/editor-ui/src/permissions.ts 50.00% <ø> (-0.33%) ⬇️
packages/editor-ui/src/plugins/i18n/index.ts 49.84% <ø> (-0.08%) ⬇️
packages/editor-ui/src/stores/environments.ee.ts 100.00% <ø> (ø)
... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ivov ivov requested a review from netroy April 25, 2023 07:07
@ivov
Copy link
Contributor Author

ivov commented Apr 25, 2023

Looks good, as author I cannot approve though.

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit 88724bb into master Apr 25, 2023
@netroy netroy deleted the enforce-no-unused-imports branch April 25, 2023 09:47
MiloradFilipovic added a commit that referenced this pull request Apr 26, 2023
* master:
  fix(core): Serialize dates and regexps when reading from augmented objects (#6086)
  feat(editor): Enhance Node Creator actions view (#5954)
  fix(editor): Make the frontend work again when `NODE_FUNCTION_ALLOW_EXTERNAL` is set (no-changelog) (#6058)
  feat(editor): Add SQL editor support (#5517)
  refactor(editor): Track advanced filter custom data usage (#6084)
  refactor(editor): Replace monaco-editor/prismjs with CodeMirror (#5983)
  ci: Enforce no unused imports (no-changelog) (#6073)

# Conflicts:
#	packages/editor-ui/src/components/ParameterInput.vue
#	packages/editor-ui/src/stores/nodeTypes.ts
MiloradFilipovic added a commit that referenced this pull request Apr 26, 2023
…rce-mapper-ui-P2

* feature/resource-mapping-component:
  fix(core): Serialize dates and regexps when reading from augmented objects (#6086)
  feat(editor): Enhance Node Creator actions view (#5954)
  fix(editor): Make the frontend work again when `NODE_FUNCTION_ALLOW_EXTERNAL` is set (no-changelog) (#6058)
  feat(editor): Add SQL editor support (#5517)
  refactor(editor): Track advanced filter custom data usage (#6084)
  refactor(editor): Replace monaco-editor/prismjs with CodeMirror (#5983)
  ci: Enforce no unused imports (no-changelog) (#6073)

# Conflicts:
#	packages/editor-ui/src/stores/nodeTypes.ts
@janober
Copy link
Member

janober commented May 2, 2023

Got released with [email protected]

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 ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants