-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: add option to skip by path by project name and project type #73
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmvtrinidad thanks for the contribution! Please fix & address the comments below with a passing build and I will merge
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 1bd41c0. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
482e13e
to
2938232
Compare
2938232
to
571f966
Compare
Thanks for reviewing @koliveira15 |
) { | ||
return true; | ||
} | ||
return options.skipDependencyTypes.includes( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this logic filter in my own repo, and it does not work. It needs to filter by DependencyType.static|implicit|dynamic based on the options array.
"skipDependencyTypes": ["static"]
> nx run lib-b:sonar
Included sources paths: libs/lib-a/src,libs/lib-b/src
Included lcov paths: coverage/libs/lib-a/lcov.info,coverage/libs/lib-b/lcov.info
"description": "Skips paths to the project graph analysis", | ||
"type": "array", | ||
"default": [] | ||
}, | ||
"skipImplicitDeps": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
@@ -45,6 +45,24 @@ | |||
"type": "string", | |||
"default": "300" | |||
}, | |||
"skipDependencyTypes": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update README.md in the root of the project with these properties and remove skipImplicitDeps
property from the markdown as well
) | ||
.filter( | ||
(project) => | ||
context.projectName === project.name || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this logic filter in my own repo, and it does not work as expected
"skipProjects": ["lib-a"]
> nx run lib-b:sonar
Included sources paths: libs/lib-a/src,libs/lib-b/src
Included lcov paths: coverage/libs/lib-a/lcov.info,coverage/libs/lib-b/lcov.info
(project) => | ||
context.projectName === project.name || | ||
(options.skipPaths?.length | ||
? options.skipPaths.some((path) => project.sourceRoot.includes(path)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this logic filter in my own repo, and it does not work as expected
"skipPaths": ["libs/lib-a/src"]
> nx run lib-b:sonar
Included sources paths: libs/lib-a/src,libs/lib-b/src
Included lcov paths: coverage/libs/lib-a/lcov.info,coverage/libs/lib-b/lcov.info
0d0d528
to
e4c0e10
Compare
Thanks @koliveira15, I tested it now also with my local, the filter is now working properly |
I have tested this locally and is still not working as expected |
@jmvtrinidad are you able to deliver this? :) |
No description provided.