I am using coverity for java static code analysis, I need to add some custom rules so that scan happens according to the custom rule set.
Can I add custom rules to coverity?
924 Views Asked by Divisha At
1
There are 1 best solutions below
Related Questions in STATIC-CODE-ANALYSIS
- How can I select the entire import statements using regular expressions?
- Can soot deal with java files can not be compiled?
- Inline suppressing of warnings with Github CodeQL
- suggestions for code map tools (python project)
- Missing examples for Visual C++ compiler warnings
- Why "(uint8)0U" appears to the static code analysis tool as a signed operand?
- How can we get C# compiler to treat static code analysis errors as warnings
- How can I find full list all calls to an API
- Plugin suitable for static code validation with custom rule in maven
- Can clang-tidy warnings from selected code branches be suppressed?
- You attempt to analyze the project using a static code analysis tool: how do you think the missing header file would affect the results?
- In C# indicate to static analyzers that a method guarantees non-null values
- How to extract props of a react component using static code analyzer?
- Cross side scripting vulnerability detected in javascript code
- Checkmarx Second Order SQL Injection C#
Related Questions in COVERITY
- making android analyze with coverity sast tool
- Suppressing Coverity false positive intentional defects on Java code
- why Coverity scan tells the code " $data ?? [] " is logically dead code?
- Coverity - MessageHandler/HttpClient leak issue
- ASSERT implementation for Coverity test?
- YAML Coverity Configuration for C custom compiler not analyzing C files
- cov-analyze with list of checkers
- ERROR while coverity scan : No snapshot in stream has analysis summaries
- Failed to upload file to Coverity for analysis
- Fix misra 14.4 violation in macro function
- Coverity Eclipse Plugin fails during test connection
- Performing Coverity CLI Scan
- using coverity 2019.03
- How to fix Out-of-bounds access (OVERRUN) error
- Synopsis coverity still return Filesystem path, filename, or URI manipulation in java dispite making the recommended fix
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, you can write custom rules with Coverity. There are two APIs you can use:
Both APIs are explained in the product documentation, although that is not publicly available. My recollection is both APIs support the same set of scanned languages, specifically, C, C++, Java, and Javascript.
There are a couple Synopsys blog posts about CodeXM that might help you get started:
Additionally, as noted in an answer to How can we add custom rules for coverity tool?, sometimes the customization you want to do can be accomplished simply by changing the options to existing checkers. (I do not consider this question to be a duplicate of that one because the other question seems to be more about adjusting the behavior of existing checkers, despite its title.)
Disclosure: I'm a former Coverity/Synopsys employee.