Date: Fri, 29 Mar 2024 16:44:05 +0100 (CET) Message-ID: <25663424.1364.1711727045510@localhost> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1363_437371560.1711727045509" ------=_Part_1363_437371560.1711727045509 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This post was originally posted at Takehiko Amano'= s Blog on Emerging Technologies and is reproduced here with permis= sion.
The instructions may be outdated. If you have issues, please contact the technical supp= ort team.
I=E2=80=99m located in Tokyo, but I sometimes collaborate beyond border = to assist customers. I=E2=80=99m working with Smith Naik who has been managers of various IBM software at I= BM labs, now works for various customers to provide best solutions for them= .
We were wondering how we can provide =E2=80=9Cstatic analysis=E2=80=9D o= n the cloud using IBM Bluemix DevOps Services, and Smith found the vendor K= iuwan who provides the solution for it ( https://github.com/kiuwan/ibm= -devOps-services ) . Smith double checked with product manager of DevOp= s Services and it turned out that Kiuwan is on the list of IBM Cloud market place (i.e. our= partner). So we have started to investigate.
This is preliminary blog entry how I verified the features of this integ= ration. First of all, I choose this tutorial article because this is public, everybody can do= uble check it. I have chosen to add =E2=80=9CBuild and Deploy=E2=80=9D feat= ure in =E2=80=9CAdd Git=E2=80=9D step. After a while, build and deploy was = ready to use in the project.
I have modified =E2=80=9CBuild=E2=80=9D stage to include Test job. The j= ob will provide a text area to enter test script.
I have added the following texts ( I have just followed instruction foun= d in GitHub readme.md ). I have ch= anged the KIUWAN_APPLICATOIN_NAME, KIUWAN_USER and KIUWAN_PASSWORD paramete= rs.
#!/bin/bash # invoke tests here #Set parameters for Kiuwan Local Analyzer export KIUWAN_SOURCE_CODE_DIRECTORY=3D"src" export KIUWAN_APPLICATION_NAME=3D"amntliberty" export KIUWAN_ANALYSIS_LABEL=3D"`date`" export KIUWAN_USER=3D"<my login at Kiuwan>" export KIUWAN_PASSWORD=3D"<my password at Kiuwan>" export KIUWAN_TECHNOLOGIES_TO_ANALYZE=3D"java,javascript" export KIUWAN_INCLUDE_PATTERNS=3D"" export KIUWAN_EXCLUDE_PATTERNS=3D"**/src/test/**,**/__MACOSX/**,**/*.min.js,**/*.Designer.vb,**/*Reference.vb,**/*S= ervice.vb,**/*Silverlight.vb,**/*.Designer.cs,**/*Reference.cs,**/*Service.= cs,**/*Silverlight.cs" #Retrieve and execute the analysis with Kiuwan Local Analyzer curl -L https://raw.githubusercontent.co= m/kiuwan/ibm-devOps-services/master/scripts/kiuwan.sh | bash
And then, save the configuration, and run it. I see the test log during = the operation.
After the test end, The log gave a URL to view the test result. By openi= ng the URL, I can see several test result of Kiuwan static analysis. Here i= s a result of our sample code.
It indicated it has defects in Maintainability. What kind of error it wa= s ? They were:
=E2=80=9CProvide Javadoc comments for public methods.=E2=80= =9D
Yes, these are actually defects. :) Looks like the sample co= de has less defects in the other area, security, portability, reliability, = so on. These are quite useful information.