CN107168872A - Method, device, storage medium and the processor of code check - Google Patents

Method, device, storage medium and the processor of code check Download PDF

Info

Publication number
CN107168872A
CN107168872A CN201710329909.5A CN201710329909A CN107168872A CN 107168872 A CN107168872 A CN 107168872A CN 201710329909 A CN201710329909 A CN 201710329909A CN 107168872 A CN107168872 A CN 107168872A
Authority
CN
China
Prior art keywords
source code
code file
path
storehouse
syntax tree
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.)
Granted
Application number
CN201710329909.5A
Other languages
Chinese (zh)
Other versions
CN107168872B (en
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201710329909.5A priority Critical patent/CN107168872B/en
Publication of CN107168872A publication Critical patent/CN107168872A/en
Application granted granted Critical
Publication of CN107168872B publication Critical patent/CN107168872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis

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)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method of code check, device, storage medium and processor.Code check method includes:Monitoring step:Whether the source code file in the condition monitoring source code file storehouse being pre-configured with has renewal;Caching step:The corresponding cache contents of the source code file are generated according to the source code file of renewal, and cached;Checking step:Cache contents are checked;Notifying process:In the case where checking error message, by error message notification to programming personnel;After programming personnel modifies in response to error message to corresponding source code file, triggering monitoring step is to checking step, if it is checked that error message reinforms programming personnel, until not occurring mistake.Solve and the problem of code check efficiency is low is carried out to dynamic language, can be with high efficiency, high-quality carry out code check.

Description

Method, device, storage medium and the processor of code check
Technical field
The present invention relates to code check field, in particular to the method for code check, device, storage medium and place Manage device.
Background technology
At present, lua dynamic languages are needed to carry out the need for quiet code check is all in order at specification procedure code, existing skill Art carries out static check to lua codes, mainly by checking code, misregistration and notifying these steps of submitter come real It is existing, but all operations of these steps are all, it is necessary to which hand inspection code has in record code one by one again by manually carrying out The place of problem, is then sent to submitter and is modified manually again, is checked again by other people after person's amendment to be committed, again Into the inspection, record, the process notified, so the inspection that prior art carries out quiet code to lua dynamic languages is very low Efficiency.
For carrying out the problem of code check efficiency is low to dynamic language in the prior art, not yet propose effectively to solve at present Certainly scheme.
The content of the invention
The invention provides the method for code check, device, storage medium and processor, to solve in the prior art to dynamic State language carries out the problem of code check efficiency is low.
One side according to embodiments of the present invention there is provided a kind of method of code check, including:Monitoring step:Root Whether there is renewal according to the source code file in the condition monitoring source code file storehouse being pre-configured with, wherein, the source code file The source code write for dynamic programming language;Caching step:Source code file correspondence is generated according to the source code file of renewal Cache contents, and cached, wherein, the cache contents are used for the error message for checking corresponding source code file, institute Cache contents are stated to be stored in caching storehouse;Checking step:The cache contents are checked;Notifying process:Made mistake in inspection In the case of information, by the error message notification to programming personnel;In the programming personnel in response to the error message pair After corresponding source code file is modified, triggering monitoring step is to checking step, if it is checked that error message is reinformed The programming personnel, until not occurring mistake.
Further, generating the corresponding cache contents of source code file of the renewal includes:Generate the source of the renewal The corresponding syntax tree of code file, wherein, the cache contents include the syntax tree;Inspection bag is carried out to the cache contents Include:The syntax tree is checked.
Further, the cache contents also include at least one of:The path of the source code file, the source generation The check code of code file, the source code file.
Further, in the case that the cache contents include the path of the source code file, according to the source generation of renewal The corresponding cache contents of the code file generated source code file include:The path in the source code file storehouse is obtained, wherein, institute State and have the corresponding source code file in the path and the corresponding check code of the source code file under path;According to the path Under the source code file generate corresponding syntax tree and the syntax tree be added in caching storehouse;Make in the caching storehouse The corresponding path of syntax tree it is consistent with the path of the corresponding source code file of syntax tree in all source code file storehouses.
Further, corresponding syntax tree is generated and by the syntax tree according to the source code file under the path Being added to caching storehouse includes:Search the path that whether there is in the caching storehouse in the source code file storehouse;If no There is the path in the source code file storehouse, then corresponding syntax tree is generated according to the source code file under the path And the syntax tree is added in the caching storehouse.
Further, corresponding syntax tree is generated and by the syntax tree according to the source code file under the path Being added in caching storehouse also includes:Search the path that whether there is in the caching storehouse in the source code file storehouse;If There is the path in the source code file storehouse, then judge check code and the source code described in the caching storehouse under path Whether the check code under path described in library is consistent;If it is inconsistent, again according to the source generation under the path The syntax tree is simultaneously added in the caching storehouse by the code corresponding syntax tree of file generated.
Further, generating the corresponding cache contents of the source code file according to the source code file of renewal includes:Search It whether there is the path in the caching storehouse in the source code file storehouse, wherein, there is the road under the path The corresponding source code file in footpath and the corresponding check code of the source code file;If it does not exist, then deleting under the path The source code file and the corresponding check code of the source code file.
Further, carrying out inspection to the syntax tree includes:The syntax tree is traveled through, wherein, the syntax tree includes At least one node, the node is a grammar object for being packaged into multiple back end of a grammer;According to described The corresponding syntactic type of node in syntax tree obtains the corresponding inspection rule of the node, wherein, each syntactic type correspondence N The individual inspection rule being pre-configured with, the N is the integer more than or equal to 0;According to the inspection rule got to the syntax tree Checked.
Further, be syntactic type configuration inspection rule include it is multiple in the case of, according to the check gauge got Then carrying out inspection to the syntax tree includes:Check regular corresponding order and/or priority to institute's predicate according to the multiple Method tree is checked.
Other side according to embodiments of the present invention, additionally provides a kind of code check device, including:Monitoring unit, Whether there is renewal for the source code file in the condition monitoring source code file storehouse being pre-configured with, wherein, the source generation Code file is the source code that dynamic programming language is write;Buffer, for generating the source code according to the source code file of renewal The corresponding cache contents of file, and cached, wherein, the cache contents are used for the mistake for checking corresponding source code file Information, the cache contents are stored in caching storehouse;Detector, for checking the cache contents;Notifying device, for In the case of checking error message, by the error message notification to programming personnel;Process controller, in the programming Response triggers monitoring step to checking step after the error message is modified to corresponding source code file, If it is checked that error message reinforms the programming personnel, until not occurring mistake.
Further, the buffer includes:Generation module, the corresponding language of source code file for generating the renewal Method tree, wherein, the cache contents include the syntax tree;The detector includes:Module is checked, for the syntax tree Checked.
Further, the cache contents also include at least one of:The path of the source code file, the source generation The check code of code file, the source code file.
Further, in the case that the cache contents include the path of the source code file, buffer includes:Obtain Module, for obtaining the path in the source code file storehouse, wherein, there is the corresponding source code in the path under the path File and the corresponding check code of the source code file;Add module, for according to the source code file under the path Generate corresponding syntax tree and the syntax tree is added in caching storehouse;Synchronization module, for making the language in the caching storehouse The corresponding path of method tree is consistent with the path of the corresponding source code file of syntax tree in all source code file storehouses.
Further, the add module includes:Whether first searches submodule, deposited in the caching storehouse for searching Path in the source code file storehouse;First addition submodule, for if there is no in the source code file storehouse Path, then generate corresponding syntax tree and described in the syntax tree is added to according to the source code file under the path Cache in storehouse.
Further, the add module also includes:Second searches submodule, for search in the caching storehouse whether There is the path in the source code file storehouse;Judging submodule, for if there is the path in the source code file storehouse, Then judge the check code described in the caching storehouse under path is with the check code under path described in the source code file storehouse It is no consistent;Second addition submodule, for if it is inconsistent, being generated again according to the source code file under the path The syntax tree is simultaneously added in the caching storehouse by corresponding syntax tree.
Further, the buffer includes:Searching modul, whether there is for searching in the source code file storehouse The path in the caching storehouse, wherein, there are the corresponding source code file in the path and the source generation under the path The corresponding check code of code file;Removing module, for if it does not exist, then delete the source code file under the path and The corresponding check code of the source code file.
Further, the inspection module includes:Submodule is searched, for traveling through the syntax tree, wherein, the grammer Tree includes at least one node, and the node is a grammar object for being packaged into multiple back end of a grammer;Obtain Submodule is taken, the corresponding inspection rule of the node is obtained for the corresponding syntactic type of node in the syntax tree, its In, the N number of inspection rule being pre-configured with of each syntactic type correspondence, the N is the integer more than or equal to 0;First checks son Module, for being checked according to the inspection rule got the syntax tree.
Further, the first inspection submodule includes:Second checks submodule, for the inspection configured in syntactic type Look into rule include it is multiple in the case of, check regular corresponding order and/or priority to the syntax tree according to the multiple Checked.
Other side according to embodiments of the present invention, has been also provided on a kind of storage medium, the storage medium and has protected Computer program stored, performs upper described method when described program is run.
Other side according to embodiments of the present invention, has been also provided to a kind of processor, has been held when described program is run The above-mentioned method of row.
According to embodiments of the present invention, using monitoring step:According in the condition monitoring source code file storehouse being pre-configured with Source code file whether have renewal, wherein, the source code file is the source code write of dynamic programming language;Caching step Suddenly:The corresponding cache contents of the source code file are generated according to the source code file of renewal, and cached, wherein, it is described slow Deposit the error message that content is used to check corresponding source code file;Checking step:The cache contents are checked;Notify Step:In the case where checking error message, by the error message notification to programming personnel;In programming personnel response After the error message is modified to corresponding source code file, triggering monitoring step to checking step, if checked Error false information reinforms the programming personnel, until not occurring mistake.Solved by the present invention and generation is carried out to dynamic language Code checks the problem of efficiency is low, so that high efficiency, high-quality inspection code.
Brief description of the drawings
The accompanying drawing for constituting the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate to be used to explain the present invention, do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of code check method according to embodiments of the present invention;
During Fig. 2 is source code file and caching storehouse in the catalogue in source code file storehouse according to embodiments of the present invention The schematic diagram of cache contents;
Fig. 3 is caching storehouse change schematic diagram according to embodiments of the present invention;
Fig. 4 is caching storehouse change schematic diagram according to embodiments of the present invention;
Fig. 5 is caching storehouse change schematic diagram according to embodiments of the present invention;
Fig. 6 is caching storehouse change schematic diagram according to embodiments of the present invention;
Fig. 7 is caching storehouse change schematic diagram according to embodiments of the present invention;
Fig. 8 is the regular schematic diagram of inspection according to embodiments of the present invention;
Fig. 9 is the regular schematic diagram of inspection according to embodiments of the present invention;
Figure 10 is the automation inspection and check schematic flow sheet according to the present embodiment;
Figure 11 is the schematic diagram of the caching method of syntax tree according to embodiments of the present invention;
Figure 12 is inspection according to embodiments of the present invention and the schematic diagram of the method for analysis syntax tree;
Figure 13 is the schematic diagram of the recording method of mistake binding submitter (programming personnel) according to embodiments of the present invention;
Figure 14 is the schematic diagram that intelligence according to embodiments of the present invention sends the method notified;And,
Figure 15 is a kind of structure chart of code check device according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that covering is non-exclusive to be included, for example, containing series of steps or unit Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
The embodiments of the invention provide a kind of code check method.Fig. 1 is a kind of code inspection according to embodiments of the present invention The flow chart of checking method.As shown in figure 1, this method comprises the following steps:
Step S102, monitoring step:Source code file in the condition monitoring source code file storehouse being pre-configured with is It is no to have renewal, wherein, source code file is the source code that dynamic programming language is write;
Step S104, caching step:The corresponding cache contents of the source code file are generated according to the source code file of renewal, And cached, wherein, cache contents are used for the error message for checking corresponding source code file, and cache contents are stored in caching storehouse In;
Step S106, checking step:Cache contents are checked;
Step S108, notifying process:In the case where checking error message, by error message notification to programming personnel;
Step S110, after programming personnel modifies in response to error message to corresponding source code file, triggering Monitoring step is to checking step, if it is checked that error message reinforms programming personnel, until not occurring mistake.
In above-mentioned steps, employ and the change of source code file is stored in caching, by code file and the content in caching Be synchronised, then the content in caching checked, be automatically notified to correlation programming personnel, automatic cycle inspection, until Modification is completed, and the step of being checked by the technology and automatic cycle of the synchronous source code file of this binding cache instead of existing To the hand inspection of code in technology, the problem of code check efficiency is low is carried out to dynamic language so as to solve, can be efficient Rate, high-quality carry out code check.
Above-mentioned steps are illustrated by taking lua dynamic languages as an example below:
The above method can be used when carrying out static code inspection to lua dynamic languages, first, starts the lua codes Check device, then continues to monitor the renewal situation in source code file storehouse, when updating, and the source code file to renewal is given birth to Into caching, then read caching checked, the error message notification checked give corresponding submitter or programming personnel, this is carried Friendship person or programming personnel change the source code file of wrong false information, then amended source code file is submitted into source code Library, triggering above method flow can be checked, if the mistake is not corrected yet, can again send and notify, be formed again One circulation, notifies until mistake can just eliminate to send to the submitter or programming personnel after being corrected, jumps out circulation.
In above-mentioned steps, the inspection to cache contents needs certain rule, and the rule is exactly using syntax tree as inspection The object of analysis, in one alternatively embodiment, i.e. the corresponding cache contents of source code file that generation updates are exactly raw Into corresponding syntax tree, wherein, cache contents include syntax tree;And it is exactly that syntax tree is carried out that cache contents, which are checked, Check.
By, to the source code file of renewal is cached into syntax tree, being both easy to the rule of self-defined inspection in above-mentioned steps Then, the efficiency of inspection can be improved again.
Above-mentioned cache contents at least also include one of following three kinds of situations:The first be source code file path, it be It is synchronised for the ease of the file in the content in caching and source code file storehouse and sets, second is source code file Check code, when synchronously there are abnormal conditions, is further verified, the third source code file is in caching using check code Core content in appearance, is also to cache the storehouse content synchronous with being needed in source code library.
In the case that cache contents include the path of source code file, the source code is generated according to the source code file of renewal The corresponding cache contents of file, in one alternatively embodiment, first, obtain the path in source code file storehouse, wherein, There are the corresponding source code file in path and the corresponding check code of source code file under path;Secondly, according to the source generation under path Syntax tree is simultaneously added in caching storehouse by the code corresponding syntax tree of file generated;Finally, make the syntax tree in caching storehouse corresponding Path is consistent with the path of the corresponding source code file of syntax tree in all source code file storehouses.
By above-mentioned steps, content it will be synchronised with the path in source code library in caching storehouse, that is, by each path Under cache contents and source code library in content be synchronised so that it is significantly more efficient according to source code file update cache, will It is in order to increase the efficiency of synchronous efficiency and subsequent examination, and to be easy to check rule that corresponding syntax tree, which is added to caching, Change.
There are following several situations when by the renewal content synchronization in source code library to caching storehouse, alternatively implement at one In mode, the first situation is:In some code file in not occurring source code library in caching storehouse completely, synchronous side Formula is first to search the path in whether there is source code file storehouse in caching storehouse;If there is no the road in source code file storehouse Footpath, then generate corresponding syntax tree according to the source code file under path and syntax tree be added in caching storehouse.
By caching storehouse in search exist in source code library and caching storehouse in non-existent path, this is not present Path be synchronously loaded into caching storehouse in so that targetedly update caching so that load is small, and the speed of renewal is faster.
Can be such as Fig. 2 institutes for example, it is assumed that having two code files at present, and never startup optimization crosses synchronization caching mistake Show, Fig. 2 is the source code file in the catalogue in source code file storehouse according to embodiments of the present invention and the caching in caching storehouse The schematic diagram of content.Caching storehouse in Fig. 2 is that, without any caching, Fig. 3 is that caching storehouse change according to embodiments of the present invention is shown It is intended to, when startup optimization first, as shown in figure 3, using the file A in source code directory and file B path as index, Cache in storehouse and search, file not found A and file B caching are looked into caching storehouse, then generation file A and file B caching add Enter into caching storehouse, definitive document A is to that there should be file A caching, and file B is to that there should be file B caching, and source code directory is with delaying Warehousing is reached an agreement.
Second of situation is if there is some code file in source code library in caching storehouse, but the code file is sent out Change is given birth to, in one alternatively embodiment, the mode for updating caching storehouse is to look for whether there is source generation in caching storehouse Path in code library;If there is the path in source code file storehouse, then judge check code in caching storehouse under path with Whether the check code in source code file storehouse under path is consistent;If it is inconsistent, again according to the source code file under path Generate corresponding syntax tree and syntax tree is added in caching storehouse.
For example, although can continue detection file change and synchronize, make file with cache reach an agreement all the time, but It is, it is assumed that out of service, file is changed again during stopping that file directory and the caching storehouse of source code library occur such as figure Situation shown in 4, Fig. 4 is caching storehouse change schematic diagram according to embodiments of the present invention.During stopping is run, code directory File B is deleted, and also add a file C, therefore, and each startup optimization is required for carrying out subsynchronous, second of startup Device is as shown in figure 5, Fig. 5 is caching storehouse change schematic diagram according to embodiments of the present invention.With the file A in source code directory, File C path finds file A in caching storehouse, compares check code, if check code is different, supporting paper A occurred change and cached, it is necessary to regenerate syntax tree and update, if check code is the same, need not generate, be opened so as to improve The efficiency of dynamic operation, looks into file not found C, then judges that file C is a newly-increased file, it is necessary to which generative grammar tree caching, is added Into caching storehouse.
The third situation is that some code file has been deleted in source code file storehouse, now caches and is also required to do in storehouse Corresponding renewal, in one alternatively embodiment, i.e. generate the source code file pair according to the source code file of renewal The cache contents answered include:Search with the presence or absence of the path in caching storehouse in source code file storehouse, wherein, there is road under path The corresponding source code file in footpath and the corresponding check code of source code file;If it does not exist, then deleting the source code text under path Part and the corresponding check code of source code file.
The change for solving identical code file by the check code in the above method updates and checked, so as to ensure caching The situation of code file in source code file storehouse is reflected in storehouse in real time, to ensure the standard of cache contents inspection in the follow-up storehouse to caching True property.
For example, after the completion of above procedure, file directory can be the text as shown in fig. 6, in source code directory with caching storehouse Part B is deleted, but also has file B cachings in caching storehouse, and this is Trash cache, it is therefore desirable to cleared up, above-mentioned use source code mesh The method of the file path of record to caching library lookup is to look for less than Trash cache, therefore it is necessary to search in turn, using slow File path in warehousing is searched to source code directory, and search procedure is as shown in fig. 7, to cache file A, B, C paths in storehouse Searched to source code directory, wherein, file B search less than, then judge it for Trash cache, it is necessary to delete, finally cache storehouse just Only file A, C caching, it is synchronous with source code directory completion of reaching an agreement.
Simply use several files to illustrate in above-mentioned example, be on having in source code file storehouse in practical situations both Thousand files, All Files all generative grammar trees and just generated just for the file changed, compared with prior art efficiency It is greatly improved.
Above-mentioned several situations are illustrated with reference to an optional embodiment:
One caching library management is each cached, and the generation method each cached can be by lua source code files path, be somebody's turn to do Lua source code files check code is combined with the syntax tree obtained by lua source code files parsing, the grammer in each caching Tree supply detector Inspection and analysis is reused, and helps to reduce the frequency of parsing Lua source codes, so that raising efficiency, only newly Increase or the lua source code files of modification just need to parse generative grammar tree, and update caching, the opportunity of buffer update is in lua Phase between phase and operation between the startup of static code check device, wherein, the phase between the startup of lua static codes check device, use Lua source code file synchronization cachings storehouse, its synchronous method is to travel through all lua source codes text in lua source code files storehouse The path of part is to caching library lookup, if can not find the caching of respective path, and caching is generated using the lua source code files, It is added in caching storehouse, it is without any processing if finding the caching of respective path, then travel through all cachings in caching storehouse Path searched into lua source code files storehouse, if can not find corresponding lua source codes path, delete the caching, treat same Device start completion behind caching storehouse is walked, wherein during lua static codes check device is run, detecting lua source code files The renewal in storehouse, while triggering synchronization caching, synchronous method is, if increased lua source code files, then generates caching and be added to Cache in storehouse, if the lua source code files of modification, then generate check code and syntax tree, be updated to corresponding slow in caching storehouse Deposit, if the lua source code files deleted, then corresponding caching in caching storehouse is deleted, after synchronously completing, it is possible to checked Analysis.
It is exactly that syntax tree is checked to the Inspection and analysis of cache contents in above-mentioned steps, inspection needs to follow certain Rule, it is necessary to travel through syntax tree in one alternatively embodiment, wherein, syntax tree includes at least one node, and node is The grammar object that multiple back end of one grammer are packaged into;Further according to the corresponding syntactic class of node in syntax tree Type obtains the corresponding inspection rule of the node, wherein, the N number of inspection rule being pre-configured with of each syntactic type correspondence, N is big In the integer equal to 0;Inspection rule according to getting is checked syntax tree.
For example:As shown in Figure 8 and Figure 9, traverse node inspection, root Ju is illustrated above will to be traveled through 5 nodes and is checked It is the demand that root Ju checks to check the inspection rule in rule base, is supplemented up by manual manufacture, and it is to be directed to check rule What every kind of syntactic type was made, so every kind of syntactic type can be to that should have 0 or multiple inspection rule.It is below inspection work Flow:Traverse Set grammar object nodes first, check rule base find the inspection rules 1 of correspondence set grammar objects with 2, then using rule 1 and 2 is checked, this set grammar object is checked, Varlist grammar object nodes are then traversed, Corresponding inspection rule is can not find in rule base is checked, then then traverses Id grammar object nodes without checking, is being checked The inspection rule 3 of correspondence Id grammar objects is found in rule base, then using rule 3 is checked, this Id grammar object is examined Look into, then traverse Explist grammar object nodes, corresponding inspection rule is can not find in rule base is checked, then without inspection Look into;Then Number grammar object nodes are traversed, the check gauge of correspondence Number grammar objects is found in rule base is checked Then 4 and 5, then using rule 4 and 5 is checked, this Number grammar object is checked.
For syntactic type configure inspection rule include it is multiple in the case of, according to get inspection rule to syntax tree Checked, in one alternatively embodiment, check regular corresponding order and/or priority to syntax tree according to multiple Checked.
Above-mentioned steps are illustrated with reference to an optional embodiment:
Syntax tree is traveled through, grammer identification is carried out with the tag marks in syntax tree, and be used as a syntactic node, grammer section Point include Call, Set, Local, FunctionDef, Function, LocalFunctionDef, If, Op, Paren, Forin、String、Number、Index、Id、Table、Field、Fornum、Return、Invoke、True、False、Nil、 While, VARARG, Break, Dots, Do, Block, wherein the method for generation global variable collection is first to find statement global context Source code file, then the tree grammar of these source code files is obtained from caching, traveled through by syntactic node, if Set, The syntactic node, then be added to global variable and concentrated, wherein checking grammer section by FunctionDef, Function syntactic node The method of point is the syntax tree that the lua source code files for needing to check are obtained from caching, is traveled through by syntactic node, if It is Block syntactic nodes, then for as a code block, then all grammer child nodes traveled through under the code block are checked, Simultaneously if Local, LocalFunctionDef syntactic node are, it is necessary to first be added to the syntactic node under the code block Local variable is concentrated, and is used as the local variable of all filial generation code blocks under the code block and the code block, each syntactic node Multiple inspection rules will be included, it is each to check that rule be according to lazy global variable collection together with the code block local variable collection Checked, these check that rule is obtained from rule base is checked, check that rule base is to provide one kind and supports extension check gauge Method then, checks that rule base is used to deposit and checks rule, and these check that rule is added by artificial self-defined driver write, often Rule can be checked comprising multiple by planting grammer, and each syntactic node write inspection rule and method to that should have 0 or multiple inspections regular It is that, it is necessary to which one is added under Call grammers checks rule exemplified by calling the inspection rule in the absence of variable, Call is tune With grammer, it is when calling, then to need to check that the variable called whether there is, pass through Call syntactic nodes that traversal syntax tree, which runs into, Id grammer child node is found, Id is variable, be the variable called, in conjunction with generation where global variable collection and the syntactic node Local variable collection under code block is checked, is become if this is all not present in the local variable collection of global variable collection and the code block Amount, then it is the mistake that have invoked a non-existent variable.
Can be with higher efficiency, high-quality carry out code check by above-mentioned steps.
Above-mentioned whole caching and the process checked are illustrated with reference to an optional embodiment:
It is the automation inspection and check schematic flow sheet of the embodiment of the present invention referring to Figure 10, including:
S1001:The renewal in source code file storehouse is continued to monitor, when updating, triggering buffer is cached;
S1002:After the completion of caching, triggering detector reads caching and checked;
S1003:After having checked, triggering collector collects error message;
S1004:After the completion of collection, trigger notice device sends error message;
S1005:Notifying device sends error message to correspondence submitter;
S1006:Submitter's modification mistake simultaneously submits source code file;
S1007:Process controller monitors that source code file storehouse updates, and is again introduced into check process, is checked;
It is the schematic diagram of the caching method of the syntax tree of the embodiment of the present invention referring to Figure 11, including:
S1101:Caching is synchronized during starter;
S1102:All source code files, including their check codes and path are obtained from lua source code files source;
S1103:All cachings, including their check codes and path are obtained from syntax tree caching storehouse;
S1104:The path of each source code file is traveled through, is searched in all cachings, finds out source code file corresponding Caching, if found, is compared using the check code in the check code and caching of the source code file, if identical, said Bright source code file there is not change, any processing that it goes without doing, if differing, and updates caching.If searched less than illustrating it is new Increase file, it is necessary to increase caching, then travel through the path in each caching, searched in all source code files, if searched not Arrive, then say that the corresponding source code file of the caching is not present, it is necessary to delete caching;
S1105:Cached to the increase of caching storehouse, renewal with deleting, if increase is cached, then using lua source code files Path, check code and syntax tree create a new caching, be added directly to caching storehouse, if updating caching, then give birth to again Into the check code and syntax tree of the lua source code files, the caching is updated to, if deleting caching, then warehousing of directly postponing Middle deletion caching;
S1106-S1108:Monitor source code file storehouse during plant running to update, if occurring increase, modification with deleting source During code file, synchronization caching storehouse is triggered;
S1109-S1110:If increase source code file, then using the path of the lua source code files, check code with Syntax tree creates a new caching, directly to the addition of caching storehouse, if modification source code file, then regenerate the lua sources The check code and syntax tree of code file, are updated to the caching in the path, if deleting source code file, then directly deleting should The caching in path.
It is inspection and the schematic diagram of the method for analysis syntax tree of the embodiment of the present invention referring to Figure 12, including:
S1201-S1202:Monitor that there is renewal in lua source code files storehouse, and complete after caching storehouse synchronization, triggering is checked Device is checked the lua source code files of renewal.
S1203:Postpone and the syntax tree of the renewal source code file is obtained in warehousing, travel through the tag grammers in the syntax tree Mark, and the syntax tree under the grammar identifier node is obtained, a syntactic node object is encapsulated as, a syntactic node is generated Collection, syntactic node include Call, Set, Local, FunctionDef, Function, LocalFunctionDef, If, Op, Paren、Forin、String、Number、Index、Id、Table、Field、Fornum、Return、Invoke、True、 False、Nil、While、VARARG、Break、Dots、Do、Block。
S1204:Each syntactic node is traveled through, if Set, FunctionDef, Function syntactic node, then this Syntactic node is added to global variable concentration, ultimately generates a global variable collection.
S1205:Each syntactic node is traveled through, it is Block syntactic nodes such as to look into, then the syntactic node is added code block collection In, ultimately generate a code block collection.
S1206-1207:Each code block under code block collection is traveled through, then travels through each syntactic node under code block and is carried out Check, while if Local, LocalFunctionDef syntactic node, in addition it is also necessary to the syntactic node is first added the code The local variable of block is concentrated.
S1208-S1210:The local variable collection under the code block is obtained, global variable collection is obtained, obtains the syntactic node Corresponding all inspection rules, combine and are checked.
It is the schematic diagram of the recording method of the mistake binding submitter (programming personnel) of the embodiment of the present invention referring to Figure 13, Including:
S1301:All error results are checked to a source code file by detector, collector is issued and creates wrong right As each error object includes wrong source code file path, submitter, version number, wrong content and the line number of mistake, finally Generate a new Error Set.
S1302:The corresponding all error objects in the source code file path are obtained from error library, a Geju City is ultimately generated Error Set.
S1303:The wrong content of each error object in new Error Set is traveled through, if being focused to find out identical in old mistake Wrong content, then the mistake do not correct also, it is necessary to the error object in error library be updated, if can not find phase in old Error Set Same wrong content, then for a new mistake, it is necessary to be added in error library, the mistake of each error object in the old Error Set of traversal Content, if can not find identical wrong content in new Error Set, the mistake has been corrected, it is necessary to corresponding in deletion error storehouse Error object.
S1304:If necessary to increase mistake, directly increase the error object to error library, if necessary to update mistake, only The wrong line number in error library is updated, is led to that the wrong submitter keeps constant with version number, reaches binding submitter's Effect, if necessary to deletion error, directly deletes the error object from error library.
It is that the intelligence of the embodiment of the present invention sends the schematic diagram of the method notified referring to Figure 14, including:
S1401-S1402:After being finished to source code file inspection, trigger notice device is operated.
S1403:The source code file institute corresponding with current submitter that current check is obtained from error library is wrong right As.
S1404:The content of text messages of generation error, error message is sent to the submitter.
S1405-S1406:By the time interval of setting, trigger notice device is operated.
S1407:Institute is obtained from error library wrong.
S1408:The content of text messages of generation error, sends error message to correspondence submitter respectively.
The embodiment of the present invention additionally provides a kind of code check device, and the device can pass through monitoring unit 152, buffer 154th, detector 156, notifying device 158 and process controller 1510 realize its function.It should be noted that the embodiment of the present invention A kind of code check device can be used for performing a kind of code check method that the embodiment of the present invention is provided, the embodiment of the present invention A kind of a kind of code check method code check device that can also be provided by the embodiment of the present invention perform.Figure 15 is A kind of schematic diagram of code check device according to embodiments of the present invention.As shown in figure 15, Figure 15 is according to embodiments of the present invention A kind of code check device structure chart.A kind of code check device includes:
Whether the source code file in monitoring unit 152, the condition monitoring source code file storehouse being pre-configured with for basis There is renewal, wherein, source code file is the source code that dynamic programming language is write;
Buffer 154, for generating the corresponding cache contents of the source code file according to the source code file of renewal, goes forward side by side Row caching, wherein, cache contents are used for the error message for checking corresponding source code file, and cache contents are stored in caching storehouse;
Detector 156, for checking cache contents;
Notifying device 158, in the case where checking error message, by error message notification to programming personnel;
Process controller 1510, for being modified in programming personnel in response to error message to corresponding source code file Afterwards, triggering monitoring step is to checking step, if it is checked that error message reinforms programming personnel, until not occurring mistake.
Notifying device provides a kind of intelligence and sends the method notified, includes the mode for notifying to notify with timing immediately, immediately The method of notice is updated when source code file storehouse occurs to submit, and the current source code file that updates is checked, if checking Make mistake, the error message notifies the submitter immediately, the method that timing is notified is to pass through the time interval set, triggering Institute is obtained from error library wrong, corresponding submitter is notified respectively, until mistake just can expiry notification after being corrected.
Said apparatus also includes collector, and collector is remembered to each error result generation error object checked Record, and the generation method of these error objects is by source code file path, submitter, version number, wrong content and mistake Line number is combined, and the recording method of each error object is each error result life checked a source code file Into error object, and these error objects are as new Error Set, then it is index to pass through the path of the source code file, to collector Search, find out the error object in all paths as Geju City Error Set, each error object in new Error Set is traveled through, with right The wrong content of elephant is index, is searched in old Error Set, if can not find, the error object is added to collector, if Find, then the wrong line number of old error object is updated to using the wrong line number of new error object, be led to the wrong submitter Keep constant with version number, reach the effect of binding submitter, then travel through each error object in Error Set, with the mistake of object Content is index by mistake, is searched in new Error Set, if can not find, illustrates that the mistake has been corrected, then being deleted from collector should Error object.Error object collected by collector is supplied with notifying device and sends what is notified to submitter.
In one alternatively embodiment, buffer includes:Generation module, for generating the source code file pair updated The syntax tree answered, wherein, cache contents include syntax tree;Detector includes:Module is checked, for checking syntax tree.
In one alternatively embodiment, cache contents also include at least one of:Path, the source of source code file The check code of code file, source code file.
In one alternatively embodiment, in the case that cache contents include the path of source code file, buffer 104 Including:Acquisition module, for obtaining the path in source code file storehouse, wherein, there is the corresponding source code text in path under path Part and the corresponding check code of source code file;Add module, for generating corresponding grammer according to the source code file under path Set and syntax tree is added in caching storehouse;Synchronization module, for making the corresponding path of syntax tree in caching storehouse and institute active The path of the corresponding source code file of syntax tree in code file storehouse is consistent.
In one alternatively embodiment, add module includes:First searches submodule, for searching in caching storehouse With the presence or absence of the path in source code file storehouse;First addition submodule, for if there is no the road in source code file storehouse Footpath, then generate corresponding syntax tree according to the source code file under path and syntax tree be added in caching storehouse.
In one alternatively embodiment, add module also includes:Second searches submodule, for searching in caching storehouse In whether there is source code file storehouse in path;Judging submodule, for if there is the path in source code file storehouse, then Judge whether the check code cached in storehouse under path is consistent with the check code under path in source code file storehouse;Second addition submodule Block, for if it is inconsistent, generating corresponding syntax tree according to the source code file under path again and adding syntax tree Into caching storehouse.
In one alternatively embodiment, buffer 104 includes:Searching modul, for searching in source code file storehouse In with the presence or absence of caching storehouse in path, wherein, have the corresponding source code file in path under path corresponding with source code file Check code;Removing module, for if it does not exist, then deleting the source code file under path and the corresponding school of source code file Test code.
In one alternatively embodiment, check that module includes:Submodule is searched, for traveling through syntax tree, wherein, language Method tree includes at least one node, and node is a grammar object for being packaged into multiple back end of a grammer;Obtain Submodule, the corresponding inspection rule of the node is obtained for the corresponding syntactic type of node in syntax tree, wherein, it is each The N number of inspection rule being pre-configured with of individual syntactic type correspondence, N is the integer more than or equal to 0;First checks submodule, for root Syntax tree is checked according to the inspection rule got.
In one alternatively embodiment, the first inspection submodule includes:Second checks submodule, in syntactic class The inspection rule of type configuration include it is multiple in the case of, check regular corresponding orders and/or priority to grammer according to multiple Tree is checked.
The embodiments of the invention provide a kind of storage medium, storage medium includes the program of storage, wherein, in program operation When control storage medium where equipment perform the above method.
The embodiments of the invention provide a kind of processor, processor includes the program of processing, wherein, run time control in program Equipment performs the above method where processor processed.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
, can be by another way in several embodiments provided herein, it should be understood that disclosed device Realize.For example, device embodiment described above is only schematical, such as the division of described unit is only one kind Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer Equipment (can be personal computer, mobile terminal, server or network equipment etc.) performs side described in each embodiment of the invention The all or part of step of method.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various to be stored The medium of program code.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (13)

1. a kind of code check method, it is characterised in that including:
Monitoring step:Whether the source code file in the condition monitoring source code file storehouse being pre-configured with has renewal, wherein, The source code file is the source code that dynamic programming language is write;
Caching step:The corresponding cache contents of the source code file are generated according to the source code file of renewal, and cached, its In, the cache contents are used for the error message for checking corresponding source code file, and the cache contents are stored in caching storehouse;
Checking step:The cache contents are checked;
Notifying process:In the case where checking error message, by the error message notification to programming personnel;
After the programming personnel modifies in response to the corresponding source code file of the error message, monitoring step is triggered To checking step, if it is checked that error message reinforms the programming personnel, until not occurring mistake.
2. according to the method described in claim 1, it is characterised in that
Generating the corresponding cache contents of source code file of the renewal includes:The source code file for generating the renewal is corresponding Syntax tree, wherein, the cache contents include the syntax tree;
Carrying out inspection to the cache contents includes:The syntax tree is checked.
3. method according to claim 2, it is characterised in that the cache contents also include at least one of:It is described The path of source code file, the check code of the source code file, the source code file.
4. method according to claim 3, it is characterised in that the cache contents include the path of the source code file In the case of, generating the corresponding cache contents of the source code file according to the source code file of renewal includes:
The path in the source code file storehouse is obtained, wherein, there is the corresponding source code file in the path under the path Check code corresponding with the source code file;
Corresponding syntax tree is generated according to the source code file under the path and the syntax tree is added to caching storehouse In;
Make the source code corresponding with the syntax tree in all source code file storehouses of the corresponding path of syntax tree in the caching storehouse The path of file is consistent.
5. method according to claim 4, it is characterised in that phase is generated according to the source code file under the path The syntax tree is simultaneously added to caching storehouse and included by the syntax tree answered:
Search the path that whether there is in the caching storehouse in the source code file storehouse;
If there is no the path in the source code file storehouse, then phase is generated according to the source code file under the path The syntax tree is simultaneously added in the caching storehouse by the syntax tree answered.
6. method according to claim 4, it is characterised in that phase is generated according to the source code file under the path The syntax tree the answered and syntax tree is added in caching storehouse also includes:
Search the path that whether there is in the caching storehouse in the source code file storehouse;
If there is the path in the source code file storehouse, then the check code under path and institute described in the caching storehouse are judged Whether the check code stated described in source code file storehouse under path is consistent;
If it is inconsistent, generating corresponding syntax tree and by institute's predicate according to the source code file under the path again Method tree is added in the caching storehouse.
7. method according to claim 3, it is characterised in that the source code file is generated according to the source code file of renewal Corresponding cache contents include:
The path that whether there is in the source code file storehouse in the caching storehouse is searched, wherein, deposited under the path There are the corresponding source code file in the path and the corresponding check code of the source code file;
If it does not exist, then deleting the source code file and the corresponding check code of the source code file under the path.
8. method according to claim 2, it is characterised in that carrying out inspection to the syntax tree includes:
The syntax tree is traveled through, wherein, the syntax tree includes at least one node, and the node is by the multiple of grammer The grammar object that back end is packaged into;
The corresponding syntactic type of node in the syntax tree obtains the corresponding inspection rule of the node, wherein, each The N number of inspection rule being pre-configured with of syntactic type correspondence, the N is the integer more than or equal to 0;
Inspection rule according to getting is checked the syntax tree.
9. method according to claim 8, it is characterised in that include multiple feelings for the inspection rule that syntactic type is configured Under condition, carrying out inspection to the syntax tree according to the inspection rule got includes:
Check that regular corresponding order and/or priority are checked the syntax tree according to the multiple.
10. a kind of code check device, it is characterised in that including:
Whether monitoring unit, have renewal for the source code file in the condition monitoring source code file storehouse being pre-configured with, Wherein, the source code file is the source code that dynamic programming language is write;
Buffer, for generating the corresponding cache contents of the source code file according to the source code file of renewal, and is cached, Wherein, the cache contents are used for the error message for checking corresponding source code file, and the cache contents are stored in caching storehouse;
Detector, for checking the cache contents;
Notifying device, in the case where checking error message, by the error message notification to programming personnel;
Process controller, for being modified in the programming personnel in response to the error message to corresponding source code file Afterwards, triggering monitoring step is to checking step, if it is checked that error message reinforms the programming personnel, until not occurring mistake By mistake.
11. device according to claim 10, it is characterised in that
The buffer includes:Generation module, the corresponding syntax tree of source code file for generating the renewal, wherein, institute Stating cache contents includes the syntax tree;
The detector includes:Module is checked, for checking the syntax tree.
12. a kind of storage medium, it is characterised in that program is preserved on the storage medium, is performed when described program is run Method any one of claim 1 to 9.
13. a kind of processor, it is characterised in that side when described program is run any one of perform claim requirement 1 to 9 Method.
CN201710329909.5A 2017-05-11 2017-05-11 Code checking method, device, storage medium and processor Active CN107168872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710329909.5A CN107168872B (en) 2017-05-11 2017-05-11 Code checking method, device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710329909.5A CN107168872B (en) 2017-05-11 2017-05-11 Code checking method, device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN107168872A true CN107168872A (en) 2017-09-15
CN107168872B CN107168872B (en) 2020-09-11

Family

ID=59815946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710329909.5A Active CN107168872B (en) 2017-05-11 2017-05-11 Code checking method, device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN107168872B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144517A (en) * 2018-08-01 2019-01-04 北京京东金融科技控股有限公司 A kind of method and apparatus checking coding
CN109213490A (en) * 2018-09-05 2019-01-15 深圳市腾讯网络信息技术有限公司 A kind of program processing method, device and relevant device
CN109359028A (en) * 2018-08-22 2019-02-19 平安科技(深圳)有限公司 Code quality monitoring method, device, computer equipment and storage medium
CN109446493A (en) * 2018-10-17 2019-03-08 网易(杭州)网络有限公司 Data processing method, device, storage medium and electronic device
CN111240873A (en) * 2019-12-31 2020-06-05 广东趣炫网络股份有限公司 Code error record management method and device
CN111610999A (en) * 2020-05-26 2020-09-01 北京字节跳动网络技术有限公司 Checking method, checking device, computer equipment and storage medium
CN112540811A (en) * 2020-12-15 2021-03-23 平安科技(深圳)有限公司 Cache data detection method and device, computer equipment and storage medium
CN113536310A (en) * 2021-07-08 2021-10-22 浙江网商银行股份有限公司 Code file processing method, code file checking device and electronic equipment
CN113609004A (en) * 2021-07-17 2021-11-05 深圳开源互联网安全技术有限公司 Static code detection method and system
CN113672517A (en) * 2021-09-06 2021-11-19 网易(杭州)网络有限公司 Code checking method and device, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102219A (en) * 2007-07-30 2008-01-09 华为技术有限公司 Software update system and software update method
CN101261579A (en) * 2007-03-08 2008-09-10 青牛(北京)技术有限公司 Method for accomplishing VBScript language trans-platform uses
CN103309804A (en) * 2013-04-08 2013-09-18 中国电子科技集团公司第十研究所 Automatic code rule checking platform
CN104462983A (en) * 2013-09-22 2015-03-25 深圳市腾讯计算机系统有限公司 PHP source code processing method and system
US20160224453A1 (en) * 2015-01-30 2016-08-04 Lindedln Corporation Monitoring the quality of software systems
CN106155900A (en) * 2015-04-17 2016-11-23 腾讯科技(深圳)有限公司 A kind of code tester monitoring method, device and equipment
CN106502718A (en) * 2016-09-22 2017-03-15 珠海格力电器股份有限公司 The upgrade method of program and device, controller

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261579A (en) * 2007-03-08 2008-09-10 青牛(北京)技术有限公司 Method for accomplishing VBScript language trans-platform uses
CN101102219A (en) * 2007-07-30 2008-01-09 华为技术有限公司 Software update system and software update method
CN103309804A (en) * 2013-04-08 2013-09-18 中国电子科技集团公司第十研究所 Automatic code rule checking platform
CN104462983A (en) * 2013-09-22 2015-03-25 深圳市腾讯计算机系统有限公司 PHP source code processing method and system
US20160224453A1 (en) * 2015-01-30 2016-08-04 Lindedln Corporation Monitoring the quality of software systems
CN106155900A (en) * 2015-04-17 2016-11-23 腾讯科技(深圳)有限公司 A kind of code tester monitoring method, device and equipment
CN106502718A (en) * 2016-09-22 2017-03-15 珠海格力电器股份有限公司 The upgrade method of program and device, controller

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144517A (en) * 2018-08-01 2019-01-04 北京京东金融科技控股有限公司 A kind of method and apparatus checking coding
CN109359028A (en) * 2018-08-22 2019-02-19 平安科技(深圳)有限公司 Code quality monitoring method, device, computer equipment and storage medium
CN109359028B (en) * 2018-08-22 2024-05-03 平安科技(深圳)有限公司 Code quality monitoring method, device, computer equipment and storage medium
CN109213490A (en) * 2018-09-05 2019-01-15 深圳市腾讯网络信息技术有限公司 A kind of program processing method, device and relevant device
CN109446493A (en) * 2018-10-17 2019-03-08 网易(杭州)网络有限公司 Data processing method, device, storage medium and electronic device
CN111240873A (en) * 2019-12-31 2020-06-05 广东趣炫网络股份有限公司 Code error record management method and device
CN111610999A (en) * 2020-05-26 2020-09-01 北京字节跳动网络技术有限公司 Checking method, checking device, computer equipment and storage medium
CN112540811A (en) * 2020-12-15 2021-03-23 平安科技(深圳)有限公司 Cache data detection method and device, computer equipment and storage medium
CN113536310A (en) * 2021-07-08 2021-10-22 浙江网商银行股份有限公司 Code file processing method, code file checking device and electronic equipment
CN113609004A (en) * 2021-07-17 2021-11-05 深圳开源互联网安全技术有限公司 Static code detection method and system
CN113609004B (en) * 2021-07-17 2023-11-03 深圳开源互联网安全技术有限公司 Static code detection method and system
CN113672517A (en) * 2021-09-06 2021-11-19 网易(杭州)网络有限公司 Code checking method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN107168872B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN107168872A (en) Method, device, storage medium and the processor of code check
US8892504B2 (en) Method and system for reconciling meta-data in a data warehouse
CN106528129B (en) A kind of Web application interface generation system and method
CN103631596B (en) Business object data typing and the configuration device and collocation method for updating rule
CN102426519B (en) Linked data-based multiplexing method of business process execution language (BPEL) templates and services, and system thereof
JP2019505877A5 (en)
CN107800562B (en) A kind of method for configuring route and device of view file
CN106462575A (en) Design and implementation of clustered in-memory database
CN104407901B (en) The adding method and device of code
WO2014145088A1 (en) Apparatus, systems, and methods for batch and realtime data processing
CN103327080B (en) Create the method and device of Internet of Things control system
CN104699748B (en) It is a kind of to show the method and its system for being not fixed row report
CN114791846B (en) Method for realizing observability aiming at cloud-originated chaos engineering experiment
CN106202490A (en) A kind of SolrCloud configuration file amending method, Apparatus and system
CN106033388A (en) A test use case library management method and system
CN106777368A (en) Data base query language adaptation method and device, distributed data-storage system
CN107491558A (en) Metadata updates method and device
CN110515514A (en) A kind of data processing method, device and storage medium
CN113157904A (en) Sensitive word filtering method and system based on DFA algorithm
CN101917282B (en) Method, device and system for processing alarm shielding rules
CN110209985B (en) Method for updating DOM tree
EP2806355B1 (en) Synchronization and reconciliation through identification
CN106326411A (en) Configuration change method and device
US8312058B2 (en) Method of providing element dossiers that include elements from nonadjacent lifecycle phases
CN106911730A (en) A kind of cloud disk service device accesses moving method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant