CN106294180A - Integration method for walkthrough of multi-programming language codes - Google Patents
Integration method for walkthrough of multi-programming language codes Download PDFInfo
- 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
- walkthrough
- code
- module
- programming languages
- instrument
- 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
Links
- 238000000034 method Methods 0.000 title abstract description 5
- 230000010354 integration Effects 0.000 title abstract 2
- 230000006870 function Effects 0.000 abstract description 3
- 238000007689 inspection Methods 0.000 abstract 1
- 230000011218 segmentation Effects 0.000 abstract 1
- 238000009434 installation Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
The invention discloses an integration method for walkthrough of multi-programming language codes, which relates to the technical field of servers, and adopts python language, abstracts the core function of each code walkthrough tool through software abstraction and logic layering, performs module segmentation, integrates each module to form a multi-language formatting analysis system, and performs format inspection on multiple programming languages; the multi-language formatting analysis system mainly comprises: the system comprises a code engine module, a code walkthrough standard interface, a rule customization module and a standardized report output module. The invention can check formats of various programming languages, supports free expansion, can be applied to various scenes, and has the advantages of flexible use, simplicity and easy use.
Description
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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610706028.6A CN106294180A (en) | 2016-08-23 | 2016-08-23 | Integration method for walkthrough of multi-programming language codes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610706028.6A CN106294180A (en) | 2016-08-23 | 2016-08-23 | Integration method for walkthrough of multi-programming language codes |
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 | Integration method for walkthrough of multi-programming language codes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294180A (en) |
Cited By (6)
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)
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 |
-
2016
- 2016-08-23 CN CN201610706028.6A patent/CN106294180A/en active Pending
Patent Citations (2)
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)
Title |
---|
TOPPLAYER: "Jenkins集成源码静态分析工具", 《HTTP://WWW.CNBLOGS.COM/TOPPLAY/P/3899254.HTML》 * |
Cited By (7)
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) | Integration method for walkthrough of multi-programming language codes | |
US8561014B2 (en) | Extracting a system modelling meta-model language model for a system from a natural language specification of the system | |
CN100576201C (en) | Be used for from the method and the electronic data processing system of natural language text exploitation body | |
US7945438B2 (en) | Automated glossary creation | |
US20040268237A1 (en) | Leveraging markup language data for semantically labeling text strings and data and for providing actions based on semantically labeled text strings and data | |
US7523433B1 (en) | System and method for automated analysis and hierarchical graphical presentation of application results | |
US20130239098A1 (en) | Source code conversion method and source code conversion program | |
US7460996B2 (en) | Using strong data types to express speech recognition grammars in software programs | |
CN113220836B (en) | Training method and device for sequence annotation model, electronic equipment and storage medium | |
CN107168762B (en) | Body-based RUCM (robust object model) consistency checking method | |
CN104503816A (en) | System for automatically converting hardware language VHDL (Vhsic Hardware Description Language) into MSVL (Modeling, Simulation and Verification Language) | |
CN107992306A (en) | A kind of avionics software interface realizes uniformity automatic check method | |
CN106383701A (en) | Common multi-protocol data access interface technology-based data service system | |
CN108665141B (en) | Method for automatically extracting emergency response process model from emergency plan | |
JP2009500699A5 (en) | ||
Umber et al. | NL-based automated software requirements elicitation and specification | |
CN111858645A (en) | Database object processing method, device, equipment and storage medium | |
CN103559296A (en) | XML-based parsing method for SCPI (The Standard Commands for Programmable Instruments) | |
Nayak et al. | Req2Spec: Transforming software requirements into formal specifications using natural language processing | |
CN117555519A (en) | SysML software demand modeling method and system based on natural language processing | |
Bajwa et al. | UCD-generator-A LESSA application for use case design | |
CN113918165A (en) | Method and system for compiling text description type flow description into application automatic operation script | |
Hamdani et al. | A Novel Framework to Automatically Generate IFML Models From Plain Text Requirements | |
Gardent et al. | Extracting subcategorisation information from maurice gross' grammar lexicon | |
Both et al. | A Question Answering System for retrieving German COVID-19 data driven and quality-controlled by Semantic Technology. |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170104 |