code-analysis

How do you prevent Visual Studio from switching to the Code Analysis tab after each build?

不问归期 提交于 2019-12-18 13:52:53
问题 After each build, Visual Studio 2012 switches from the Solution Explorer to the Code Analysis tab, usually with the yellow "No code analysis issues were detected." (Might as well say "TA DA!"). Is there an option to turn off the tab switching (keeping it on Solution Explorer)? [because I can't find it either in Solutions or Options]. Thanks! 回答1: 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

Why can't Codan find size_t

那年仲夏 提交于 2019-12-18 13:37:07
问题 I've just started using Eclipse Indigo (coming from Galileo) and I'm getting little red bugs in the gutter for every use of size_t. The code compiles without issue but I suspect I have to explicitly add a path to the include directories. I already have the usual suspects in there. I am cross compiling for a ColdFire processor using the Gnu tool chain so in addition to the standard include from mfg of the chip I have the includes under m68k-elf \include \include\c++\4.2.1 \include\c++\4.2.1

What is Dynamic Code Analysis?

a 夏天 提交于 2019-12-18 12:54:10
问题 What is Dynamic Code Analysis? How is it different from Static Code Analysis (ie, what can it catch that can't be caught in static)? I've heard of bounds checking and memory analysis - what are these? What other things are checked using dynamic analysis? -Adam 回答1: Simply put, static analysis collect information based on source code and dynamic analysis is based on the system execution , often using instrumentation. Advantages of dynamic analysis Is able to detect dependencies that are not

Enabling Microsoft's Code Analysis on .NET Core Projects

情到浓时终转凉″ 提交于 2019-12-18 11:46:28
问题 Our team uses the Code Analysis feature with a custom ruleset to cause our build to fail if we forget to do things like null checks on method arguments. However, now as we create a new .NET Core project, it doesn't look like Code Analysis is a feature of these new projects. There is no UI for it in the Project Properties area, and adding a custom ruleset to the project as recommended here only appears to affect StyleCop Analyzers (the SAxxxx rules). Is there any way to enable Code Analysis (

Automatic code quality tool for Ruby? [closed]

断了今生、忘了曾经 提交于 2019-12-18 10:05:39
问题 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 6 years ago . One thing I really miss about Java is the tool support. FindBugs, Checkstyle and PMD made for a holy trinity of code quality metrics and automatic bug checking. Is there anything that will check for simple bugs and / or style violations of Ruby code? Bonus points if I can adapt it for frameworks such as Rails so

Sonarqube is not registering any c# issues

。_饼干妹妹 提交于 2019-12-18 05:00:46
问题 Since last Friday (04/01/2016) we are using sonarqube in our company. Somehow one of our project's issues got all closed (without actually being fixed). And now the project doesn't get any issues back. we even deleted the project in sonarqube and restarted an analysis, this also gives no issues. We tried many different things to get the issues back (even making errors on purpose, but this also doesn't generate any issues in sonarqube) We are running the newest version of sonarqube (Version 5

Add code analysis ruleset through nuget package

六眼飞鱼酱① 提交于 2019-12-18 02:51:09
问题 I'm trying to build a NuGet package that adds our company's code analysis dictionary automatically and updatable. The rule set is added in the content folder and now I want to use the install.ps1 script to add the rule set in the project file. I figured out the way to go would be to use the envDTE, but I can't find much useful documentation about it other then this overwhelming object graph in which I can't find the CodeAnalysisRuleset node. http://msdn.microsoft.com/en-us/library/za2b25t3(v

Automatically generating a diagram of function calls in MATLAB [closed]

送分小仙女□ 提交于 2019-12-17 22:13:55
问题 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 . Anybody knows of a tool that can be used to automatically build diagrams of function calls in MATLAB? E.g. For a given function, the tool would recursively go through function calls and build a 2D graph where nodes would represent functions and directed edges would connect calling functions with called functions

Is there a custom FxCop rule that will detect unused PUBLIC methods?

落花浮王杯 提交于 2019-12-17 19:29:01
问题 I just tried FxCop. It does detect unused private methods, but not unused public. Is there a custom rule that I can download, plug-in that will detect public methods that aren't called from within the same assembly? 回答1: Corey, my answer of using FxCop had assumed you were interested in removing unused private members, however to solve the problem with other cases you can try using NDepend. Here is some CQL to detect unused public members (adapted from an article listed below): // <Name

Tool to determine what lowest version of Python required?

可紊 提交于 2019-12-17 17:38:51
问题 Is there something similar to Pylint, that will look at a Python script (or run it), and determine which version of Python each line (or function) requires? For example, theoretical usage: $ magic_tool <EOF with something: pass EOF 1: 'with' statement requires Python 2.6 or greater $ magic_tool <EOF class Something: @classmethod def blah(cls): pass EOF 2: classmethod requires Python 2.2 or greater $ magic_tool <EOF print """Test """ EOF 1: Triple-quote requires Python 1.5 of later Is such a