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

Not able to set up any of the three analysis tools #6

Open
PrachiP29 opened this issue Sep 2, 2024 · 1 comment
Open

Not able to set up any of the three analysis tools #6

PrachiP29 opened this issue Sep 2, 2024 · 1 comment

Comments

@PrachiP29
Copy link

Hi,
I'm trying to set up the three tools on my machine as a prerequisite for Redemption to work but I'm not able to.
For the cpp-checkers tool and rosecheckers, the issue is that my organization is blocking it. And for clang-tidy tool, I'm unable to set it up on my machine. Even though it is installed, and I can see its version, I can't run any of the cpp repos against it.

Can you please suggest a good documentation that I should refer to so that the tool works for me and ultimately, I can perform Redemption analysis on my repos? Also, is there any other tool that could be used in place of the three mentioned?

@sei-dsvoboda
Copy link
Contributor

Hello.
I believe you are referring to the three static-analysis tools, cppcheck, rosecheckers, and clang-tidy.

The 'Static Analysis Tools' section in the toplevel README gives some instructions for obtaining containers that run the analysis tools. It is easier to run the tools in their own containers than to try to install the tools on your host. If you must install the tool on your host, see the 'Origin's for instructions for installing each tool.

The Redemption project does assume you have a working knowledge of Docker and how to manage Docker containers. This includes the ability to share filesystems between your host and the various containers. For that you want the '-v' switch in your docker run command:

https://docs.docker.com/reference/cli/docker/container/run/#volume

I have amended the "Static Analysis Tools" section with some of this info to help you. (Note that it may take 1-2 days for my improvements to show up on Github.)

sei-jsible pushed a commit that referenced this issue Sep 3, 2024
Merge in REM/redemption.public from sa-container-docs to main

Squashed commit of the following:

commit e3cb8af249b717d3be4390f9569c391d60f9611d
Author: David Svoboda <[email protected]>
Date:   Tue Sep 3 15:29:29 2024 -0400

    s/+-/|-/g;

commit 169216f132559012fa4eddf3219cbec8273065a7
Author: David Svoboda <[email protected]>
Date:   Tue Sep 3 09:36:15 2024 -0400

    Docs, in response to #6
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

No branches or pull requests

2 participants