CN112035710A - Code detection method, device, equipment and storage medium - Google Patents

Code detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN112035710A
CN112035710A CN202010738148.0A CN202010738148A CN112035710A CN 112035710 A CN112035710 A CN 112035710A CN 202010738148 A CN202010738148 A CN 202010738148A CN 112035710 A CN112035710 A CN 112035710A
Authority
CN
China
Prior art keywords
code
language
type
character string
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010738148.0A
Other languages
Chinese (zh)
Inventor
冯阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Youheng Network Technology Co Ltd
Original Assignee
Changsha Youheng Network Technology 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 Changsha Youheng Network Technology Co Ltd filed Critical Changsha Youheng Network Technology Co Ltd
Priority to CN202010738148.0A priority Critical patent/CN112035710A/en
Publication of CN112035710A publication Critical patent/CN112035710A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Machine Translation (AREA)

Abstract

The embodiment of the invention provides a code detection method, a code detection device, code detection equipment and a storage medium. The method comprises the following steps: converting code in a first language to code in a second language; detecting a first type of conversion error existing in the code of the second language through a preset detection plug-in; acquiring a plurality of character string characteristics which are set and used for reflecting the second type of conversion errors; a conversion error of a second type present in the code of the second language is detected based on the plurality of character string features. Various errors in the codes of the second language can be accurately detected by detecting the codes of the second language through the preset detection plug-in and the characteristics of various character strings, so that the codes of the second language are repaired based on the detection result, and the normal operation of the codes of the second language in the browser is ensured.

Description

Code detection method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a code detection method, apparatus, device, and storage medium.
Background
In the process of developing a project, a developer may write codes in languages such as ES6 and ES7, and since the development speed of a browser is much slower than the update speed of the languages, there may be a situation where the browser cannot support the codes, for example, a general browser can support codes written in the language ES 5. Therefore, it is necessary to convert the code of the non-ES 5 into ES5 code.
Currently, some technical means are adopted to convert codes of non-ES 5, but when the browser runs the converted codes, the problem of running failure still occurs.
Disclosure of Invention
The embodiment of the invention provides a code detection method, a device, equipment and a storage medium, which can detect the compatibility problem existing in a code.
In a first aspect, an embodiment of the present invention provides a code detection method, where the method includes:
converting code in a first language to code in a second language;
detecting a first type of conversion error existing in the code of the second language through a preset detection plug-in;
acquiring a plurality of character string characteristics which are set and used for reflecting a second type of conversion error;
detecting the second type of conversion error present in the code of the second language from the plurality of character string features.
In a second aspect, an embodiment of the present invention provides a code detection apparatus, including:
the conversion module is used for converting the codes of the first language into the codes of the second language;
the first detection module is used for detecting a first type of conversion error existing in the code of the second language through a preset detection plug-in;
the acquisition module is used for acquiring a plurality of set character string characteristics, and the plurality of character string characteristics are used for reflecting the second type of conversion errors;
a second detection module for detecting the second type of conversion error existing in the code of the second language according to the plurality of character string characteristics.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to implement at least the code detection method as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to implement at least the code detection method according to the first aspect.
In the embodiment of the invention, a developer converts a code written in a first language into a code in a second language supported by a browser through a language conversion tool, and in order to ensure that the converted code in the second language can be normally operated by the browser, the converted code in the second language needs to be detected so as to find out an error existing therein, so that the developer modifies the error.
Specifically, errors that may exist in code in the second language are classified herein into two types: a first type of conversion error and a second type of conversion error, wherein the second type of conversion error may be considered to be a conversion error other than the first type of conversion error. In order to find out errors in the codes of the second language, on one hand, whether the converted codes of the second language have conversion errors of the first type is detected through a preset detection plug-in, on the other hand, a plurality of character string characteristics reflecting the errors are obtained by summarizing some errors in the conventional conversion process in advance, so that when the converted codes of the second language include at least one character string characteristic of the character string characteristics, the conversion errors of the second type in the codes of the second language are explained. Various errors in the codes of the second language can be accurately detected by detecting the codes of the second language through the preset detection plug-in and the characteristics of various character strings, so that the codes of the second language are repaired based on the detection result, and the normal operation of the codes of the second language in the browser is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of a code detection method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a code detection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a code detection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device corresponding to the code detection apparatus provided in the embodiment shown in fig. 3.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
Before introducing the code detection method provided by the embodiment of the present invention, a scenario of application of the present solution is introduced, taking a browser as an example, a general scripting language for web page development is implemented based on an European Computer Manufacturers Association Script (ES) standard passed by the ECMA, and since the ES standard is continuously updated and a supported grammar is more convenient, more users select the latest ES standard to write the scripting language. Most browsers do not support the latest ES standard because the ES standard is updated too quickly. For example, most browsers support a scripting language running the ES5 standard, but most users select a latest ES standard scripting language such as ES6, so that the latest ES standard scripting language such as ES6 needs to be converted into the ES5 standard scripting language supported by most browsers, but in the process of converting codes of the ES6 standard into codes of the ES5 standard, errors that some codes are not correctly converted exist in the converted codes due to various reasons, and the browser runs the converted codes, so that the problem of operation failure due to various compatibility problems can occur.
The following describes an implementation of the code detection method provided herein with reference to some embodiments.
Fig. 1 is a flowchart of a code detection method according to an embodiment of the present invention, and as shown in fig. 1, the code detection method may include the following steps:
101. code in a first language is converted to code in a second language.
The code in the first language may be a code in a high-level programming language, which is convenient for a user (the user refers to a developer writing the code) to edit the code, and the code in the second language may be a code that can be recognized in an execution environment in which the code is to be executed. That is, the code in the first language is identical to the result of the code in the second language, but the syntax employed may be different. Specifically, the above conversion process may be understood as converting the code in the first language written in the development environment into the code in the second language supported by the browser, and due to the difference of the development environments or due to the diversity of the development languages, if the code in the first language of the development environment is directly run in the browser, due to the limitation of the syntax supported by the browser, the problem that the code in the first language is incompatible with the browser may be caused, and the incompatible problem may be expressed as: failure to recognize a portion of the grammar involved in the code of the first language or a portion of the new function browser's non-support results in a failure to run.
Therefore, it is necessary to convert the code in the first language into the code in the second language through a conversion tool, that is, convert the code in the first language into the code in the second language supported by the browser, and run the converted code in the second language in the browser, so as to ensure that the problem that the code in the first language is incompatible with the browser is solved under the condition that the running result is consistent.
For example, in web page development, as can be seen from the above, most browsers support a script language running the ES5 standard, but most users select to use the latest ES standard script language such as ES6, and in this case, the ES6 standard script language is incompatible with the browser. Therefore, the conversion tool can be adopted to convert the codes of the ES6 standard into the codes of the ES5 standard, and the same operation result is obtained under the condition of successful operation.
102. A conversion error of a first type present in code of a second language is detected by a preset detection plug-in.
Optionally, if the code of the second language is a code of a script language of the ES5 standard, the preset detection plug-in may be an open source tool including an ES-linet for detecting a syntax problem of the code of the second language.
Optionally, after the code in the first language is converted into the code in the second language, a syntax conversion of a part of the code in the first language may cause a syntax irregularity problem in a corresponding syntax in the code in the second language, that is, a syntax in the code in the first language is compliant with a specification, but a syntax in the code in the second language is irregular due to a constraint of factors including a conversion rule.
Further, problems of grammar irregularity including misspellings may occur inadvertently by a user.
Thus, the above-described first type of conversion error may be a problem of a code syntax irregularity of the converted second language and a problem of a syntax irregularity including a spelling error occurring inadvertently by a user.
The problem of grammar irregularity including spelling errors caused by the carelessness of the user is mostly the problem generated when the user writes the code of the first language, and optionally, before converting the code of the first language into the code of the second language, the method further comprises the following steps:
syntax errors present in the code of the first language are detected in order to correct the syntax errors.
Thereby reducing the above-mentioned first type of switching errors.
103. A plurality of character string characteristics that have been set are acquired, the plurality of character string characteristics being used to reflect the second type of conversion error.
Optionally, the plurality of character string features include character string features obtained by feature extraction of the following code contents included in the code of the first language:
and calling a third-party resource and self-defined grammar.
Specifically, before the code detection for the second language, the code of the second language may be run for multiple times, a second type conversion error occurring in each previous running process is stored, the second type conversion error includes a running error caused by that a part of grammar of the code application of the first language is not converted and a running error caused by that a part of grammar of the code application of the first language is converted into an incorrect grammar, a corresponding character string feature is obtained by performing feature extraction on the code corresponding to the conversion error of the second type, and the extracted character string feature is stored for detecting the code of the second language which is subsequently run.
In a possible embodiment, in a third party resource for writing the code of the first language, a grammar which cannot be recognized by the conversion tool may be newly added, and the user writes the code of the first language using the newly added grammar, so that in the process of converting the code of the first language into the code of the second language by the conversion tool, the newly added grammar cannot be converted due to the fact that the newly added grammar cannot be recognized. Further, in the process of running the code of the second language, an error is reported for the newly added grammar.
In yet another possible embodiment, the user adopts the customized grammar during writing the code of the first language, and correspondingly, during the process of converting the code of the first language into the code of the second language by the conversion tool, the customized grammar cannot be recognized, so that the customized grammar cannot be converted, and during the process of running the code of the second language, an error is reported for the customized grammar.
In yet another possible embodiment, a partial grammar of the code application in the first language is translated into a wrong grammar, resulting in a failure of the code in the second language to run.
Therefore, the plurality of character string characteristics comprise character string characteristics corresponding to the grammar of the codes of the first language which cannot be converted and character string characteristics corresponding to the grammar which is converted into errors in the codes of the second language.
104. A conversion error of a second type present in the code of the second language is detected based on the plurality of character string features.
If the character string features obtained by feature extraction of the codes of the second language include at least one character string feature of the plurality of character string features, the description shows that the codes of the second language have codes of the partial first language which are not converted successfully.
Specifically, traversing the code of the second language, detecting whether the code of the second language comprises at least one character string feature of the multiple character string features, and if the character string feature of the code of the second language comprises at least one character string feature of the multiple character string features, indicating that a second type of conversion error exists in the code of the second language.
In the embodiment of the invention, various errors in the codes of the second language can be accurately detected by detecting the first type of conversion errors of the codes of the second language by the plug-in and detecting the second type of conversion errors of the codes of the second language by the preset character string characteristics corresponding to the codes of the first language.
For a detected first type of conversion error and a detected second type of conversion error, fig. 2 is a flowchart of a code detection method provided in an embodiment of the present invention, and as shown in fig. 2, the code detection method may include the following steps:
201. code in a first language is converted to code in a second language.
202. A conversion error of a first type present in code of a second language is detected by a preset detection plug-in.
203. A plurality of character string characteristics that have been set are acquired, the plurality of character string characteristics being used to reflect the second type of conversion error.
204. A conversion error of a second type present in the code of the second language is detected based on the plurality of character string features.
205. And outputting corresponding prompt information when a first type conversion error or a second type conversion error is detected, so as to correct errors according to the prompt information, wherein the prompt information corresponds to the detected first type conversion error or the second type conversion error.
The prompt information comprises position information and corresponding error types corresponding to the first type of conversion errors or the second type of conversion errors.
Optionally, the outputting the corresponding prompt information may further be implemented as:
and outputting prompt information corresponding to the detected conversion errors of the first type or the second type after all the conversion errors are detected.
Optionally, the user returns corresponding feedback information according to the prompt information, and may input corresponding feedback information according to the prompt information when receiving a prompt information corresponding to a first type of conversion error or a second type of conversion error; correspondingly, when receiving all the prompt messages corresponding to the first type of conversion errors or the second type of conversion errors, the user can input corresponding feedback information according to the prompt messages.
The feedback information includes: modification information for correcting the conversion error corresponding to the prompt information or indication information indicating that the conversion error corresponding to the prompt information does not need to be modified.
206. And receiving feedback information input by a user according to the prompt information corresponding to the second type of conversion error, wherein the feedback information indicates that the second type of conversion error does not need to be modified.
207. Storing a target string feature corresponding to the second type of conversion error, the target string feature being included in the plurality of string features, the target string feature being for ignoring the target string feature when subsequently detecting the code in the second language.
Specifically, if the feedback information of the prompt information corresponding to a certain second type of conversion error is received and indicates that the second type of conversion error does not need to be modified, it indicates that the second type of conversion error does not cause the code operation failure of the second language, and further, the user saves the target character string feature corresponding to the second type of conversion error, and because the target character string feature is included in the multiple character string features, a special mark can be added to the target character string for distinguishing.
Furthermore, after the user modifies other conversion errors except the conversion error of the second type which does not need to be modified, the modified code of the second language is obtained.
In order to ensure the smooth operation of the modified code of the second language, the modified code of the second language needs to be detected for the second time, and when traversing the code of the second language and comparing with the multiple character string characteristics, target character string characteristics in the multiple character string characteristics are ignored, and only the target character string characteristics except the target character string characteristics in the multiple character string characteristics need to be compared.
In one particular embodiment, the plurality of string types includes: character string type a, character string type B, and character string type C, assuming that the code of the second language passes the detection of the preset detection plug-in, when the codes of the second language are detected according to the characteristics of the plurality of character strings, the extracted character string type corresponding to the second code comprises a character string type A and a character string type B, and outputting prompt information comprising code positions corresponding to the character string type A and the character string type B and error types corresponding to the character string type A and the character string type B respectively, modification information of a code corresponding to the character string type A is included in the feedback information input by the user according to the prompt information, and indication information indicating that no modification is required for the code corresponding to the character string type B, and, therefore, adding special mark to the character string type B, detecting the code of the second language again, the special identifier is used for prompting that the conversion error corresponding to the character string type B does not need to be reported in error.
Further, the modified code of the second language is obtained by modifying according to the modification information in the feedback information, secondary testing is carried out on the modified code of the second language, when the character string features of the code of the second language are compared with the multiple character string features, the character string features B in the multiple character string features are automatically ignored, and whether the modified code of the second language has a second type of conversion error is detected by comparing the character string features except for the other character string features in the character string features B in the multiple character string features, so that the detection time is saved.
In the embodiment of the invention, the target character string characteristic corresponding to the second type of conversion error which does not need to be modified is determined through the feedback information input by the user aiming at the output information, so that the target character string characteristic is ignored when the modified code of the second language is subjected to secondary detection subsequently, and the detection time is saved.
The code detection apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these code detection means can be constructed by configuring the steps taught in the present scheme using commercially available hardware components.
Fig. 3 is a schematic structural diagram of a code detection apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: the device comprises a conversion module 11, a first detection module 12, an acquisition module 13 and a second detection module 14.
A conversion module 11, configured to convert the code in the first language into the code in the second language.
A first detection module 12, configured to detect, through a preset detection plug-in, a first type of conversion error existing in the code of the second language.
An obtaining module 13, configured to obtain multiple character string characteristics that have been set, where the multiple character string characteristics are used to reflect the second type of conversion error.
A second detecting module 14, configured to detect a conversion error of the second type existing in the code of the second language according to the plurality of character string features.
Optionally, the code detection apparatus further includes:
and the prompt information output module is used for correcting errors according to the prompt information, and the prompt information corresponds to the detected conversion errors of the first type or the second type.
Optionally, the prompt information output module is specifically configured to: and outputting corresponding prompt information when each conversion error of the first type or the second type is detected.
Optionally, the code detection apparatus further includes:
and the receiving module is used for receiving feedback information input by a user according to prompt information corresponding to the second type of conversion error, wherein the feedback information indicates that the second type of conversion error does not need to be modified.
A storage module, configured to store a target string feature corresponding to the second type of conversion error, where the target string feature is included in the multiple string features, and the target string feature is used to ignore the target string feature when detecting the code of the second language subsequently.
Optionally, the code detection apparatus further includes:
a third detection module for detecting syntax errors present in the code of the first language in order to correct the syntax errors.
Optionally, the plurality of character string features include character string features obtained by feature extraction of the following code contents included in the code of the first language:
and calling a third-party resource and self-defined grammar.
The apparatus shown in fig. 3 may perform the code detection method provided in the embodiments shown in fig. 1 to fig. 2, and the detailed execution process and technical effect are described in the embodiments, which are not described herein again.
In one possible design, the structure of the code detection apparatus shown in fig. 3 may be implemented as an electronic device, such as an electronic device integrated with a code detection service. As shown in fig. 4, the electronic device may include: a processor 21, a memory 22, and a communication interface 23. Wherein the memory 22 has stored thereon executable code which, when executed by the processor 21, makes the processor 21 at least implement the code detection method as provided in the aforementioned embodiments shown in fig. 1 to 2.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to implement at least the code detection method provided in the foregoing embodiments of fig. 1 to 2.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method of code detection, the method comprising:
converting code in a first language to code in a second language;
detecting a first type of conversion error existing in the code of the second language through a preset detection plug-in;
acquiring a plurality of character string characteristics which are set and used for reflecting a second type of conversion error;
detecting the second type of conversion error present in the code of the second language from the plurality of character string features.
2. The method of claim 1, further comprising:
outputting prompt information to correct errors according to the prompt information, wherein the prompt information corresponds to the detected conversion errors of the first type or the second type.
3. The method of claim 2, wherein outputting the prompt message comprises:
and outputting corresponding prompt information when each conversion error of the first type or the second type is detected.
4. The method of claim 2, further comprising:
receiving feedback information input by a user according to prompt information corresponding to the second type of conversion error, wherein the feedback information indicates that the second type of conversion error does not need to be modified;
storing a target string feature corresponding to the second type of conversion error, the target string feature being included in the plurality of string features, the target string feature being used to ignore the target string feature when subsequently detecting code in the second language.
5. The method of claim 1, wherein prior to converting the code in the first language to code in the second language, further comprising:
detecting a syntax error present in the code of the first language in order to correct the syntax error.
6. The method according to claim 1, wherein the plurality of character string features include character string features obtained by feature extraction of the following code contents included in the code of the first language:
and calling a third-party resource and self-defined grammar.
7. A code detection apparatus, comprising:
the conversion module is used for converting the codes of the first language into the codes of the second language;
the first detection module is used for detecting a first type of conversion error existing in the code of the second language through a preset detection plug-in;
the acquisition module is used for acquiring a plurality of set character string characteristics, and the plurality of character string characteristics are used for reflecting the second type of conversion errors;
a second detection module for detecting the second type of conversion error existing in the code of the second language according to the plurality of character string characteristics.
8. An electronic device, comprising: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the code detection method of any one of claims 1 to 6.
9. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the code detection method of any one of claims 1 to 6.
CN202010738148.0A 2020-07-28 2020-07-28 Code detection method, device, equipment and storage medium Pending CN112035710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010738148.0A CN112035710A (en) 2020-07-28 2020-07-28 Code detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010738148.0A CN112035710A (en) 2020-07-28 2020-07-28 Code detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112035710A true CN112035710A (en) 2020-12-04

Family

ID=73583350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010738148.0A Pending CN112035710A (en) 2020-07-28 2020-07-28 Code detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112035710A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768643A (en) * 2012-06-27 2012-11-07 河海大学常州校区 Method for testing correctness of JavaScript function by using multiple function contracts
CN102830975A (en) * 2012-08-15 2012-12-19 深圳市翌日科技有限公司 Method and device for code conversion from assembly language to high-level language
CN106528072A (en) * 2015-09-15 2017-03-22 阿里巴巴集团控股有限公司 JavaScript code translation method and apparatus
CN106650453A (en) * 2016-12-30 2017-05-10 北京启明星辰信息安全技术有限公司 Detection method and apparatus
CN109271168A (en) * 2018-08-09 2019-01-25 上海鲸鱼机器人科技有限公司 A kind of code conversion method, device and equipment, storage medium
CN110286912A (en) * 2019-07-03 2019-09-27 广东三维家信息科技有限公司 Code detection method, device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768643A (en) * 2012-06-27 2012-11-07 河海大学常州校区 Method for testing correctness of JavaScript function by using multiple function contracts
CN102830975A (en) * 2012-08-15 2012-12-19 深圳市翌日科技有限公司 Method and device for code conversion from assembly language to high-level language
CN106528072A (en) * 2015-09-15 2017-03-22 阿里巴巴集团控股有限公司 JavaScript code translation method and apparatus
CN106650453A (en) * 2016-12-30 2017-05-10 北京启明星辰信息安全技术有限公司 Detection method and apparatus
CN109271168A (en) * 2018-08-09 2019-01-25 上海鲸鱼机器人科技有限公司 A kind of code conversion method, device and equipment, storage medium
CN110286912A (en) * 2019-07-03 2019-09-27 广东三维家信息科技有限公司 Code detection method, device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112036162B (en) Text error correction adaptation method and device, electronic equipment and storage medium
US8516442B2 (en) Graphical user interface metadata evolution tool
US9201757B2 (en) Offline type checking in programming languages
US20130014093A1 (en) Code inspection executing system for performing a code inspection of abap source codes
US9311077B2 (en) Identification of code changes using language syntax and changeset data
US20160162385A1 (en) Correlation of violating change sets in regression testing of computer software
US20050137844A1 (en) Method for generating a language-independent regression test script
CN106406918B (en) Automatic source code merging method and automatic source code merging device
US20140173552A1 (en) Syntax language generator for compiler validation
CN112241370B (en) API interface class checking method, system and device
US20070033579A1 (en) System and method for searching for multiple types of errors in file following translation into a new natural language
US9921857B1 (en) Compiler extension for correcting error messages
CN110865829A (en) Database upgrading method, system, device and storage medium
CN112035710A (en) Code detection method, device, equipment and storage medium
CN110888641B (en) Script automatic generation method and device, server and storage medium
CN112286532A (en) Method and system for realizing front-end code formatting based on ESLint and Prettier
CN115794057A (en) Command line function code generation method, device and computer readable storage medium
US20180075136A1 (en) Method and associated processor for adaptive linkify
CN112925561B (en) Software development method, device, computer equipment and storage medium
CN111796832B (en) Hot patch file generation method, device, equipment and storage medium
CN113672491B (en) Method for detecting legality of SQL statement, storage medium and terminal equipment
CN110245333B (en) Font type detection method and device, electronic equipment and storage medium
JP2018084939A (en) Correction support program, correction support method, correction support device, and compiler
CN114116471A (en) Automatic code scanning method, system, electronic equipment and storage medium
CN112015376A (en) Method and device for generating Dockerfile

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201204

RJ01 Rejection of invention patent application after publication