New PDF release: Source Code Analytics With Roslyn and JavaScript Data

By Sudipta Mukherjee

Learn the right way to construct an interactive resource code analytics approach utilizing Roslyn and JavaScript. This concise one hundred fifty web page e-book may help you create and use useful code research instruments using the recent beneficial properties of Microsoft’s Roslyn compiler to appreciate the overall healthiness of your code and establish elements of the code for refactoring.

Source code is without doubt one of the greatest resources of a software program corporation. although if now not maintained good, it could possibly turn into an incredible legal responsibility. As resource code turns into greater. extra advanced and accessed through the cloud, protecting code caliber turns into much more tough. the writer offers easy instruments and suggestion on the way to deal with code caliber during this new surroundings.
Roslyn exposes a collection of APIs which enable builders to parse their C# and VB.NET code and vastly decrease the barrier to access for Meta programming in .NET. Roslyn has a devoted set of APIs for developing customized refactoring for integrating with visible Studio.
This name will convey readers how one can use Roslyn besides regular JavaScript visualization APIs like HighCharts, D3.js and so on to create a scalable and hugely responsive resource code analytics procedure.
What you are going to Learn

  • Understand the Roslyn Syntax API
  • Use information Visualization concepts to help code research strategy visually
  • Code wellbeing and fitness tracking matrices (from the normal of Code question Language)
  • Code mining recommendations to spot layout styles utilized in resource code
  • Code forensics recommendations to spot possible writer of a given resource code
  • Techniques to spot duplicate/near reproduction code



Who This publication is For
.NET software program builders and Architects

Show description

Read Online or Download Source Code Analytics With Roslyn and JavaScript Data Visualization PDF

Best c & c++ windows programming books

Marc Mercuri's Beginning Information Cards and CardSpace: From Novice to PDF

In case you paintings in any respect with Internet-facing recommendations, you recognize that the inability of an id metasystem is a severe vulnerability within the layout. a number of consortiums have labored to outline a approach of id - a platform-agnostic means of speaking and validating claims of identification. for those who paintings with identification recommendations or buildings, you can find starting info playing cards and CardSpace: From beginner to specialist necessary to figuring out and effectively enforcing CardSpace suggestions.

The Waite Group's C Primer Plus - download pdf or read online

When you are new to C++ programming, C++ Primer Plus, 5th variation is a pleasant and easy-to-use self-study consultant. you are going to hide the most recent and most precious language improvements, the normal Template Library and how you can streamline object-oriented programming with C++. This advisor additionally illustrates easy methods to deal with enter and output, make courses practice repetitive projects, manage information, conceal info, use services and construct versatile, simply modifiable courses.

Read e-book online Foundations of Computer Science PDF

Aho and Ullman have created a C model in their groundbreaking textual content. As in that textual content, this ebook combines the theoretical foundations of computing with crucial discrete arithmetic. It follows an analogous enterprises as its predecessor, with all examples and workouts in C.

Fundamentals of engineering programming with C and Fortran - download pdf or read online

Basics of Engineering Programming with C and Fortran is a beginner's consultant to challenge fixing with desktops that indicates find out how to quick prototype a application for a selected engineering software. The book's side-by- aspect assurance of C and Fortran is exclusive. Myler emphasizes the significance of constructing programming abilities in C whereas rigorously providing the significance of retaining an exceptional examining wisdom of Fortran.

Additional resources for Source Code Analytics With Roslyn and JavaScript Data Visualization

Example text

I have annotated the first code smell with all these parts so that you know where to expect which one. Most of the code smells apply to classes, namespaces, and more, but for the demonstration purpose, I have chosen to find these metrics on one of these, and you can always extend that. © Sudipta Mukherjee 2016 S. 1007/978-1-4842-1925-6_2 15 Chapter 2 ■ Code Quality Metrics Setting Up LINQPad to Use Roslyn LINQPad will be used to execute the scripts in this chapter. This section will guide you to configure LINQPad so that you can run these queries smoothly.

Contains(c) || //it can also be used in a negative way. Dump("if nodes with control flags"); 41 Chapter 2 ■ Code Quality Metrics The preceding code produces the output shown in Figure 2-20. Figure 2-20. Control flag usages in conditions Line #1 finds all the Boolean variables that are declared at class level. Line #2 puts the entire if statement in the attribute if. Line #3 puts the condition of each if statement in the attribute Condition. Line #4 gets the line number of this statement. Line #5 checks whether the condition of the if block solely comprises of only one Boolean variable or not.

13 Chapter 1 ■ Meet Roslyn Syntax API Figure 1-23 shows an annotated while statement. Figure 1-23. Showing annotated while loop Summary In this chapter you got acquantainted with the basics of Roslyn Syntax API for parsing C# source code. Although a portion of the Roslyn Syntax API classes and methods are declared, you should now have a general idea of how this API is structured. NET. In the rest of the book, you will see how these API types and methods are used to create useful analyzers to extract insight from the given source code.

Download PDF sample

Rated 4.48 of 5 – based on 36 votes