HI,dear user

Just for Best Experience,
We recommend you to use

WebKit Mode of 360 Browser?

or Chrome Browser.

Download 360 Browser Download Chrome

Command Users

Command Users

1. Click here to download the Fireline jar.

2. Please set the java JDK environment in order to execute fireline.jar.

3. Input the following command and type enter key.

java -jar D:\test\fireline.jar -s=D:\test\TestCase -r=E:\RedlineReport

Parameters description:
[required] -s/scanSrcDir : path of your project scanned.
[required] -r/reportSaveDir : output path of fireline report of result.

4. After scanned,open the testReport.html file in your directory of fireline report.

CMD Arguments

CMD Arguments

Required parameters description:
  1. -r/reportSaveDir : output path of fireline report of result
  2. -s/scanSrcDir : path of your project scanned
Optional parameters description:
  1. reportFileName : filename of fireline result report
  2. proj_name : scanned project name
  3. user : name of submitter
  4. config path of configuration file
  5. -nocpd do not run copy paste detect function
For example:

java -jar fireline.jar -s=C:\Users\yuanwei3-iri\Desktop\newRed -r=E:\RedlineReport reportFileName=qmtest proj_name=test123 user=Qtest config=D:\test\RedLineConfigurationNoLog.xml

Fireline users can customize rules according to user demand with the parameter "config"
How to set configuration file ? the following can be referenced:

                            <?xml version="1.0" encoding="UTF-8" standalone="no"?>
                                    <!-- which rule type you want to scan
                                    2: Memory
                                  <!--Filter single rule by rulename. Please email g-qtest-fankui@360.cn to get all the rulenames.-->
                                    <!--<filterRule ruleName="LogOnOffRule" />       
                                    <filterRule ruleName="LogBlockRule" />
                                    <filterRule ruleName="LogAssignmentRule" />-->
                                  <!--Filter files which you do not want FireLine check.(No support for CPD check function)-->
                                      <!--Filter file-->
                                      <filterFile Name="R.java"/>
                                      <!--Filter files in folder-->
                                      <filterFile Name="/facebook/"/>

The above configuration file filter Log rule type ,so fireline will not check the Log rule type.
The default value of "config" indicates that fireline will check all rules.
When fireline has completed running, the report file name will become "qmtest.html"。
Note: If you want to customize the priority of the rule,Please email g-qtest-fankui@360.cn。

Android Studio Plugin

Android Studio Plugin

1. Online Installation

1. You can search and intall plugin of fireline in Android Studio online.

2. Open your Android Studio and choose "File"->"Settings...".

3. Choose "Plugins" in Settings window and input "fireline",then click "Search in repositories".

4. And then choose "360 FireLine Plugin" option to install.

5. When completed intall, Android Studio will restart.

2. Local Installation

When you fail to install online,maybe you can can download zip installation package and install plugin locally.

1. Please click this link and download the latest version of zip installation package.

2. Open your Android Studio and click "Install plugin from disk…" to install zip package.

3. Usage and Configuration

1. After restarting Android Studio ,please click "File" and "Settings...".

2. And then "Fireline" option will be displayed in "Other Settings".

3. When you finish the setting of "Output path of report" and "Scanned Rule",click "OK".

4. Please right click directory or file in your existed project in Android Studio which you need to scan and click "Fireline" and "Run".

5. When finish running,there will be a notification window show up in bottom right corner.Click “Click Here” link and the FireLine report will show up in the IDE as shown below.

Gradle Deployment

Gradle Deployment

Add a new task to start fireline:

                             task runFireline(type:Exec) {
                               commandLine 'cmd' , '/c' , 'java -jar D:/fireline.jar -s=D:/asWrokSpace/qh_android_sdk proj_name=sdk -r=D:/report'
                                standardOutput = new ByteArrayOutputStream()
                                ext.output = {
                                  return standardOutput.toString()
                                println standardOutput

Jenkins Plugin

Jenkins Plugin Installation Steps

Tip: if you are using Jenkins for the first time, please go to the article first:【The tutorial of Jenkins installation and configuration】

1. Click on the upper left corner of the ` Jenkins ` logo, in turn, click ` system management ` - > `plugins management`, Click on the plug-in page ` optional plugin ` button,

2. Input `fireline` in the filter area, check the check out ` fireline Plugin ` plug-in, click on the install directly.Wait after the success of the installation, click `return homepage` to start configuration.

3. Click on the create a new task, input task name, choose `build a free style of software project`, click OK button. Click ` increase build steps ` in the drop-down list of `Build` bar , select `Execute FireLine` option.

4. `Build` bar will show a default report path, do not need to input, the default report on your personal ` report ` directory, as shown. Click `Save` button.

5. Install a new plug-in `HTML Publisher plugin`, again to `system management` - > `plugin management` - > `optional plugin`, search `HTML Publisher plugin`, click install directly, return after a successful installation.

6. Back to the project configuration page, the only need to configure the ` build operation after ` bar, click ` after the build steps ` drop-down box, select ` Publish HTML reports ` options.

7. Click `Increase` button.In `HTML directory to archive` bar input wire report generated paths, namely in the `build` bar wire in the default result report path, can be copied.In ` Index page [s] ` bar ` testReport.html `, this is the name of the default generated HTML report.After these two configurations are completed, click `Save` button.

8. At this time is not yet complete, because the HTML report with JS to better show, we need to be configured to run in the Jenkins execution JS script, or report shows disorder in Jenkins. To ` System management ` - > ` script command line `, input this line of codeSystem.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "") in the text box, click on `Operation` button.

9. The last step, to return to our project, click ` constructing `, immediately after the completion of the building you can click ` HTML Report ` column Report directly to check the result.

2.Jenkins plugin configration parameters

There are six parameters of FireLine jenkins plugin,as the following shows.

1. Report Path [required]:The report path of testing report of FireLine. Default report path is temporary directory of current user,which can use jenkins environment variables,for example, ${WORKSPACE}.

2. Report FileName[required]:The report filename of testing report of FireLine. Default value is testReport.html,which can use jenkins environment variables,for example, ${BUILD_NUMBER}-report.html.

3、If Block rules make build fail:The default option is No. If you choose "Yes" ,Jenkins job will build fail when FireLine find out Block rules.

4、Open access to HTML with JS or CSS:The default option is Yes, then you will open access to HTML with JS or CSS.

5.Rule Configuration Content: Please input your configuration content into the textbox if you need filter some rules. You can click the "?" icon to get some details, as shown below.

6.Build with Parameter:Collaborate with plugin of “build with parameter” to implement whether to use FireLine.
Please select the boolean type parameter of options of "build with parameter" plugin,and set the variable value to "fireline".Then you can reference ${fireline},as shown below.

(1)Add the variable of "build with parameter" (2)Reference envionment variable (3)Build with parameter to operate execution of FireLine

7、JVM Configuration Parameter:You can set the JVM parameters according to your demands ,default value as shown below.
-Xms1g -Xmx1g -XX:MaxPermSize=512m

8、JDK Version Settings:You can set the JDK version according to your demands.Now,jdk 1.7 and 1.8 are supported by Fireline.