Skip to content

Conversation

@werwolf2303
Copy link
Member

JIRA: CPOUI5FOUNDATION-1126

@werwolf2303 werwolf2303 changed the title docs: Replace depcheck with knip ci: Replace depcheck with knip Feb 9, 2026
@coveralls
Copy link

coveralls commented Feb 9, 2026

Coverage Status

coverage: 94.337% (+0.02%) from 94.318%
when pulling 6d39e82 on feature/depcheck-to-knip
into 042f26e on main.

@werwolf2303 werwolf2303 force-pushed the feature/depcheck-to-knip branch from acadb9d to 12f7573 Compare February 11, 2026 09:30
@werwolf2303 werwolf2303 force-pushed the feature/depcheck-to-knip branch from e8bff47 to 9b8a893 Compare February 11, 2026 09:36
@werwolf2303 werwolf2303 force-pushed the feature/depcheck-to-knip branch from ad15aa6 to e6046ec Compare February 11, 2026 10:10
knip.config.json Outdated
@@ -0,0 +1,48 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

See #1294 (comment).

The comments from the config are gone now. I would prefer to have at least some kind of comment on why we are not activating the rules. A short summary of the purpose of this change in the commit message / PR description would be helpful (in short: This change is supposed to be a replacement for depcheck, so only those checks/rules are used, but in future also more checks of knip can be enabled).
This will help everyone, especially people who were not initially involved, to understand the reasons behind the changes and configuration.

In addition, it would be helpful to also add comments to the ignores to explain why they are needed.
For this reason, I would propose to rename the config to knip.config.jsonc, to be able to add comments, but still benefit from the JSON schema for validation. This seems to be supported by knip.

"jsdoc": "npm run jsdoc-generate && open-cli dist/api/index.html",
"jsdoc-generate": "jsdoc -c jsdoc/jsdoc-workspace.json -t $(node -p 'path.dirname(require.resolve(\"docdash\"))') ./ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
"jsdoc-generate-gh-pages": "jsdoc -c jsdoc/jsdoc.json -t $(node -p 'path.dirname(require.resolve(\"docdash\"))') ./ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
"generate-cli-doc": "node ./scripts/generateCliDoc.js",
Copy link
Member

@matz3 matz3 Feb 11, 2026

Choose a reason for hiding this comment

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

This script should not have been removed, isn't it?
When adding back the script, the configuration for entry: ["scripts/*.js"] is not needed anymore as the script usage is detected.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that happened when I reset the head

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that happened when I reset the head

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants