GithubHelp home page GithubHelp logo

joseadp / csam-tutorial-sca Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18.58 MB

License: Apache License 2.0

Dockerfile 0.06% Shell 0.16% Java 55.44% HTML 7.83% CSS 2.66% JavaScript 33.65% SCSS 0.19% Batchfile 0.02%

csam-tutorial-sca's Introduction

CSAM PL11 - Practical Tutorial on Static Code Analysis

Follow the following steps to run SonarQube in Java Projects:

  1. Clone this repository in your computer.

  2. SonarQube:

    1. Log in into SonarQube: http://10.3.2.190:8080/
    2. Create a project on SonarQube. You will need to create/use the key to configure the project.
  3. Project bookstore:

    1. Edit the build.xml, to change the sonar.projectKey and sonar.projectName properties. Replace YOUR_NUMBER by your student number.
    2. Edit the build.xml, to change the login property using the the key information provided by SonarQube.
  4. Project webgoat and wsvd-bench:

    1. Edit the pom.xml, to change the <name> property. Replace YOUR_NUMBER by your student number.
    2. Edit the add-sonarqube.sh with the key information provided by SonarQube.
  5. Build the docker images in your computer, with the following script: build.sh.

  6. Run the container with the following script: "run.sh". If the script runs successfully, you will be inside the Docker container with the projects.

  7. Run the add-sonarqube.sh for each one of the projetct. It will run ant/maven, and invoke SonarQube profile, which analyses the source code and send the results to SonarQube.

  8. Analyze the results in the Web Interface of SonarQube. If you fix any issue, you can perform another analysis by the SonarQube.

Authors:

csam-tutorial-sca's People

Contributors

nmsa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.