-
AUTOSAR A2-7-3 - False positive on implementation
I'm using Parasoft C++Test Professional 2023.1 and I'm getting false positives on AUTOSAR Rule A2-7-3 which states that "Every declaration needs to provide a proper documentation." The false positives happen when a function is declared in a .hpp file, while being defined/implemented in the corresponding .cpp file, but it…
-
C/C++ Test Desktop: Set the ruleset inside project.properties
I'm using C/C++ Test Professional 2022.1 (Eclipse). Is there a possibility to set the ruleset inside the project.properties and execute the tests from the GUI without having to select a ruleset every time? We want to make sure that the same ruleset is always used.
-
How to create a rule using RuleWizard to identify a comparison operator?
I am creating a Parasoft rule for C/C++test using RuleWizard that flags whenever a type std::string is used as an argument within certain function calls. For example, this line should be a violation since it uses the variable 'mytestString' without a call to .c_str() LOG_TRACE(7, "ParasoftTestProj::main() Some TRACE…
-
How to create a rule in RuleWizard to check if the filename contains the foldername?
I want to create a rule that checks if a filename contains the foldername at the beginning of the file, for example: I have a folder named "folder1" containing a folder named "folder2" which contains a c file. This file should be named: "folder1_folder2_myFile.c" Is it possible to create such a rule with the rule wizard?
-
COMMENT-04 Bug
Hey, As I was customizing a rule set I noticed a bug in COMMENT-04. It seems that if you run it on a directory with files, it works as indicated in the documentation. However, if you run it on a .sln, with multiple sub directories it flags many more (correctly commented) functions. I presume that it has to do with the way…
-
Static Analysis Rule
Hi, I analyse my code with recommended rule set but I noticed the following thing; I can easly detect array out of bound for example; int scores[] {100, 90, 80}; for (int i = 0; i <= scores.size() ; i++) // I take a violation about array out of bound error { ..... } But I have a method which takes transpose of matris. My…
-
Generate a Report from Persistent Violations for Static Analysis
When I run Static Analysis over my code base using Eclipse, any violations that pop up will be listed under Quality Tasks. Under the Configuration Running tab (or view), at the conclusion of the run, it states how many quality tasks were found, gives me the progress bar, and then at the bottom allows me to generate a…
-
Misra rule violation shows up when not running static test on full project
Hi, when running static analysis with misra rules we get a lot of extra rule violations when running the analysis on a single module (single folder). The rule 20.9 "macro might not be defined" accounts for all of the extra violations. When the analysis is run on the full project, these do not show up. The project was…
-
Copy Constructors and Copy Assignment Operators Static Analysis Rule [MRM-49]
Rule: MRM-49-3 --> A copy constructor and a copy assignment operator shall be declared for classes that contain pointers to data items or nontrivial destructors. This Static Analysis rule requires that I have to adhere to the Rule of 3 (now rule of 5 if moves are included). We have a destructor defined, but not the copy…
-
dotTest 10.3 - Is it possible to edit a rule.
Hi, dotTest 10.3 - Is it possible to edit a rule. Similarity to C++test ? Is it possible to do it from the IDE ? Thanks In Advanced,
-
Rules on File Server are changed to invalid
Hi, My rules are located under shared File Server. In some cases I noticed that the files extension become changed to invalid. rulename.properties.invalid Any suggestions ? Thanks
-
Is it possible to edit rule in dotTest ?
Hi, Is it possible to edit rule logic and rule content in dot test same as C++test ? How to create custom rules ? Thanks
-
CLI results - Jenkins - Rules documentation
Hi, Regrading CLI results via Jenkins. When trying to open doc rules documentation , I get error on the page: parasoftserver\grs..... can not access. Only after I successfully logged on with my credentials in a separate browser tab , I can open rule documentation page via Jenkins results page. Is there a configuration to…
-
dotTest - Ignoring Auto-generated files
Hi, Is it possible to ignore from a project files that are Auto-generated by other application. I can suppress the files , but every new release I have new auto-generated files that are overriding old version. Any suggestions ? Is it possible to ignore according to remarks on the auto-generated files. Thanks
-
Static analysis - custom rule for ascii characters >127
Hi, I have to create a custom rule that checks that ascii characters > 127 are not present. I have some issues doing it. Can someone help me? The rule is: "Define identifiers shall be as following: < DEFINE_NAME > = D _ < USER_NAME > Where: < USER_NAME > length is at most 12 characters and not composed by ascii characters…
-
Enabling C++Test 10.3.4 Rules in DTP
The newest version of C++Test (10.3.4) contains new and updates rules that are not available in DTP 5.3.3. These rules and rule documentation must be added to the DTP server in order to make the new rules available in the Test Configuration GUI and to be able to view the rule documentation. The following method outlines…
-
What coding standard rules does Jtest check?
Jtest has a total of 700+ development rules developed by Java gurus such as Sun Microsystems, Scott Ambler, and Joshua Bloch, plus rules from popular open source coding standards tools (CheckStyle, PMD, FindBugs, etc.). To help users determine which rules to comply with, rules are categorized by topic (for instance,…
-
Check unused code in comment lines
Hello All, I have some problems about configing JTest's rules. Could you guys tell me the ways to resolve it. 1. How can I check the old code ( not unused code ) in comment lines. 2. If JTest have rules to test it, pls. tell me the way to config. 3. If JTest have no rule, How can I create rule by rule wizard for check this…
-
Changing/Checking severity level of rules
unable tochange/find the severity levelsHi 1. I have to change the severity level of certain exisiting rules(eg. PB.SBC,OOP.AHSM, CODSTA.VDT etc). But when i right click the the rule i can not see the rule wizard option. How do I change the severity of these rules? 2. After i run the jtest, how can find out the severity…