analyzeR: A SonarQube plugin for analyzing object-oriented R Packages

Date

2022

Authors

Vidoni, Melina
Chandramouli, Pranav
Codabux, Zadia

Journal Title

Journal ISSN

Volume Title

Publisher

Elsevier BV

Abstract

Automated Static Analysis Tools (ASATs) analyze source-code to capture defects and ensure higher quality. SonarQube is a renown ASAT that supports mainstream programming languages. However, R programming is not included. R is an increasingly popular multi-paradigm and package-based programming environment for scientific programming. Nevertheless, R’s Object-Oriented (OO) functionalities are implemented through three different systems: S3, S4, and R6, and seldom used by developers. We present analyzeR, an advanced SonarQube plugin to examine R packages built in any of the current OO models. It implements widely-used, commonly-accepted OO metrics and displays the results using SonarQube’s graphical interface for increased usability, implementing an array of metrics.

Description

Keywords

SonarQube, R packages, Static code analysis, Object-oriented, R plugin

Citation

Source

SoftwareX

Type

Journal article

Book Title

Entity type

Access Statement

Open Access

License Rights

Creative Commons Attribution licence

Restricted until

Downloads