

To allow the sharing of SmartApps on the open platform with no security concerns, it is important to maintain the quality of SmartApps at a high standard. It has been reported that most SmartApps currently contain sensitive data flows and violate security properties. Modern IoT apps use many features including ones that may threaten users with security concerns. SmartThings is one of the most popular open platforms for home automation IoT where programmers have developed many applications, which are called SmartApps written in Groovy, allowing users to automate their homes controlling smart devices. There is a growing interest in the Internet of Things (IoT) application development for smart homes. The results of the automatic code review indicate the common violations among SmartApps. Our static analysis tool can effectively inspect reliability, maintainability, and security violations. A study of 105 officially published and 74 community-created real-world SmartApps found a high ratio of violations in both types of SmartApps, and of all violations, security violations were most common. We first organize our static analysis rules by following the GQM methodology, and then we apply the rules to real-world SmartApps to analyze and evaluate them. The purpose of this research is to propose systematically designed quality metrics under the well-known Goal/Question/Metric methodology and to evaluate the quality of SmartApps through automatic code reviews using a static analysis.

#SMARTAPP CODE SOFTWARE#
As part of software quality practice, code reviews are responsible for detecting violations of coding standards and ensuring that best practices are followed.

The nature of openness demands high standards on the quality of SmartApps, but there have been few studies that have evaluated this thoroughly yet. SmartThings is one of the most popular open platforms for home automation IoT solutions that allows users to create their own applications called SmartApps for personal use or for public distribution.
