Coder Social home page Coder Social logo

Comments (5)

mrfyda avatar mrfyda commented on September 23, 2024 1

Sounds good to me!

from codacy-sonar-csharp.

ljmf00 avatar ljmf00 commented on September 23, 2024

I propose two ways of implemention this:

  • Add subcategories with - char. This will make it compatible with other versions of the API for patterns category. Like:
{
  "patternId": "S3330",
  "category": "Security-XSS",
  "parameters": [],
  "level": "Warning"
}

"Security-XSS" is a XSS specific vulnerability. If there's just "Security", it's a general security issue.

  • Another viable option is to add subcategory to the API. Like:
{
  "patternId": "S3330",
  "category": "Security",
  "subcategory": "XSS",
  "parameters": [],
  "level": "Warning"
}

from codacy-sonar-csharp.

mrfyda avatar mrfyda commented on September 23, 2024

While the first option is API compatible, it would require work on the worker to make it compatible. (And I don't see the value in making it API compatible since it's something new that we are adding.)

I do prefer the second option for legibility. And since it's an addition to the API, I don't believe it's a breaking change; it also doesn't require any previous work on the worker beforehand to make it work.

from codacy-sonar-csharp.

gjsduarte avatar gjsduarte commented on September 23, 2024

Yeah, I tend to agree with @mrfyda.

from codacy-sonar-csharp.

ljmf00 avatar ljmf00 commented on September 23, 2024

So in this case, I'll need to make sure, on the seed level, that the subcategory is well matched with the right category, like adding a validate method here https://github.com/codacy/codacy-engine-csharp-seed/blob/master/src/Patterns/Pattern.cs .

I'm also with the second one 😄 . If its good, I'll start implementing that on the seed and then update the documentation according to the owasp-, overflow and other security tags.

from codacy-sonar-csharp.

Related Issues (20)

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.