SVN and JSHint integrated code detection method and system

A code detection and code technology, applied in the field of code detection, can solve problems such as the inability to save manual code review time and automated white-box testing time, and achieve the goals of saving review time and automated white-box testing time, unifying code specifications, and improving performance Effect

Inactive Publication Date: 2016-11-09
SHENZHEN BINCENT TECH
View PDF4 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In the above two patents, management tools are not used to manage codes and detect code writing specificat...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • SVN and JSHint integrated code detection method and system
  • SVN and JSHint integrated code detection method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to fully understand the technical content of the present invention, the technical solutions of the present invention will be further introduced and illustrated below in conjunction with specific examples, but not limited thereto.

[0041] Such as Figure 1~2 In the specific embodiment shown, the SVN integrated JSHint code detection method provided by this embodiment can be used in the collaborative development process of medium and large teams, so that when developers submit source codes using SVN, the system automatically performs code filtering and obtains JavaScript files are analyzed and detected.

[0042] An SVN integrated JSHint code detection method comprises the following specific steps:

[0043] Step 1. Start step, the developer submits the source code to the SVN server;

[0044] Step 2. Trigger step, triggering the SVN hook pre-commit;

[0045] Step 3. Call the operation step, the version library is passed to the corresponding parameters of the hook ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to an SVN and JSHint integrated code detection method and system. The method includes the steps that a developer commits a source code to an SVN server; an SVN hook pre-commit is triggered; a version repository transmits corresponding parameters to the hook program, the hook program executes and calls a Nodejs module and runs JSHint instruction steps; the Nodejs module feeds a detection structure back to the SVN hook; the SVN hook determines whether to allow code commission or obstruct code commission according to the returned result, gives a detection result and informs the developer of the result, and if the SVN hook obstructs code commission, the developer carries out code modification until code commission. According to the SVN and JSHint integrated code detection method and system, by integrating an SVN version management tool and a JavaScript code detection tool JSHint, the system can automatically carry out code filtration, acquire a JavaScript file, carry out analysis and detection and inform the developer of the detection result rapidly when the developer commits the source code through SVN, the version commission JavaScript code quality is effectively improved, code standards are unified, and the software source core development quality and team development efficiency of software engineering are improved.

Description

technical field [0001] The invention relates to a code detection method, more specifically to a SVN integrated JSHint code detection method and an SVN integrated JSHint code detection system. Background technique [0002] SVN is the abbreviation of Subversion, which is a centralized version control management tool with open source code (referring to the open source code of the SVN software itself). Therefore, SVN is a submission and management tool for software source code. [0003] At present, most software is written by a team, written by different programmers and different IDE editors. However, different developers have different abilities and styles, and the existing IDE editors can only detect general grammatical errors, but cannot detect software source code writing specifications and related security issues. The development process relies on version control management tools to manage code. However, the version management tool can only manage version iterations of c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36
CPCG06F11/3688
Inventor 吴澳
Owner SHENZHEN BINCENT TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products