Git Product home page Git Product logo

Comments (2)

fxbru avatar fxbru commented on June 6, 2024 1

Hi @gbiagomba ,

I'm not sure if a automatically selecting all rules applicable to the language when defining the rule pack's language is the best approach.

Let's suppose you want to create a rule pack to detect only injection vulnerabilities for Java:

  • Case 1: You create the new rule pack, then select Java, all Java rules are ticked. You have to manually untick all rules not related to injection vulnerabilities.
  • Case 2: You create the new rule pack, tick the rules you need. Then you select the language: all Java rules are now ticked, and you have to do all the selection again.

But there is definitely an improvement needed here. I was thinking about two possibilities, maybe both:

  1. Have default / uneditable rule packs for each supported language, containing all rules for the corresponding language and that updates automatically when new rules are added.
  2. Improve the table filtering to make language filtering more convenient. This is close to your second suggestion.

What do you think about it?

As a workaround, here is how you can (not so) easily create rule packs containing all rules for a specific language:

  1. Create a new rule pack
  2. Define the supported language
  3. Filter the rule table to display only rules for the language. In the search box, enter:
    "java." for Java (notice the dot at the end)
    "javascript." for JavaScript
    ".c." for C
    ... so in fact you filter on the rule's category
  4. Click on the "select all" button at the top left of the rule table
  5. Click on the Save button to register the rule pack

I know it looks painful, but it usually takes me less than 5 minutes to do this for all languages.

from grepmarx.

Related Issues (7)

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.