StyleCop

Web
StyleCop

StyleCop is a small tool built on open-source code that is designed to analyze C# in order to determine its consistency with the coding syntax that StyleCop designates. Since the tool was designed by Microsoft, it also checks against a set of design guidelines that go along with the .NET Framework operated by Microsoft. FxCop is another similar tool, but that tool checks code assemblies that have been managed by the .NET Framework. Since the tools look for different coding styles, they can operate under different rules.

Download StyleCop
Features of StyleCop
  • Code Analysis
Pros of StyleCop
  • Powerful Tool
  • Consistent Coding
Cons of StyleCop
  • Obsolete
StyleCop Reviews

While StyleCop is technically obsolete now that users have moved on to Visual Studio 2015, it can still be used by systems that haven't yet upgraded to that version of the software. The software is no longer supported by the developer, but it is still a viable tool for older systems. Users that want to ensure their code is up to par can use StyleCop to make sure they aren't making any syntax errors. The unique thing about StyleCop over the similarly named FxCop is that StyleCop actually analyzes source code itself. FxCop doesn't get quite down to that level since it stops at code assemblies generated by the .NET Framework. StyleCop follows a distinct set of rules that allows it to precisely analyze code and find any potential problems. The first thing the software looks for is proper documentation. Documentation is one of the most vital aspects of coding. After that, it checks for the proper layout and general maintainability. Messy code with a lot of extraneous content is harder to maintain, so the software might recommend a code reduction. From here, StyleCop starts to get quite specific. It starts looking for issues with readability, naming, and spacing. These might not seem like significant issues, but even the slightest character out of place when code is compiling can mean the software doesn't work at all. When you use the StyleCop software, you'll be able to use it through the command line or through a GUI. New rules can be added to the system so they will be applied when analyzing code. Now that development for the software has ceased, users of Visual Studio 2015 or later can use the successor to the tool called StyleCopAnalyzers. There are some users who might claim the StyleCop software reduces overall productivity since it enforces style rules that aren't really necessary. For instance, in some cases, the software will refuse to compile code unless it includes extra spaces between the function and the brackets that function defines. This forces the user to manually insert those spaces since most coders wouldn't know to insert them beforehand. A rule like this isn't a rule of the actual programming language, but simply a rule of the style imposed by StyleCop. Since StyleCop forces these rules on every bit of code written and analyzed, developers will have a hard time using this tool to analyze test-code on the fly. The code itself might be perfectly functional, but the software will find false syntax errors that prevent it from successfully compiling.

StyleCop Video

Alternatives to StyleCop

CodeSonar

CodeSonar, produced by GrammaTech, is source and binary code analysis software that finds critical defects that can crash systems, result in unexpected operations, threaten security, and
Show details

FindBugs

Free
Findbugs is a tool that looks for bugs in Java code. Findbugs finds the bugs by analyzing computer software without actually executing programs. Using this software allows for easy debugging
Show details

SonarQube

Free
SonarQube is code review and management software. The software is developed by SonarSource, which was founded in 2008 by Freddy Mallet, Simon Brandhof and Olivier Gaudin. Development of SonarQube
Show details

PyCharm

Paid
PyCharm is an IDE with a rich set of tools for Python developers. The software was developed by JetBrains, and it is available for Windows, Mac, and Linux. PyCharm will analyze, test, and debug
Show details

WhiteSource Software

WhiteSource offers an open source license management and security solution. WhiteSource automates the entire process of open source selection, approval, detection of vulnerable or problematic
Show details

JSHint

Free
New JSHint website. Anton Kovalyov Oct 1st, 2013. For the last couple of weeks I've been working on a new homepage for JSHint and today I'm proud to announce the new jshint.com! JSHint Website.
Show details

Clang

Free
Some of the goals for the project include the following:
Show details

Black Duck

Organizations worldwide use Black Duck Software’s solutions to ensure open source security and license compliance in their applications and containers.
Show details

Klocwork

*/ /*-->*/ Faster delivery of secure, reliable, and conformant code As teams develop code with more features, shorter timelines, and stricter standards than ever before, it gets increasin
Show details

Kiuwan

Application security platform for every stage and all the stakeholders in the SDLC. OWASP, CWE, PCI-DSS, NIST
Show details

PyLint

Free
Python, pylint, pyreverse, code analysis, checker, logilab, pep8
Show details

Cppcheck

Free
Cppcheck is an analysis tool for C/C++ code. It detects the types of bugs that the compilers normally fail to detect. The goal is no false positives.
Show details