code-analysis
Tool to visualize code flow in Java? [closed]
Maybe Ctrl + Alt + H in Eclipse / IntelliJ IDEA ? (albo present in NB somewhere) Or “data flow from/to” in IntelliJ IDEA?
How can I generate a list of function dependencies in MATLAB?
For newer releases of Matlab (eg 2007 or 2008) you could use the built in functions: mlint dependency report and coverage report Another option is to use Matlab’s profiler. The command is profile, it can also be used to track dependencies. To use profile, you could do >> profile on % turn profiling on >> … Read more
Automated docstring and comments spell check
Pylint includes a spell-checker since 1.4.0. Note that, to make the checker work, you need to install pyenchant python module and have an enchant library installed system-wide. On mac, it can be installed via brew: $ brew install enchant By default, the spelling pylint checker is turned off. You can enable it either in the … Read more
Automatic code quality tool for Ruby? [closed]
I’ve recently started looking for something like this for Ruby. What I’ve run across so far: Saikuro Roodi Flog These might be places to start. Unfortunately I haven’t used any of the three enough yet to offer a good opinion.
How to analyze binary file?
Try these: Deserialize data: analyze how it’s compiled your exe (try File Analyzer). Try to deserialize the binary data with the language discovered. Then serialize it in a xml format (language-indipendent) that every programming language can understand Analyze the binary data: try to save various versions of the file with little variation and use a … Read more
Code Analysis CA1063 fires when deriving from IDisposable and providing implementation in base class
This is a false positive due to a minor bug in the rule itself. When trying to figure out if a class re-implements IDisposable (after figuring out that there’s a base class implementation that could be overridden), it only looks at whether the class’ interfaces include IDisposable. Unfortunately, the interface list that shows up in … Read more
Where can I find an actively developed lint tool for Ruby?
ruby -c myfile.rb will check for correct Ruby syntax. Reek checks Ruby code for common code smells. Roodi checks Ruby code for common object-oriented design issues. Flog can warn you about unusually complex code. [Plug] If your project is in a public Github repository, Caliper can run the latter three tools and others on your … Read more
How do you prevent Visual Studio from switching to the Code Analysis tab after each build?
VS 2012 The best answer I have found so far is to drag the Code Analysis view’s tab away from the Solution explorer. I’ve docked mine below the Solution explorer and made it about 1 inch high – so I can still see what it is reporting on the rare occasions when I wish to … Read more
C# – StyleCop – SA1121: UseBuiltInTypeAlias – Readability Rules
Just to clarify: not everyone agrees with the authors of StyleCop. Win32 and .NET guru Jeffrey Richter writes in his excellent book CLR via C#: The C# language specification states, “As a matter of style, use of the keyword is favored over use of the complete system type name.” I disagree with the language specification; … Read more