-
Notifications
You must be signed in to change notification settings - Fork 27
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
[CY-2997] directory' with relatively path cause an error #314
Comments
Internal ticket created : CY-2997 |
Hi @TheColdPot You can either write the absolute path to your folder or
This is happening because the CLI is trying to launch a Docker container and mapping your directory to the containers. However, this requires an absolute path on the host machine (yours), as you can check here or follow this GitHub thread here. Let us know if this solution works for you. Meanwhile, I'll update our documentation with this information that the directory should be an absolute path Update: Disregard this answer. It seems the CLI is already picking up the relative directory and passing an absolute one where needed. It seems the original problem was something else. Check the next comment for more details |
This originated from #314 We hope that having this requirement clear in the documentation avoids future errors
Hi again @TheColdPot In here it looks you're trying to pass a list of javascript files to be analyzed. But the However, if your goal is to analyze javascript files only, you can run it for the whole repository (without specifying that parameter) and add a configuration file to your root folder like this. In this configuration file, you can specify which tools should run, and even if you want to exclude some files. I hope this helps more than the previous answer. |
The first answer helps me
|
In this case, can I put .jshintrc in the |
Okay, so now this is resolved |
Glad to hear it
I would say to evaluate your root directory (leave the directory value as default), instead of targeting the An example of ---
exclude_paths:
- .github/**
- docs/**
- dist/**
This way you can have the .jshintrc in the root directory |
Thank you so much for help! If you think this problem can be completely resolved, you can Close the Issue, but if you want to keep it for a few days to avoid the same problem, keep it |
Thanks for bearing with us. |
But when I try to add a
directory
, it saysIt seems to need an absolute path, but how to write this absolute path
The text was updated successfully, but these errors were encountered: