When we work in any software project then our main focus is to achieve the ultimate goal which is to finish the functionality and deliver it to the customer in a given time-line. It is so important for us that many times we use to compromise with the code quality, potential bugs, code duplications and bad distribution of complexity not only that but also we use to left unused variables, methods etc. Our application would work in a desired way but do you think this it is a proper way to deliver the projects ? Its Not. We should deliver the software with clean code, without code duplication, less code complexity and without any potential bugs.
To achieve these qualities in code we should keep that mind and should always follow good coding practice but sometimes it is not possible to follow the rules and maintain the good quality as there may be n number of reasons. So we need a tool which not only works once to check and tell us the issues in code but also track and monitor the code to check continuous code quality in order to achieve continuous code integration and deployment. For these requirements we have a product SonarQube which have all these features. Now lets discuss more about it.
We can setup SonarQube in a central server to make it visible for developers, leads, managers and QA etc so that then all can monitor the code quality to ensure smooth application deployment with quality. Developer can monitor his own code at any point of time by running the sonar scanner on his code and can take the responsible of his code. To enforce a code quality practice across different teams we can set up a Quality Gate. This core concept of SonarQube is a set of requirements that tells whether or not a new version of a project can go into production.
In SonarQube we have the project listing for multiple project from where we can pick any project to check its health. Under project we have issues which gives us full power to analyze in detail what the main issues are, where they are located, when they were added to your code base and who originally introduced them. Thanks to the Activity page we can dig into the details of the history of your project very easily and precisely to better understand what happened in the past. In this way we must have the SonarQube setup to continuously test our code and to maintain our code in a good health.
If you want to know the Jenkins and SonarQube installation process and configuration then refer to my previous blog:
In case of any suggestion or query please leave a comment.
Author | Blogger | Tech Lead | Elastic Stack | Innovator |View Profile
Apr 29, 2018, 4:17:53 PM
Nice blog. I want to learn data science please let me know how can I start.
Harinath Reddy Konepalli
Jul 17, 2018, 5:06:26 AM
its very nice blog , please prepare material for Chef and ansible
Aug 14, 2018, 7:00:27 PM
Thanks Harinath. We will do that :)
Leave a comment
Oct 13, 2018, 8:49:59 PM | Anurag Srivastava
Feb 9, 2019, 12:06:18 PM | Anurag Srivastava
Mar 9, 2019, 8:20:38 AM | Anurag Srivastava
Apr 6, 2019, 8:41:41 PM | Anurag Srivastava
Apr 14, 2018, 1:18:05 PM | Anurag Srivastava
Jan 31, 2018, 6:11:29 AM | Anurag Srivastava
Feb 9, 2019, 6:34:22 PM | Anurag Srivastava
Jun 21, 2018, 4:58:11 AM | Anurag Srivastava
Jun 26, 2018, 4:50:18 PM | Anurag Srivastava
Jul 16, 2018, 5:00:02 PM | Anurag Srivastava
Apr 24, 2018, 2:52:28 PM | Anurag Srivastava
Jun 2, 2018, 10:49:54 AM | Anurag Srivastava
Jul 12, 2018, 7:40:51 PM | Anurag Srivastava
Aug 10, 2018, 7:14:40 PM | Anurag Srivastava