static-analysis

Any Static Code Analysis Tools for Stored Procedures? [closed]

纵饮孤独 提交于 2019-11-30 06:26:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Are there any static code analysis tools for stored procedures written particularly in PL/SQL and T-SQL? 回答1: For T-SQL, Microsoft has the database edition of VS Team Suite (although, I believe its now in the dev SKU). This link talks about writing your own static code analysis rule for T-SQL: http://blogs.msdn

Where can I find an actively developed lint tool for Ruby?

浪尽此生 提交于 2019-11-30 06:16:14
问题 Most of the code I write is in Ruby, and every once in a while, I make some typo which only gets caught after a while. This is irritating when I have my scripts running long tasks, and return to find I had a typo. Is there an actively developed lint tool for Ruby that could help me overcome this? Would it be possible to use it across a system that works with a lot of source files, some of them loaded dynamically? Take this snippet as an example: a = 20 b = 30 puts c To win bounty, show me a

Is there a static analysis tool for Python, Ruby, Sql, Cobol, Perl, and PL/SQL? [closed]

最后都变了- 提交于 2019-11-30 05:18:29
I am looking for a static analysis tool for Python, Ruby, Sql, Cobol, Perl, PL/SQL, SQL similar to find bugs and check style. I am looking for calculating the line count, identify bugs during the development, and enforcing coding standard. Perl has Perl::Critic (and perlcritic.com ) I use PyChecker and pylint as Python code checkers. However it seems that they get buggy when you use some modules (e.g., socket or pygame , IIRC). Mike Woodhouse For Ruby, you're probably best served looking at this previous SO question: https://stackoverflow.com/questions/286564/can-anyone-recommend-a-ruby-source

Do tools exist which automatically find copy-and-paste code? [closed]

倖福魔咒の 提交于 2019-11-30 03:05:50
Are there tools out there which could automatically find copy-and-paste code among a set of files? I was thinking of writing a script for this, which would just search for equal strings, but such script would find mostly irrelevant equalities. (Such as private final static ... ). msalib Yes, try the Copy Paste Detector . http://patterninsight.com/products/cp-miner.php Related paper - http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.123.113 Our CloneDR is a tool for finding exact and near-miss blocks of code constructed by copy and paste activities. It can handle systems of millions of

tool to generate graph data for class dependencies [closed]

守給你的承諾、 提交于 2019-11-30 00:42:50
Is there some tool that is able to analyze Java source files , construct a graph from it and provide the graph's data in some standard / understandable format ? It definitively does not need to have GUI, I'd prefer a command line thing so I can process the output by various tools (for segmentation, visualization,...). I'm not certain about command line tools, but I like using ObjectAid for reverse engineering into class diagrams: http://www.objectaid.com/ You can easily add any class with it's relationships to an ObjectAid graph. It saves the file in an XML format with the ucls extension. Here

Code linting for Objective C

时光怂恿深爱的人放手 提交于 2019-11-29 23:10:39
Are there any code linting tools for ObjectiveC? Have a look at the LLVM/Clang Static Analyzer The LLVM/Clang static analyzer is a standalone tool that find bugs in C and Objective-C programs and it is very early in development. A static analyzer based on clang . The goal of the Clang project is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler. Edit Clang has now been integrated into Xcode and can easily be run as a menu option "Build & Analyse" It's worth mentioning OCLint too. It covers some things not touched by the Clang analyser, such as: Complicated

Maven plugins to analyze javascript code quality

大兔子大兔子 提交于 2019-11-29 23:07:59
Javascript code can be tough to maintain. I am looking for tools that will help me ensure a reasonable quality level. So far I have found JsUNit , a very nice unit test framework for javascript. Tests can be run automatically from ant on any browser available. I have not found yet some javascript equivalent of PMD, checkstyle, Findbug... Do you know any static code analysis tool for javascript ? This is an old thread, but if you're interested in running Jasmine for BDD testing in your maven project, I wrote this jasmine-maven-plugin for exactly this purpose (that is, improving JS quality by

Tools for generating Haskell function dependency (control flow) graph?

∥☆過路亽.° 提交于 2019-11-29 20:48:49
Note not "functional dependency". Are there tools available that allow me to build a static function dependency graph from source code? Something which indicates to me which functions depend on which other ones in a graphical manner. Yes, there certainly are. If you look in the Development category on Hackage, you'll find tools for: graphing package dependencies -- n.b requres older cabal graphing module dependencies graphing function calls graphing running data structures In particular, SourceGraph contains many analysis passes, including: visualizing function calls computing cyclomatic

What are the differences between PMD and FindBugs?

旧城冷巷雨未停 提交于 2019-11-29 18:54:26
There was a question comparing PMD and CheckStyle . However, I can't find a nice breakdown on the differences/similarities between PMD and FindBugs. I believe a key difference is that PMD works on source code, while FindBugs works on compiled bytecode files. But in terms of capabilities, should it be an either/or choice or do they complement each other? I'm using both. I think they complement each other. As you said, PMD works on source code and therefore finds problems like: violation of naming conventions, lack of curly braces, misplaced null check, long parameter list, unnecessary

How to determine maximum stack usage in embedded system?

守給你的承諾、 提交于 2019-11-29 18:25:57
问题 When I give the Keil compiler the "--callgraph" option, it statically calculates the exact "Maximum Stack Usage" for me. Alas, today it is giving me a "Maximum Stack Usage = 284 bytes + Unknown(Functions without stacksize...)" message, along with a list of "Functions with no stack information". Nigel Jones says that recursion is a really bad idea in embedded systems ("Computing your stack size" 2009), so I've been careful not to make any mutually recursive functions in this code. Also, I make