3

I am looking for some automated process to achieve code review for JS, & C#

Is there any API available to do same? Basically, I would like certain static coding guidelines to be always followed i.e. Code without comment at Class or Method Level.

4 Answers 4

2

There are several options that you can go with:

Most of these will help with .NET (C# and VB.NET), but not with JS. For JS you may be able to use jsLint, though I don't know how automateable that can be.

Sign up to request clarification or add additional context in comments.

Comments

1

Check out project Roslyn. This includes a compiler API, it is still in CTP, but should be enough to get you started.

Comments

1

Oded quoted the tool NDepend. The new version of NDepend comes with a complete NDepend.API to write your own static analyzer to automatize code reviews.

Disclaimer: I am one of the developer of the tool

NDepend.API is LINQ friendly. More than 200 code rules are proposed. They are based on LINQ queries over NDepend.API, what we call CQLinq . These code rules cover a wide range of needs (API, evolution/diff, naming, architecture/design, code metric/quality, dead code, code coverage, OOP...) You can adapt them to your own needs and create your own ones to perform automatized code reviews.

14 Power Tools open source base on NDepend.API are proposed. Power Tools are actually custom static analyzers, or in other words, sophisticated programs to automatize code reviews. Here also you can adapt them or create your own ones. If you download the NDepend bits, the code source of these Power Tools is in the VisualStudio solution: $NDependInstallPath$\NDepend.PowerTools.SourceCode\NDepend.PowerTools.sln

NDepend Power Tools List

Comments

0

Use FxCop and Stylecop for c#. These two tools can be used to automate the process.

While developing the code in Visual Studio if you want some basic code suggestions then ReSharper is a great tool.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.