-
Notifications
You must be signed in to change notification settings - Fork 18
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
Writing new MARK rules #219
Comments
Hi @shahrzadav I assume all these rules are your own. Without knowing all the rules it's difficult to say, why Codyze marks a specific line with all these rule checks. For one, are the rules evaluated incorrectly? Does the problem they indicate exist? Or are these spurious evalutations? Side note:
|
Hi @fwendland, yes, I use only all the rules that I wrote. I wrote them based on the JCA ruleset of CrySL (https://github.com/CROSSINGTUD/Crypto-API-Rules/tree/master/JavaCryptographicArchitecture/src). For each class, there is a CrySL rule that described the correct usage of it. |
Hi @fwendland, were you able to check the MARK rules I made? |
Hi @shahrzadav, Sorry, it slipped my mind. Thank you for the reminder. I've taken a look at your code and just pushed a simple mwe: fw/issue-219. I see that the rule is triggered and evaluated as violated. This behavior is somewhat expected. The analysis process tries to find matching nodes for the entities To prevent these kinds of problems, you need to define appropriate We may reconsider the evaluation. There are some cases where rule evaluations could be conditional on the matching of entities in a |
I tried to make new MARK rules for JCA. I created an entity file and a rule file for each class and I write rules like this:
but the problem is when I try analysis on a test project with this new ruleset, I see multiple errors on one line and most of them are not even related to that line. Can you please tell me what is wrong?
here is the error message (the result of analysis):
and here is the line of code:
SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG");
Note: PBEParameterSpec is not even used in the test project.
The text was updated successfully, but these errors were encountered: