CN106294180A - A kind of integrated approach of Walkthrough many programming languages code - Google Patents

A kind of integrated approach of Walkthrough many programming languages code Download PDF

Info

Publication number
CN106294180A
CN106294180A CN201610706028.6A CN201610706028A CN106294180A CN 106294180 A CN106294180 A CN 106294180A CN 201610706028 A CN201610706028 A CN 201610706028A CN 106294180 A CN106294180 A CN 106294180A
Authority
CN
China
Prior art keywords
code
walkthrough
programming languages
instrument
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610706028.6A
Other languages
Chinese (zh)
Inventor
孙伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610706028.6A priority Critical patent/CN106294180A/en
Publication of CN106294180A publication Critical patent/CN106294180A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs

Abstract

The present invention discloses the integrated approach of a kind of Walkthrough many programming languages code, relate to server technology field, use python language, by software abstract and layering logic layers, the Core Feature of each code walkthrough instrument abstract, and carry out module cutting, modules is integrally formed a multilingual formatting analysis system, multiple programming language is carried out format checking;Described multilingual formatting analysis system specifically includes that code engine module, code walkthrough standard interface, rules customization module and standardization report output module.The present invention can carry out format checking to multiple programming language, and supports spread, can apply to several scenes, uses flexibly, easy to use.

Description

A kind of integrated approach of Walkthrough many programming languages code
Technical field
The present invention relates to server technology field, the integrated approach of a kind of Walkthrough many programming languages code.
Background technology
Programmer, when program writing, the most directly it is of concern that the function of program, secondly can be concerned about the performance of program.And for Other characteristic of program, is often concerned about less, the safety of such as program, memory overflow, name readability and concordance etc., In this case, code walkthrough instrument arises at the historic moment.Python language Walkthrough instrument as flake8, except can To find problem above, it is also possible to find untapped variable in code, unsafe occupation mode, it may be possible to hiding logic Mistake etc..
In these epoch increased income, nearly all software company and Internet firm all can use two or more programming languages Speech, to adapt to the demand of different scene: such as process, with C language, the scene that hardware is directly related, write with java Application under big data scene, realizes user-friendly front-end interface with javascript, realizes soon with python Speed prototype etc..Meanwhile, these programming languages nearly all have the code walkthrough instrument being particularly directed to oneself, such as check The splint of C language, checks the checkstyle of java, and javascript with python is corresponding Jshint and flake8.
Current various code walkthrough instrument is substantially good just for a certain programming language effectiveness comparison, or only supports one Plant language;Also there is general code walkthrough instrument (code format checking tool), but the thinnest for every kind of programming language Cause.Therefore, the existence of Multiple Code Walkthrough instrument so that code walkthrough personnel need to be grasped the different configurations of every kind of instrument, and And need to be adjusted, every kind of code walkthrough instrument output result to adapt to the uniform template of company.If additionally, having new again Programming language add come in, in addition it is also necessary to learn again once.If incompatible between each version of code walkthrough instrument, that is the most more Trouble.
Summary of the invention
The present invention is directed to demand and the weak point of current technology development, it is provided that the collection of a kind of Walkthrough many programming languages code One-tenth method.
The integrated approach of a kind of Walkthrough many programming languages code of the present invention, solves the technology that above-mentioned technical problem uses Scheme is as follows: the integrated approach of described a kind of Walkthrough many programming languages code, uses python language, by software abstract and Layering logic layers, the Core Feature of each code walkthrough instrument abstract, and carry out module cutting, modules is integrally formed one Individual multilingual formatting analysis system, carries out format checking to multiple programming language;Described multilingual formatting analysis system master Including: code engine module, code walkthrough standard interface, rules customization module and standardization report output module.
Preferably, described code engine module mainly includes various code walkthrough instrument.
Preferably, described code walkthrough instrument includes flake8, jshint, checkstyle and splint.
Preferably, described code walkthrough standard interface can dock various engine, is responsible for the output content of code walkthrough It is standardized as unified json form, and carries out unifying storage and analyzing.
Preferably, described rules customization module uses json form to carry out unified definition rule, it is possible to automatically generate correspondence Configuration file needed for each code walkthrough instrument.
The useful effect that the integrated approach of a kind of Walkthrough many programming languages code of the present invention compared with prior art has Fruit is: the present invention passes through software abstract and layering logic layers, it is achieved that a set of multilingual formatting analysis system, by unification Code walkthrough standard interface, can support multiple specialty engine, and the result being standardized exports, it is possible to multiple programming language Carry out format checking;And this analysis system supports spread, can apply to several scenes, use flexibly, the most easily With;Use the present invention can reduce the cost of code walkthrough personnel study, reduce code walkthrough difficulty, and improve work effect Rate.
Figure of description
Accompanying drawing 1 is the schematic diagram of described multilingual formatting analysis system.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, to this The integrated approach of bright described a kind of Walkthrough many programming languages code further describes.
The integrated approach of a kind of Walkthrough many programming languages code of the present invention, is used python language, is taken out by software As and layering logic layers, the Core Feature of each code walkthrough instrument abstract, and carry out module cutting, modules integrated shape Become a multilingual formatting analysis system;By this multilingual formatting analysis system, multiple programming language is carried out form Check, be customized rule, integrated tool, and export result.This multilingual formatting analysis system, can add other voluntarily Code walkthrough instrument, use flexibly.
Embodiment:
The integrated approach of the present embodiment a kind of Walkthrough many programming languages code, the multilingual formatting analysis system proposed, main Including: code engine module, code walkthrough standard interface, rules customization module and standardization report output module;As attached Shown in Fig. 1.
In the present embodiment, described code engine module mainly includes various code walkthrough instrument, such as: flake8, Jshint, checkstyle and splint;Described multilingual formatting analysis system mainly uses the code walkthrough of each instrument Function;Additionally, due to this multilingual formatting analysis system possesses unified code walkthrough standard interface, it is possible to be relatively easy to Spread, adds other code walkthrough instrument in analysis system.
In the present embodiment, described code walkthrough standard interface is responsible for the output content standard of code walkthrough is turned to unification Json form, and carry out unifying storage and analyzing, shield the difference between each code walkthrough instrument;Further, this code walkthrough Standard interface can dock various engine, it is achieved abstract to code walkthrough instrument.
In the present embodiment, described rules customization module uses json form to carry out unified definition rule, it is possible to it is right to automatically generate Answer the configuration file needed for each code walkthrough instrument, the characteristic unrelated to realize code walkthrough instrument;Further, this rules customization Module is simplified, and the code walkthrough instrument concrete with each is unglazed, reduces learning and mastering difficulty and cost.
Due to described code walkthrough standard interface and the rules customization module shield difference of each code walkthrough instrument, because of This, described standardization report output module possesses the biggest degree of freedom, it is possible to installation user needs to customize required template to be made With.
The integrated approach of Walkthrough many programming languages code described in the present embodiment, its specific implementation process is as follows:
1) first installing python language in server system, described python language uses python 2.7 version;By Python language, as development language, carries out integrating various engine, and is responsible for modules combination to stand up;
2) after system installation, then the code walkthrough instrument (Walkthrough analysis engine) of other programming languages is installed, mainly includes Three kinds of engines such as flake8, jshint, checkstyle, can analyze python, javascript of main flow instantly respectively With tri-kinds of programming languages of java;
3), after completing above two steps, this multilingual formatting analysis system i.e. be can be used directly and carry out code analysis.
Above-mentioned detailed description of the invention is only the concrete case of the present invention, and the scope of patent protection of the present invention includes but not limited to Above-mentioned detailed description of the invention, any that meet claims of the present invention and any person of an ordinary skill in the technical field The suitably change being done it or replacement, all should fall into the scope of patent protection of the present invention.

Claims (5)

1. the integrated approach of Walkthrough many programming languages code, it is characterised in that use python language, taken out by software As and layering logic layers, the Core Feature of each code walkthrough instrument abstract, and carry out module cutting, modules integrated shape Become a multilingual formatting analysis system, multiple programming language is carried out format checking;Described multilingual formatting analyzes system System specifically includes that code engine module, code walkthrough standard interface, rules customization module and standardization report output module.
The integrated approach of a kind of Walkthrough many programming languages code, it is characterised in that described code Engine modules mainly includes various code walkthrough instrument.
The integrated approach of a kind of Walkthrough many programming languages code, it is characterised in that described code is walked The instrument of looking into includes flake8, jshint, checkstyle and splint.
The integrated approach of a kind of Walkthrough many programming languages code, it is characterised in that described code Walkthrough standard interface can dock various engine, is responsible for the output content standard of code walkthrough is turned to unified json form, And carry out unifying storage and analyzing.
The integrated approach of a kind of Walkthrough many programming languages code, it is characterised in that described rule Customized module uses json form to carry out unified definition rule, it is possible to joining needed for automatically generating each code walkthrough instrument corresponding Put file.
CN201610706028.6A 2016-08-23 2016-08-23 A kind of integrated approach of Walkthrough many programming languages code Pending CN106294180A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610706028.6A CN106294180A (en) 2016-08-23 2016-08-23 A kind of integrated approach of Walkthrough many programming languages code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610706028.6A CN106294180A (en) 2016-08-23 2016-08-23 A kind of integrated approach of Walkthrough many programming languages code

Publications (1)

Publication Number Publication Date
CN106294180A true CN106294180A (en) 2017-01-04

Family

ID=57615482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610706028.6A Pending CN106294180A (en) 2016-08-23 2016-08-23 A kind of integrated approach of Walkthrough many programming languages code

Country Status (1)

Country Link
CN (1) CN106294180A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357733A (en) * 2017-07-17 2017-11-17 万帮充电设备有限公司 Improve the method and device of code quality
CN109002287A (en) * 2018-08-08 2018-12-14 郑州云海信息技术有限公司 The management method and device of software in cloud data system
CN109032949A (en) * 2018-08-02 2018-12-18 郑州悉知信息科技股份有限公司 A kind of front-end code quality determining method and device
CN109086217A (en) * 2018-11-01 2018-12-25 郑州云海信息技术有限公司 A kind of implementation method of statistics C language coding ratio of defects, equipment and storage medium
CN111240786A (en) * 2020-01-09 2020-06-05 北京字节跳动网络技术有限公司 Walkthrough method and device, electronic equipment and storage medium
CN113448856A (en) * 2021-07-07 2021-09-28 中国银行股份有限公司 Automatic code walkthrough method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009098851A (en) * 2007-10-16 2009-05-07 Mitsubishi Electric Corp System for detecting invalid code
CN101807232A (en) * 2009-02-18 2010-08-18 牛婷芝 Method for detecting Java source code insecure input loophole

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009098851A (en) * 2007-10-16 2009-05-07 Mitsubishi Electric Corp System for detecting invalid code
CN101807232A (en) * 2009-02-18 2010-08-18 牛婷芝 Method for detecting Java source code insecure input loophole

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TOPPLAYER: "Jenkins集成源码静态分析工具", 《HTTP://WWW.CNBLOGS.COM/TOPPLAY/P/3899254.HTML》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357733A (en) * 2017-07-17 2017-11-17 万帮充电设备有限公司 Improve the method and device of code quality
CN109032949A (en) * 2018-08-02 2018-12-18 郑州悉知信息科技股份有限公司 A kind of front-end code quality determining method and device
CN109002287A (en) * 2018-08-08 2018-12-14 郑州云海信息技术有限公司 The management method and device of software in cloud data system
CN109002287B (en) * 2018-08-08 2021-11-26 郑州云海信息技术有限公司 Management method and device for software in cloud data system
CN109086217A (en) * 2018-11-01 2018-12-25 郑州云海信息技术有限公司 A kind of implementation method of statistics C language coding ratio of defects, equipment and storage medium
CN111240786A (en) * 2020-01-09 2020-06-05 北京字节跳动网络技术有限公司 Walkthrough method and device, electronic equipment and storage medium
CN113448856A (en) * 2021-07-07 2021-09-28 中国银行股份有限公司 Automatic code walkthrough method and device

Similar Documents

Publication Publication Date Title
CN106294180A (en) A kind of integrated approach of Walkthrough many programming languages code
CN110764753B (en) Business logic code generation method, device, equipment and storage medium
CN106528165B (en) Code generating method and code generating system
CN100576201C (en) Be used for from the method and the electronic data processing system of natural language text exploitation body
US20130239098A1 (en) Source code conversion method and source code conversion program
US7523433B1 (en) System and method for automated analysis and hierarchical graphical presentation of application results
US20070033520A1 (en) System and method for web page localization
US20140089212A1 (en) Data sharing agreements
CN104503816A (en) System for automatically converting hardware language VHDL (Vhsic Hardware Description Language) into MSVL (Modeling, Simulation and Verification Language)
CN110334169B (en) Novel geographical calculation device
CN108665141B (en) Method for automatically extracting emergency response process model from emergency plan
CN109558117A (en) The C code automatic generation method of the refinement of AADL model and its support towards AEROSPACE APPLICATION
Aquino et al. Digital affordances and remote public audit practice
CN103559296A (en) XML-based parsing method for SCPI (The Standard Commands for Programmable Instruments)
CN103677841A (en) IETM code generation method and device based on element-level template
Nayak et al. Req2Spec: Transforming software requirements into formal specifications using natural language processing
CN109343835A (en) A kind of rapid build business scaffold code instrumentation based on template
US9152385B2 (en) Systems and methods for generating high-quality formal executable software feature requirements
CN103473431A (en) Lightweight method for debugging hypertext preprocessor (PHP) program on line
CN110083822B (en) Conversion method for converting requirement text into SysML requirement diagram
Hamdani et al. A Novel Framework to Automatically Generate IFML Models From Plain Text Requirements
Runde et al. EDDL and semantic web—From field device integration (FDI) to Future Device Management (FDM)
CN113918165A (en) Method and system for compiling text description type flow description into application automatic operation script
Georgiades et al. A novel software tool for supporting and automating the requirements engineering process with the use of natural language
US20170344918A1 (en) Facilitating and reporting the proper completion of workflows

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication