CN109308253A - A kind of code detection method and device - Google Patents
A kind of code detection method and device Download PDFInfo
- Publication number
- CN109308253A CN109308253A CN201710626452.4A CN201710626452A CN109308253A CN 109308253 A CN109308253 A CN 109308253A CN 201710626452 A CN201710626452 A CN 201710626452A CN 109308253 A CN109308253 A CN 109308253A
- Authority
- CN
- China
- Prior art keywords
- code
- target
- code block
- detection device
- block
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3604—Software analysis for verifying properties of programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
Embodiments herein provides a kind of code detection method and device, is related to field of communication technology, can reduce because of the conflict phenomenon between the primary code upgrading primary code caused and spreading code, reduces spreading code to the destructiveness of primary code.This method comprises: detection device obtains target primary code and target spreading code, the target spreading code are obtained based on the target primary code;The detection device is divided into N number of continuous code block, N >=1 by comparing the target primary code and the target spreading code, by the target spreading code;The detection device assesses at least one code block in N number of code block, obtains the assessment result of the target spreading code, which is used to indicate the probability that the target spreading code clashes phenomenon;The detection device shows the assessment result.
Description
Technical field
The invention relates to field of communication technology more particularly to a kind of code detection method and devices.
Background technique
Currently, the extension of oneself is developed in many developer's selections in the primary code of primary operating system (such as Android)
Operating system, for example, the MIUI operating system that millet is developed based on the primary code of Android, Protozoic of the Huawei based on Android
EMUI (Emotion User Interface) operating system etc. that code is developed.The code of these extended operation systems can be described as
Spreading code, spreading code are usually to obtain after carrying out some modifications to primary code on the basis of primary code.
For example, as shown in Figure 1, developer based on the primary code 11 in Android version 3 .0, will be in the primary code 11
First code section 101 be revised as second code section 102, the spreading code 12 of the operating system that is expanded A.And it is based on Protozoic
The Android version 3 .0 of code 11 can irregularly upgrade, then, if above-mentioned first code during upgrading Android edition 4 .0
Section 101 is modified to third code segment 103, then the primary code 11 and spreading code 12 after upgrading are in third code segment 103
There is conflict phenomenon in position, at this point, extended operation system A is likely to that the Android edition 4 .0 after upgrading can not be compatible with.It needs to develop
Personnel carry out the Android edition 4 .0 after the extensive works such as code recombination, function remodeling support upgrading to spreading code 12.
Summary of the invention
Embodiments herein provides a kind of code detection method and device, can reduce and cause because of primary code upgrading
Conflict phenomenon between primary code and spreading code reduces spreading code to the destructiveness of primary code.
In order to achieve the above objectives, embodiments herein adopts the following technical scheme that
In a first aspect, embodiments herein provides a kind of code detection method, comprising: it is primary that detection device obtains target
Code and target spreading code, the target spreading code are obtained based on the target primary code;In turn, detection device can lead to
It crosses and compares the target primary code and the target spreading code, which is divided into N number of continuous code block, N
≥1;So, detection device can assess at least one code block in N number of code block, to obtain target extension
The assessment result of code, the assessment result indicate the probability that the target spreading code clashes phenomenon;In this way, detection device
After showing the assessment result, the intuitive clearly clear current goal spreading code of developer can be made to target primary code
Destructiveness get over, so as to developer accurately to be easy to happen in target primary code conflict place be accurately positioned, after reduction
Conflict phenomenon between continuous primary code and spreading code.
In a kind of possible design method, which shows the assessment result in display interface, comprising: the inspection
Measurement equipment shows N number of code block using different color blocks in display interface, wherein the color of each code block is used to indicate this
The code block type of code block, the size of each color lump are used to indicate the size of the code block, the code of different code block type
The probability that block clashes phenomenon is different, so which image shows in target spreading code to user and be partially easy to happen
Conflict phenomenon, and the severity etc. of phenomenon is clashed, facilitate user to optimize target spreading code.
In a kind of possible design method, after the detection device shows the assessment result in display interface, also
It include: when detecting that user triggers the color lump in N number of code block where first generation code block, detection device display assessment should
Assessment details when first generation code block make user understand the code block in detail and the risk to conflict occur.
In a kind of possible design method, since the code block of different code block type is to the destructiveness one of primary code
As be different, therefore, detection device assesses at least one code block in N number of code block, obtain the target expansion
Open up the assessment result of code, comprising: each code block for this at least one N number of code block, the detection device is according to this
The code block type of code block gives a mark to the code block;The detection device is by the marking of obtained at least one code block
Assessment result of the information as the target spreading code.
In a kind of possible design method, in addition to the code block type of code block, each code in target spreading code
The size of block and the sum of code block also will affect the destructive size to target primary code, therefore, detection device according to
The code block type of the code block gives a mark to the code block, comprising: the detection device according to the code block code block class
The size of type and the code block gives a mark to the code block.
In a kind of possible design method, which extends generation by comparing the target primary code and the target
Code, is divided into N number of continuous code block for the target spreading code, comprising: the detection device is by comparing the target Protozoic
Code and the target spreading code, using code paragraph consecutive identical with the target primary code in the target spreading code as one
A code block, and using in the target spreading code from the continuous different code paragraph of the target primary code as a code
Block obtains N number of continuous code block.
In a kind of possible design method, detection device obtains target primary code and target spreading code, comprising: should
Detection device obtains the acquisition path of user's input;The detection device according to the acquisition path, acquire the target primary code and
The target spreading code.
In a kind of possible design method, after the detection device shows the assessment result, further includes: the detection is set
The standby modification strategy shown in display interface to the target spreading code;The triggering of the modification strategy is grasped in response to user
Make, which executes the modification strategy.Wherein, which includes: the code block type of transcode block (i.e. by mesh
The biggish code block of risk is clashed in mark spreading code, is converted to the code block for clashing the lesser type of risk),
And/or merge at least two code blocks in the target spreading code (so that the sum of the code block of target spreading code is got over
Less, the size of code block is bigger, to reduce target spreading code to the destructiveness of target primary code).
In a kind of possible design method, the detection device at least one code block in N number of code block into
Row assessment, after obtaining the assessment result of the target spreading code, further includes: when the assessment result does not meet preset storage item
When part, which forbids the target spreading code from the code library operation in exploitation environmental input production environment.Such one
Come, the code quality for the spreading code that can be run in stringent control investment code library is effectively avoided to primary code destructiveness
Biggish spreading code comes into operation, to reduce because of rushing between the primary code upgrading primary code caused and spreading code
Emergence as.
Second aspect, embodiments herein provide a kind of detection device, comprising: acquiring unit, for obtaining target original
Raw code and target spreading code, the target spreading code are obtained based on the target primary code;Division unit, for leading to
It crosses and compares the target primary code and the target spreading code, which is divided into N number of continuous code block, N
≥1;Assessment unit obtains the target spreading code for assessing at least one code block in N number of code block
Assessment result, the assessment result are used to indicate the probability that the target spreading code clashes phenomenon;Display unit, for showing
The assessment result.
In a kind of possible design method, which is specifically used for showing in display interface using different color blocks
Show N number of code block, wherein the color of each code block is used to indicate the code block type of the code block.
In a kind of possible design method, which is also used to detect that user triggers in N number of code block
When color lump where first generation code block, the assessment details when first generation code block are assessed in display.
In a kind of possible design method, the assessment unit, specifically for for this at least one N number of code block
Each code block gives a mark to the code block according to the code block type of the code block;At least one code that will be obtained
Assessment result of the scoring information of block as the target spreading code
In a kind of possible design method, the assessment unit, specifically for according to the code block code block type and
The size of the code block gives a mark to the code block
In a kind of possible design method, which is specifically used for by comparing the target primary code and is somebody's turn to do
Target spreading code, using code paragraph consecutive identical with the target primary code in the target spreading code as a code
Block, and, from the continuous different code paragraph of the target primary code as a code block, N will be obtained in the target spreading code
A continuous code block.
In a kind of possible design method, the acquiring unit, specifically for obtaining the acquisition path of user's input;According to
The acquisition path acquires the target primary code and the target spreading code.
In a kind of possible design method, which is also used to modification of the standby display to the target spreading code
Strategy;The detection device further includes execution unit, for the trigger action in response to user to the modification strategy, executes the modification
Strategy, the modification strategy include: the code block type of transcode block, and/or, merge at least two in the target spreading code
A code block.
In a kind of possible design method, execution unit is also used to not meet preset storage item when the assessment result
When part, forbid the target spreading code from the code library operation in exploitation environmental input production environment.
The third aspect, embodiments herein provide a kind of detection device, including the processor connected by bus, storage
Device, input equipment and output equipment, wherein the processor is used for: obtaining target primary code and target spreading code, should
Target spreading code is obtained based on the target primary code;Generation is extended by comparing the target primary code and the target
Code, is divided into N number of continuous code block, N >=1 for the target spreading code;To at least one code block in N number of code block
It is assessed, obtains the assessment result of the target spreading code, which is used to indicate the target spreading code and rushes
Burst the probability of elephant;The output equipment, is used for: showing the assessment result.
In a kind of possible design method, which is specifically used for: being shown in display interface using different color blocks
Show N number of code block, wherein the color of each code block is used to indicate the code block type of the code block.
In a kind of possible design method, which is used for: detection user triggers first in N number of code block
Color lump where code block;The output equipment, is also used to: the assessment details when first generation code block are assessed in display.
In a kind of possible design method, which is specifically used for: for each of at least one code block
Code block gives a mark to the code block according to the code block type of the code block;At least one the N number of code block that will be obtained
Assessment result of the scoring information as the target spreading code.
In a kind of possible design method, which is specifically used for: according to the code block type of the code block and this
The size of code block gives a mark to the code block.
In a kind of possible design method, which is specifically used for: by comparing the target primary code and the mesh
Spreading code is marked, using code paragraph consecutive identical with the target primary code in the target spreading code as a code
Block, and, from the continuous different code paragraph of the target primary code as a code block, N will be obtained in the target spreading code
A continuous code block.
In a kind of possible design method, which is also used to: obtaining the acquisition path of user's input;At this
Device is managed, is also used to: according to the acquisition path, acquiring the target primary code and the target spreading code.
In a kind of possible design method, which is also used to: display extends the target in display interface
The modification strategy of code;The input equipment, is also used to: trigger action of the detection user to the modification strategy;The processor, is also used
In: execute the modification strategy.
In a kind of possible design method, which includes: the code block type of transcode block, and/or, it closes
And at least two code blocks in the target spreading code.
In a kind of possible design method, which is also used to: when the assessment result does not meet preset storage item
When part, forbid the target spreading code from the code library operation in exploitation environmental input production environment.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer readable storage medium
In be stored with instruction, when the instruction is run on any of the above-described detection device so that detection device execute any of the above-described
Code detection method.
5th aspect, the embodiment of the present application provides a kind of computer program product comprising instruction, when it is any of the above-described
When being run on item detection device, so that detection device executes any of the above-described code detection method.
In embodiments herein, the name of above-mentioned detection device does not constitute restriction to equipment itself, in practical implementations,
These equipment can occur with other titles.As long as the function of each equipment is similar with embodiments herein, that is, belong to this Shen
It please be within the scope of claim and its equivalent technologies.
In addition, second aspect technical effect brought by any design method into the 5th aspect can be found in above-mentioned first
Technical effect brought by different designs method in aspect, details are not described herein again.
Detailed description of the invention
Fig. 1 is the schematic diagram of a scenario that primary code and spreading code clash in the prior art;
Fig. 2 is a kind of flow diagram of code detection method provided by the embodiments of the present application;
Fig. 3 is a kind of schematic diagram of a scenario one of code detection method provided by the embodiments of the present application;
Fig. 4 is a kind of schematic diagram of a scenario two of code detection method provided by the embodiments of the present application;
Fig. 5 is a kind of schematic diagram of a scenario three of code detection method provided by the embodiments of the present application;
Fig. 6 is a kind of schematic diagram of a scenario four of code detection method provided by the embodiments of the present application;
Fig. 7 is a kind of schematic diagram of a scenario five of code detection method provided by the embodiments of the present application;
Fig. 8 is a kind of schematic diagram of a scenario six of code detection method provided by the embodiments of the present application;
Fig. 9 is a kind of schematic diagram of a scenario seven of code detection method provided by the embodiments of the present application;
Figure 10 is a kind of schematic diagram of a scenario eight of code detection method provided by the embodiments of the present application;
Figure 11 is a kind of schematic diagram of a scenario nine of code detection method provided by the embodiments of the present application;
Figure 12 is a kind of schematic diagram of a scenario ten of code detection method provided by the embodiments of the present application;
Figure 13 is a kind of schematic diagram of a scenario 11 of code detection method provided by the embodiments of the present application;
Figure 14 is a kind of schematic diagram of a scenario 12 of code detection method provided by the embodiments of the present application;
Figure 15 is a kind of schematic diagram of a scenario 13 of code detection method provided by the embodiments of the present application;
Figure 16 is a kind of schematic diagram of a scenario 14 of code detection method provided by the embodiments of the present application;
Figure 17 is a kind of structural schematic diagram one of detection device provided by the embodiments of the present application;
Figure 18 is a kind of structural schematic diagram two of detection device provided by the embodiments of the present application.
Specific embodiment
Hereinafter, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include one or more of the features.In the description of the embodiment of the present application, unless otherwise indicated, " multiples' " contains
Justice is two or more.
A kind of code detection method provided by the embodiments of the present application is illustrated in order to remove, and will will appear in embodiment first
Some titles explain.
Primary code refers to the primary operating system (for example, Android, IOS etc.) of some primary platform provider publications
Initial code, for example, the code of Android version 3 .0, code of Android edition 4 .0 etc., these codes are typically no to pass through third
Square developer's modification.
Spreading code refers to third party developer, for example, original equipment manufacturer (Original Equipment
Manufacturer, OEM) or application software developer, in order to realize some specific functions and business and in primary code
On the basis of, the generation to the extended operation system (for example, MIUI etc. of the EMUI of Huawei, millet) obtained after primary code modification
Code.
Wherein, the modification of primary code can specifically include and increases new code field in primary code, deletes original
Certain fields etc. in certain fields or modification primary code in raw code, the embodiment of the present application does not make any limit to this
System.
Conflict phenomenon, after referring to spreading code upgrading, (spreading code is based on the primary code before upgrading to spreading code
Obtain) there is the phenomenon that difference in the code of same modifying point with the primary code after upgrading.
Conflict phenomenon will increase the operation risk of spreading code, primary after causing spreading code possibly can not support upgrading
Some new features of code, or even there is the problems such as spreading code is unable to operate normally in the primary code after upgrading.At this point,
Developer needs to spend a large amount of manpower to carry out the work such as code recombination, function remodeling, and not only waste of manpower also will affect
The system stability of entire extended operation system.
In this regard, embodiments herein provides a kind of code detection method, as shown in Fig. 2, this method comprises:
201, detection device obtains target primary code and target spreading code, which is based on the target
What primary code obtained.
Wherein, position of the above-mentioned target primary code in entire primary code can exist with above-mentioned target spreading code
Position in entire spreading code is identical, for example, the 1-20 row that target primary code is page 3, is based on the target primary code
The target spreading code developed also is the 1-20 row of page 3.
Alternatively, above-mentioned target primary code and target spreading code may also mean that realize said function one section of code or
Function, for example, target primary code is to realize the primary code of unlocked by fingerprint function in Android version 3 .0, and target extends generation
Code is the spreading code that unlocked by fingerprint function is realized in the EMUI based on Android version 3 .0.
Illustratively, the code detection method provided in the embodiment of the present application can be fabricated to an application software, this
Sample, detection device can complete the code detection method of step 201-206 by running the application software.
For example, when user is when starting code detection function (for example, the above-mentioned application software that brings into operation), as shown in figure 3,
Detection device can show a set interface 300, and user (for example, developer of spreading code) is in the set interface 300
In can input the acquisition path 301 of target primary code and target spreading code for needing to extract.
Wherein, which can be a local path (for example, file A in detection device D disk),
Can be network path (for example, a URL link address) etc. can arbitrarily grab the path of code ontology, the application
Embodiment is not intended to be limited in any this.For example, detection device can grab user by the address git and refer to for Linux system
Fixed target primary code and target spreading code.
Further, still as shown in figure 3, can also further be arranged in the set interface 300 acquisition range 302 and/or
The constraint conditions such as collection period 303, to improve the crawl efficiency of target primary code and target spreading code.
Since the code quantity of primary operating system and extended operation system is very huge, then, user can lead to
Setting acquisition range 302 is crossed, certain a part or a certain class file, example are further screened under the acquisition path 301 of user setting
Such as, setting acquires the file etc. that suffix is " .java " in acquisition range 302.It can be directed to by the way that acquisition range 302 is arranged
Property Quick Acquisition to target primary code needed for user and target spreading code, and can be with by setting collection period 303
Guarantee the timeliness of collected target primary code and target spreading code.
Certainly, those skilled in the art can also be according to practical application scene or the other constraint items of practical experience setting
Part, for example, setting acquisition date etc., the embodiment of the present application is not intended to be limited in any this.
In step 201, the setting informations such as the acquisition path that detection device can be inputted according to user, it is specified to obtain user
Target primary code and target spreading code.For example, detection device can be by the local when acquiring path is local path
Target primary code and target spreading code under path are copied in memory;When acquiring path is network path, detection is set
It is standby that target primary code and target spreading code can be downloaded from the network path to local.
Certainly, detection device can also preset the setting informations such as the acquisition path of default, then, pass through the default
Setting information, detection device can get above-mentioned target primary code and target spreading code, the embodiment of the present application pair automatically
This is not intended to be limited in any.
Optionally, after detection device gets above-mentioned target primary code and target spreading code, detection device can be with
Further the target primary code got and target spreading code are shown to user in its display interface.
Further, as shown in figure 4, detection device can also be in its display interface, the target Protozoic that will acquire
The paragraph marks for occurring difference between code 401 and target spreading code 402 comes out the (label underlined in Fig. 4 by overstriking
Mode is illustrated), user quickly, is intuitively known between current goal primary code 401 and target spreading code 402
Difference.
202, detection device divides target spreading code by comparing above-mentioned target primary code and target spreading code
For N number of continuous code block, N >=1.
Wherein, the division principle of above-mentioned code block are as follows: consecutive identical with above-mentioned target primary code in target spreading code
Code paragraph can be used as a code block, also, it is continuously different with above-mentioned target primary code in target spreading code
Code paragraph also can be used as a code block.
So, as shown in figure 5, detection device is by comparing target primary code 401 shown in Fig. 4 and target spreading code
402 can determine: 1-8 row is identical as the 1-8 row in target primary code 401 in target spreading code 402, then,
It can be using the 1-8 row in target spreading code 402 as code block 1;9th row and target Protozoic in target spreading code 402
The 9th in code 401 be not capable identical, then, it can be using the 9th row in target spreading code 402 as code block 2;Target extends generation
10-12 row is identical as the 10-12 row in target primary code 401 in code 402, then, it can will be in target spreading code 402
10-12 row as code block 3 ... ..., until target spreading code 402 is divided into 7 continuous codes shown in Fig. 4
Block.
Certainly, still as shown in figure 5, the process for dividing code block to target primary code 401 can also be in detection device
It is shown in display interface, for example, pass through the method displaying target primary code 401 and target spreading code 402 of split screen, this
Application embodiment is not intended to be limited in any this.
203, detection device respectively assesses at least one code block in above-mentioned N number of code block, obtains entire mesh
Mark the assessment result of spreading code.
The code block type being likely to occur can be preset in detection device, for example, being stored in advance in detection device
There is code block type in 4.Wherein, Class1 refers to a code block complete phase in target primary code and target spreading code
Same situation, for example, above-mentioned code block 1;Type 2 refers to that a code block does not occur in target primary code, and in mesh
Situation about increasing newly in spreading code is marked, for example, above-mentioned code block 2;Type 3 refers to that a code block goes out in target primary code
Situation that is existing, and being deleted in target spreading code;Type 4 refers to the feelings that a code block is modified based on primary code
Condition, for example, the value of integer type (int) parameter c2 is revised as 3 from 2 in the code block 6 of target spreading code 402 in Fig. 5.
Wherein, for code block type 4, it can also be further divided into different subtype, for example, ought only modify
When variable, code block type is type 4-1;When only having modified function name, code block type is type 4-2;When only
When having modified return value, code block type is type 4-3;When having modified function name and return value simultaneously, code block class
Type is type 4-4 etc., and the embodiment of the present application is not intended to be limited in any this.
In addition, the code block of different code block type is generally different the destructiveness of primary code, that is to say, that when
After the upgrading of target primary code, the probability that different code block clashes phenomenon in target spreading code is different.
For example, for code block 1 shown in fig. 5, since the type of code block 1 is Class1, i.e. code block 1 and mesh
The code 1 ' marked in primary code at same position is identical, then, if the code 1 ' in target primary code upgrades
It is modified, it is only necessary to code block 1 in target spreading code be made into identical modification, that is, may make code block 1 in target spreading code
Target primary code after compatible upgrading.That is, the code block of Class1 to primary code destructiveness it is smaller, it is subsequent because
The probability that code upgrade causes conflict phenomenon is also smaller.
And for code block 6 shown in fig. 5, since the type of code block 6 is that type 4, i.e. code block 6 and target are former
Code 6 ' in raw code at same position, which is compared, to be modified, then, if the code 6 ' in target primary code upgrades
It is modified when new features, then the code block 6 at this time in target spreading code can not support the new features.That is, type 4
Code block is larger to the destructiveness of primary code, and the subsequent probability for causing conflict phenomenon because of code upgrade is also larger.
So, in step 203, detection device can according in above-mentioned N number of code block at least one code block (such as
Each of above-mentioned code block 1-7 code block) type, each code block in this at least one code block is commented
Estimate, to obtain to reflect the subsequent assessment result for clashing risk of target spreading code.For example, when detection device is to above-mentioned
After X (X < N) a code block in N number of code block is assessed respectively, the assessment knot of X code block in target spreading code can be obtained
Fruit, the assessment result of this X code block also can be used as the assessment result of entire target spreading code, reflect to a certain degree entire
The risk for clashing phenomenon of target spreading code.And when detection device is to each code block in above-mentioned N number of code block point
Not Ping Gu after, the assessment result of obtained N number of code block can be used as the assessment result of entire target spreading code, the assessment result
It can comprehensively reflect the risk for clashing phenomenon of entire target spreading code.
Illustratively, it can be given a mark according to the type of code block to each code block by way of scoring mechanism, for example,
When the code block type of a code block is Class1, the score of the code block is 1 point;When the code block class of a code block
When type is type 2 or type 3, the score of the code block is 3 points;When the code block type of a code block is type 4, the generation
The score of code block is 5 points.
In this way, by taking 7 code blocks shown in fig. 5 as an example, code block 1, code block 3, code block 5 and code block 7 are beaten
Dividing is 1 point, and the marking of code block 2 and code block 4 is 3 points, and the marking of code block 6 is 5 points.So, entire target extension
The total score of code 402 are as follows: 1*4+3*2+5=15 point, at this point, the marking of code block and entire target spreading code 402 is total
The assessment result for dividing equal scoring informations to can be used as target spreading code 402.
Certainly, detection device can also determine this further according to the total score of entire target spreading code 402 for user
The subsequent risk assessment for clashing phenomenon of target spreading code 402, at this point it is possible to extend generation for the risk assessment as target
The assessment result of code 402.
For example, when total score is greater than 12, the assessment result of target spreading code 402 are as follows: clash the risk of phenomenon compared with
Greatly;When total score is greater than 5 less than 12, the assessment result of target spreading code 402 are as follows: the risk for clashing phenomenon is general;When
When total score is less than 5, the assessment result of target spreading code 402 are as follows: the risk for clashing phenomenon is smaller.
In addition, as shown in fig. 6, detection device can also be on its display interface by above-mentioned scoring process, and assessment knot
Fruit shows user, allows users to intuitively determine that different code block clashes the several of phenomenon in target spreading code
Rate.
Further, in addition to the code block type of code block, in target spreading code each code block size (for example,
The line number of code in code block) and code block sum, also will affect the destructive size to target primary code.
Specifically, for a target spreading code, the sum of code block is fewer, then explanation and target primary code phase
Than, the continuity of the target spreading code is better, and it is smaller with the difference of target primary code, to the destructiveness of target primary code
It is smaller.And when the size of each code block is bigger, then explanation is compared with target primary code, the continuity of the target spreading code
It is better, it is smaller to the destructiveness of target primary code.
Therefore, in other embodiments of the application, detection device can also be according to each generation in above-mentioned N number of code block
The sum of the type of code block, the size of each code block and code block assesses target spreading code, each to obtain
The subsequent risk for clashing phenomenon of code block.
Still by taking 7 code blocks shown in fig. 5 as an example, detection device can recorde the type and size of each code block,
It in turn, as shown in table 1, still can be by way of scoring mechanism, according to the type of each code block, the size of each code block
It gives a mark to each code block.For example, can store score corresponding to different code block type inside detection device, and not
With score corresponding to code block size, then, detection device can determine each code block according to these corresponding relationships
Score, finally, as shown in table 1, detection device can calculate the total score of entire target spreading code 402 are as follows: 2+7+3+7+2+9
+ 3=33 points.
Table 1
Code block 1 | Code block 2 | Code block 3 | Code block 4 | Code block 5 | Code block 6 | Code block 7 | |
Type | 1 point | 3 points | 1 point | 3 points | 1 point | 5 points | 1 point |
Size | 1 point | 4 points | 2 points | 4 points | 1 point | 4 points | 2 points |
Total score | 2 points | 7 points | 3 points | 7 points | 2 points | 9 points | 3 points |
So, detection device can be by the marking of above-mentioned each code block and calculated entire target spreading code
Assessment result of the scoring informations such as 402 total score as target spreading code 402.It can also further be extended according to entire target
The total score of code 402 determines the subsequent risk assessment for clashing phenomenon of the target spreading code 402 for user, and should
Risk assessment is added in the assessment result of target spreading code 402.
It should be noted that above-mentioned target spreading code can be a specific function, it is also possible to a code text
Code some or all of in part can also be a group of file (such as all generations in a file or under a path
Code file), through the foregoing embodiment, the assessment result of available specified target spreading code.
In addition, the mode of scoring mechanism illustrates the tool for assessing code block in target spreading code in above embodiments
Body method, it is to be understood that those skilled in the art can also be arranged other according to practical application scene or practical experience
Appraisal procedure is sent out for example, assessing code block in target spreading code by technological means such as big data statistics or artificial intelligence
The risk of raw conflict phenomenon, the embodiment of the present application are not intended to be limited in any this.
204, above-mentioned assessment result is showed user by detection device.
In step 204, detection device can by visualization means, by the image of assessment result obtained in step 203,
User intuitively is showed, facilitates user intuitively can assess and analyze above-mentioned target spreading code and primary code is broken
Bad property reduces the probability that subsequent upgrade clashes phenomenon in the process to modify in time to the target spreading code.
Illustratively, as shown in fig. 7, detection device can be in its display interface by assessment result interface shown in table 1
701 show user, wherein the marking of each code block in target spreading code is shown in the assessment result interface 701
The risk situation for clashing phenomenon that situation and detection device are evaluated according to the marking situation of each code block.
Further, as shown in figure 8, if user clicks the marking situation of some code block or code block, or by light
Mark is moved to the position of respective code block.Detection device can show that assessment should to user by forms such as pop-up suspended windows 702
Marking details when code block, for example, the suspended window 702 in Fig. 8 shows the code block type of code block 6, code block size,
The details such as risk class and modification strategy can be by detection device automatically to generation if user, which confirms, executes the modification strategy
Code block 6 is modified and is optimized, and the embodiment of the present application is not intended to be limited in any this.
Wherein, the method that detection device determines code block modification strategy will elaborate in step 205, therefore herein no longer
It repeats.
Or detection device can also be shown in its display interface to user by color and the size of color lump
Above-mentioned assessment result.Specifically, different code block type marks can be different colors by detection device, for example, such as Fig. 9
It is shown, it can change according to the depth of color, the maximum code block type 4 of phenomenon probability will be clashed and be labeled as black, it will
The general code block type 2 of phenomenon probability and code block type 3 is clashed (to show labeled as grey in Fig. 9 with oblique line filling
Meaning), the lesser code block Class1 of phenomenon probability will be clashed labeled as white.And the size of color lump can indicate corresponding generation
The size of code block.So, as shown in figure 9, color lump 801 is used to indicate code block 1, color lump 802 is used to indicate code block 2 ... ...,
Color lump 807 is used to indicate code block 7.By the specific location of color lump, color and size, can image show mesh to user
Which is partially easy to happen conflict phenomenon in mark spreading code, and clashes the severity etc. of phenomenon, facilitates user couple
Target spreading code optimizes.
Further, as shown in Figure 10, the specific code of corresponding code block can also be shown in each color lump, it is convenient
User positions the problem in each code block in time.
Further, as shown in figure 11, if user clicks some color lump, or cursor is moved to corresponding color lump, then
Detection device can show marking details when assessing code block in the color lump to user by forms such as pop-up suspended windows 820,
For example, the suspended window 820 in Figure 11 shows the code block type of code block 6, code block size, risk class and modification plan
Details, the embodiment of the present application such as slightly is not intended to be limited in any this.
In addition, the specific side for showing assessment result to user is illustrated in above embodiments in a manner of table and color lump
Method, it is to be understood that those skilled in the art can also be other visual according to practical application scene or practical experience setting
Change methods of exhibiting, the embodiment of the present application is not intended to be limited in any this.
205, detection device determines the modification strategy to above-mentioned target spreading code according to above-mentioned assessment result.
206, detection device executes above-mentioned modification strategy to target spreading code, to reduce target spreading code to target original
The destructiveness of raw code.
In a kind of possible design method, repairing for different code block type can be previously stored in detection device
Change strategy.For example, 4 code block of type for directly having modified int parameter value this for above-mentioned code block 6, can it is preset its
Modification strategy are as follows: be optimized for the code block of type 4 to clash the code block of the lesser type 3 of risk, to reduce code
The marking of block 6 reduces entire spreading code to the destructiveness of primary code.
That is, as shown in figure 12, detection device can convert generation by carrying out semantic analysis to target spreading code
The code block type of code block 6 will clash the biggish code block 6 of risk, be converted to and clash wind in target spreading code
The code block of the lesser type 2 in danger.
For example, be revised as target primary code " int c2=2 " " int c2=3 " in code block 6, it is this direct
The modification mode of modification variable-value will increase the subsequent probability for clashing phenomenon, and therefore, detection device can be by code block 6
In " int c2=3 " modification are as follows:
" int c2=2;
Int c4=3;
C2=c4;"
In this way, target spreading code is the base of in target primary code " int c2=2 " compared with target primary code
Two line codes are increased on plinth, equally realize c2 is assigned a value of 2 purpose, but the code block of modified code block 6 at this time
Type converts in order to clash the lesser type 3 of risk, to reduce entire spreading code to the destructiveness of primary code.
In alternatively possible design method, detection device can also be directed to the structure setting of entire target spreading code
Different modification strategies.
Specifically, due to target spreading code code block sum less, the size of code block it is bigger when, to target original
The destructiveness of raw code is smaller, that is to say, that the color lump of target spreading code less, color lump it is bigger when, to target primary code
Destructiveness it is smaller.Therefore, detection device can preset the modification strategy that some color lumps merge, to reduce target spreading code
Color lump sum, increase the size of each code block, to reduce the marking of entire target spreading code (with mesh in the application
The marking for marking spreading code is lower, clashes the smaller citing of risk), spreading code is reduced to the destructiveness of primary code.
For example, as shown in figure 13, code block can be confirmed by carrying out semantic analysis to target spreading code in detection device
4 setting position will not have an impact the operation of entire target spreading code, then, detection device can by code block 4 with
Code 2 merges, and the sum of code block is reduced to 5 pieces from 7 pieces in the target spreading code after merging, and the size of code block is also corresponding
Increase, to reduce the marking of entire target spreading code.
Certainly, as shown in figure 14, shown in detection device can also be performed simultaneously above-mentioned target spreading code shown in Figure 12
Conversion code block type and Figure 13 shown in code merged block both modification strategies, further decrease entire target and expand
The marking of code is opened up, to reduce spreading code to the destructiveness of primary code, reduces the subsequent probability for clashing phenomenon.
It, can be with after detection device determines the modification strategy to above-mentioned target spreading code in addition, in step 206
Automatically the modification strategy is executed, which can also be executed by the manual detection trigger equipment of user.For example, detection device obtains
Into merging target spreading code after the modification strategy of code block 4 and code 2, human-computer interaction interface as shown in figure 15 can be passed through
It prompts the user whether to execute the modification strategy, if detecting that user clicks the ACK button in human-computer interaction interface, respond
In the trigger action, detection device merges code block 4 in target spreading code and code 2.
Certainly, prompt the user with whether execute the modification strategy when, can also be arranged in the human-computer interaction interface can
With the parameter by the manual redjustment and modification strategy of user or when executing the modification strategy, for example, modification execute the modification strategy when
Between, the quantity etc. of combined code block is needed, so that user can control the implementation procedure of the modification strategy, improves target extension
The modification efficiency of code.
It should be noted that not being limited in any way in the embodiment of the present application to the execution sequence between step 204 and 205.
In addition, in the embodiment of the present application, target spreading code can also be arranged according to above-mentioned assessment result in detection device
Put into the storage condition of code library.For example, as shown in (a) in Figure 16, which can be with are as follows: when target spreading code
When total score is greater than preset reference value, allow the target spreading code from the code library operation in exploitation environmental input production environment.
In another example as shown in (b) in Figure 16, which can be with are as follows: when not including code block type 4 in target spreading code
Code block when, allow the target spreading code from exploitation environmental input production environment in code library operation.
When target spreading code is unsatisfactory for above-mentioned storage condition, target spreading code can not be put in storage, then, developer
It needs to advanced optimize it, it could be by the target spreading code after optimization from exploitation ring until meeting after the storage condition
Border is put into production the operation of the code library in environment.
So, the code quality for the spreading code that can be run in stringent control investment code library, effectively avoids pair
The destructive biggish spreading code of primary code comes into operation, to reduce the primary code and expansion caused by primary code upgrading
Open up the conflict phenomenon between code.
It is understood that above-mentioned detection device etc. is in order to realize the above functions, it comprises executing, each function is corresponding
Hardware configuration and/or software module.Those skilled in the art should be readily appreciated that, in conjunction with implementation disclosed herein
Each exemplary unit and algorithm steps of example description, the embodiment of the present application can be with the combination of hardware or hardware and computer software
Form is realized.Some functions is executed in a manner of hardware or computer software driving hardware actually, depends on technical side
The specific application and design constraint of case.Professional technician can carry out each specific application to come using distinct methods real
Existing described function, but this realization is it is not considered that exceed the range of the embodiment of the present application.
The embodiment of the present application can carry out the division of functional module, example according to above method example to above-mentioned detection device etc.
Such as, each functional module of each function division can be corresponded to, two or more functions can also be integrated at one
It manages in module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module
It realizes.It should be noted that being schematical, only a kind of logic function stroke to the division of module in the embodiment of the present application
Point, there may be another division manner in actual implementation.
In the case where each function division of use correspondence each functional module, Figure 17 shows involved in above-described embodiment
And detection device a kind of possible structural schematic diagram, the detection device include: acquiring unit 1101, division unit 1102,
Assessment unit 1103, display unit 1104 and execution unit 1105.
Acquiring unit 1101 is for supporting detection device to execute the process 201 in Fig. 2;Division unit 1102 is for supporting inspection
Measurement equipment executes the process 202 in Fig. 2;Assessment unit 1103 is for supporting detection device to execute the process 203 in Fig. 2;Display
Unit 1104 is for supporting detection device to execute the process 204 in Fig. 2;Execution unit 1105 is for supporting detection device execution figure
Process 205-206 in 2.
Wherein, all related contents for each step that above method embodiment is related to can quote corresponding summary of the invention
In each functional module function description, details are not described herein.
Using integrated unit, Figure 18 shows one kind of detection device involved in above-described embodiment
Possible structural schematic diagram.The detection device includes: the processor 1201 including being connected by bus 1206, memory 1202,
Transceiver 1203 (optional), input equipment 1204 and output equipment 1205.
Processor 1201 is for carrying out control management to the movement of detection device.Transceiver 1203 is for supporting detection device
With the communication of other network entities.The detection device can also include memory 1202, for depositing the program code of detection device
And data.The detection device can also include input equipment 1204 and output equipment 1205, interact for realizing with user, example
Such as, input equipment 1204 can be keyboard, microphone etc.;Output equipment 1205 can be display etc..
It should be noted that in embodiments of the present invention, processor 1201 can be used for obtaining above-mentioned target primary code and
Target spreading code.Wherein, when above-mentioned target primary code (or target spreading code) is stored in the memory of detection device
When 1202, processor 1201 can directly obtain the target primary code (or target spreading code) from memory 1202;When upper
State target primary code (or target spreading code) be stored in other equipment (such as server of network side) it is interior when, processor
1201 can send acquisition instructions to transceiver 1203, and the target primary code is downloaded from other equipment by transceiver 1203
(or target spreading code) is into local storage 1202.
Wherein, processor 1201 can be central processing unit (Central Processing Unit, CPU), general procedure
Device, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application-
Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate
Array, FPGA) either other programmable logic device, transistor logic, hardware component or any combination thereof.It can
To realize or execute various illustrative logic blocks, module and circuit in conjunction with described in present disclosure.The place
Reason device is also possible to realize the combination of computing function, such as combines comprising one or more microprocessors, DSP and microprocessor
Combination etc..
Memory 1202 mainly includes storing program area and storage data area, wherein storing program area can store operation
Application program needed for system, at least one function (such as sound-playing function, image player function etc.);It storage data area can
To store according to the data created when using detection device.In addition, memory 103 may include high random access storage
Device can also include nonvolatile storage, such as disk memory, flush memory device or other volatile solid-state parts
Deng.Memory 1202 can store various operating systems, for example, what Apple Inc. was developedOperating system, Google
It is developedOperating system etc..Above-mentioned memory 1202 can be it is independent, by above-mentioned communication bus 1206 with
Processor 1201 is connected;Memory 1202 can also be integrated with processor 1201.
Transceiver 1203 can be that (such as keyboard, mouse, external-connection displayer, outside are deposited for external input-output apparatus
Reservoir, subscriber identification module card etc.) various interfaces, transmission circuit or communication interface etc. are provided.
In some embodiments, the application also provides a kind of computer readable storage medium, the computer-readable storage
It is stored with instruction in medium, when described instruction is run on above-mentioned detection device, detection device may make to execute above-mentioned implementation
Code detection method described in example.
In some embodiments, the application also provides a kind of computer program product comprising instruction, when the computer
Program product may make detection device to execute code described in any one of above-described embodiment when running on above-mentioned detection device
Detection method.
In the above-described embodiments, all or part of can be come in fact by software, hardware, firmware or any combination thereof
It is existing.When being realized using software program, can entirely or partly occur in the form of a computer program product.The computer
Program product includes one or more computer instructions.When loading on computers and executing the computer program instructions, entirely
Portion is partly generated according to process or function described in the embodiment of the present application.The computer can be general purpose computer, specially
With computer, computer network or other programmable devices.The computer instruction can store in computer-readable storage
In medium, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the meter
Calculation machine instruction can from a web-site, computer, server or data center by it is wired (such as coaxial cable, optical fiber,
Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, service
Device or data center's transmission.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be
Magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Change or replacement within the technical scope of the present application should all be covered within the scope of protection of this application.Therefore, this Shen
Protection scope please should be based on the protection scope of the described claims.
Claims (22)
1. a kind of code detection method characterized by comprising
Detection device obtains target primary code and target spreading code, and the target spreading code is primary based on the target
What code obtained;
The detection device is by comparing the target primary code and the target spreading code, by the target spreading code
It is divided into N number of continuous code block, N >=1;
The detection device assesses at least one code block in N number of code block, obtains the target extension generation
The assessment result of code, the assessment result are used to indicate the probability that the target spreading code clashes phenomenon;
The detection device shows the assessment result.
2. the method according to claim 1, wherein the detection device shows the assessment in display interface
As a result, comprising:
The detection device shows N number of code block using different color blocks in display interface, wherein the face of each code block
Color is used to indicate the code block type of the code block.
3. according to the method described in claim 2, it is characterized in that, showing institute's commentary in display interface in the detection device
After estimating result, further includes:
When detecting that user triggers the color lump in N number of code block where first generation code block, the detection device, which is shown, to be commented
Estimate the assessment details when first generation code block.
4. method according to any one of claim 1-3, which is characterized in that the detection device is to N number of code
At least one code block in block is assessed, and the assessment result of the target spreading code is obtained, comprising:
For each code block at least one described N number of code block, the detection device according to the code block code block
Type gives a mark to the code block;
The detection device will obtain described at least one code block scoring information commenting as the target spreading code
Estimate result.
5. according to the method described in claim 4, it is characterized in that, the detection device according to the code block code block type
It gives a mark to the code block, comprising:
The detection device gives a mark to the code block according to the code block type of the code block and the size of the code block.
6. method according to any one of claims 1-5, which is characterized in that the detection device is by comparing the mesh
Primary code and the target spreading code are marked, the target spreading code is divided into N number of continuous code block, comprising:
The detection device is by comparing the target primary code and the target spreading code, by the target spreading code
In the code paragraph consecutive identical with the target primary code as a code block, and by the target spreading code with
The continuous different code paragraph of the target primary code obtains N number of continuous code block as a code block.
7. method according to claim 1 to 6, which is characterized in that detection device obtain target primary code and
Target spreading code, comprising:
The detection device obtains the acquisition path of user's input;
The detection device acquires the target primary code and the target spreading code according to the acquisition path.
8. method according to any one of claims 1-7, which is characterized in that show the assessment in the detection device
As a result after, further includes:
The detection device shows the modification strategy to the target spreading code;
In response to user to the trigger action of the modification strategy, the detection device executes the modification strategy.
9. according to the method described in claim 8, it is characterized in that, the modification strategy includes: the code block of transcode block
Type, and/or, merge at least two code blocks in the target spreading code.
10. method according to claim 1 to 9, which is characterized in that in the detection device to N number of generation
At least one code block in code block is assessed, after obtaining the assessment result of the target spreading code, further includes:
When the assessment result does not meet preset storage condition, the detection device forbids the target spreading code from opening
Hair ring border is put into production the operation of the code library in environment.
11. a kind of detection device, which is characterized in that including the processor connected by bus, memory, input equipment and defeated
Equipment out, wherein
The processor, is used for: obtaining target primary code and target spreading code, the target spreading code is based on described
Target primary code obtains;By comparing the target primary code and the target spreading code, the target is extended
Code is divided into N number of continuous code block, N >=1;At least one code block in N number of code block is assessed, is obtained
The assessment result of the target spreading code, the assessment result are used to indicate the target spreading code and clash phenomenon
Probability;
The output equipment, is used for: showing the assessment result.
12. detection device according to claim 11, which is characterized in that
The output equipment, is specifically used for: showing N number of code block in display interface using different color blocks, wherein each
The color of code block is used to indicate the code block type of the code block.
13. detection device according to claim 12, which is characterized in that
The input equipment, is used for: detection user triggers the color lump in N number of code block where first generation code block;
The output equipment, is also used to: the assessment details when first generation code block are assessed in display.
14. detection device described in any one of 1-13 according to claim 1, which is characterized in that
The processor, is specifically used for: for each code block at least one described code block, according to the generation of the code block
Code block type gives a mark to the code block;The scoring information of at least one N number of code block is as the mesh described in obtaining
Mark the assessment result of spreading code.
15. detection device according to claim 14, which is characterized in that
The processor, is specifically used for: according to the code block code block type and the code block size, to the code block into
Row marking.
16. detection device described in any one of 1-15 according to claim 1, which is characterized in that
The processor, is specifically used for: by comparing the target primary code and the target spreading code, by the target
The code paragraph consecutive identical with the target primary code is extended as a code block, and by the target in spreading code
N number of continuous code block is obtained as a code block from the continuous different code paragraph of the target primary code in code.
17. detection device described in any one of 1-16 according to claim 1, which is characterized in that
The input equipment, is also used to: obtaining the acquisition path of user's input;
The processor, is also used to: according to the acquisition path, acquiring the target primary code and target extension generation
Code.
18. detection device described in any one of 1-17 according to claim 1, which is characterized in that
The output equipment, is also used to: the modification strategy to the target spreading code is shown in display interface;
The input equipment, is also used to: trigger action of the detection user to the modification strategy;
The processor, is also used to: executing the modification strategy.
19. detection device according to claim 18, which is characterized in that the modification strategy includes: transcode block
Code block type, and/or, merge at least two code blocks in the target spreading code.
20. detection device described in any one of 1-19 according to claim 1, which is characterized in that
The processor, is also used to: when the assessment result does not meet preset storage condition, forbidding the target extension generation
Code is run from the code library in exploitation environmental input production environment.
21. a kind of computer readable storage medium is stored with instruction in the computer readable storage medium, which is characterized in that
When described instruction is run on detection device, so that the detection device is executed as of any of claims 1-10
Code detection method.
22. a kind of computer program product comprising instruction, which is characterized in that when the computer program product is in detection device
When upper operation, so that the detection device executes such as code detection method of any of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710626452.4A CN109308253B (en) | 2017-07-27 | 2017-07-27 | Code detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710626452.4A CN109308253B (en) | 2017-07-27 | 2017-07-27 | Code detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109308253A true CN109308253A (en) | 2019-02-05 |
CN109308253B CN109308253B (en) | 2022-07-12 |
Family
ID=65202251
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710626452.4A Active CN109308253B (en) | 2017-07-27 | 2017-07-27 | Code detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109308253B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110377497A (en) * | 2019-05-27 | 2019-10-25 | 深圳壹账通智能科技有限公司 | Code detection method, device, computer installation and storage medium |
CN111190583A (en) * | 2019-12-31 | 2020-05-22 | 华为技术有限公司 | Associated conflict block presenting method and equipment |
CN114911467A (en) * | 2021-10-22 | 2022-08-16 | 北京思明启创科技有限公司 | Code detection method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870382A (en) * | 2012-12-10 | 2014-06-18 | 百度在线网络技术(北京)有限公司 | Code risk detection method and device |
CN104572260A (en) * | 2013-10-22 | 2015-04-29 | 国际商业机器公司 | Code versioning for enabling transactional memory promotion |
CN106126410A (en) * | 2016-05-26 | 2016-11-16 | 华为技术有限公司 | The reminding method of code conflicts and device |
CN106406918A (en) * | 2016-11-25 | 2017-02-15 | 华胜信泰信息产业发展有限公司 | Source code automatic merging method and apparatus |
-
2017
- 2017-07-27 CN CN201710626452.4A patent/CN109308253B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870382A (en) * | 2012-12-10 | 2014-06-18 | 百度在线网络技术(北京)有限公司 | Code risk detection method and device |
CN104572260A (en) * | 2013-10-22 | 2015-04-29 | 国际商业机器公司 | Code versioning for enabling transactional memory promotion |
CN106126410A (en) * | 2016-05-26 | 2016-11-16 | 华为技术有限公司 | The reminding method of code conflicts and device |
CN106406918A (en) * | 2016-11-25 | 2017-02-15 | 华胜信泰信息产业发展有限公司 | Source code automatic merging method and apparatus |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110377497A (en) * | 2019-05-27 | 2019-10-25 | 深圳壹账通智能科技有限公司 | Code detection method, device, computer installation and storage medium |
CN111190583A (en) * | 2019-12-31 | 2020-05-22 | 华为技术有限公司 | Associated conflict block presenting method and equipment |
CN111190583B (en) * | 2019-12-31 | 2021-10-22 | 华为技术有限公司 | Associated conflict block presenting method and equipment |
US12118336B2 (en) | 2019-12-31 | 2024-10-15 | Huawei Cloud Computing Technologies Co., Ltd. | Method for presenting associated conflict block and device |
CN114911467A (en) * | 2021-10-22 | 2022-08-16 | 北京思明启创科技有限公司 | Code detection method and device, electronic equipment and storage medium |
CN114911467B (en) * | 2021-10-22 | 2023-05-09 | 北京思明启创科技有限公司 | Code detection method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109308253B (en) | 2022-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10481884B2 (en) | Systems and methods for dynamically replacing code objects for code pushdown | |
US11620117B2 (en) | Systems and methods for code clustering analysis and transformation | |
US20230244476A1 (en) | Systems and methods for code analysis heat map interfaces | |
US20240211232A1 (en) | Systems and methods for entry point-based code analysis and transformation | |
US11429365B2 (en) | Systems and methods for automated retrofitting of customized code objects | |
US9348563B1 (en) | Bi-directional editing between visual screen designer and source code | |
CN111080170B (en) | Workflow modeling method and device, electronic equipment and storage medium | |
US20240069871A1 (en) | Creation and management of data pipelines | |
US11593342B2 (en) | Systems and methods for database orientation transformation | |
US20160357519A1 (en) | Natural Language Engine for Coding and Debugging | |
US20090064000A1 (en) | SYSTEMS, METHODS AND COMPUTER PRODUCTS TO AUTOMATICALLY COMPLETE a GUI TASK | |
US9031920B2 (en) | Objects in a storage environment for connected applications | |
CN104267947A (en) | Method and device for editing popup picture | |
CN111831258B (en) | Method and system for creating application program | |
CN109308253A (en) | A kind of code detection method and device | |
CN104572072A (en) | MVC (model view controller) mode-based language transformation method and equipment for program | |
US20140289697A1 (en) | Systems and Methods for Software Development | |
US20170293548A1 (en) | Determining test application effectiveness | |
US20160124723A1 (en) | Graphically building abstract syntax trees | |
US10819752B2 (en) | Systems and methods for quantitative assessment of a computer defense technique | |
US8719704B2 (en) | Seamless integration of additional functionality into enterprise software without customization or apparent alteration of same | |
CN110334031A (en) | Memory Allocation code detection method, device, computer equipment and storage medium | |
CN112578961B (en) | Application identifier display method and device | |
CN114564855A (en) | Operation method based on incidence relation of FMEA data nodes and electronic equipment | |
CN116360712A (en) | Platform framework extension method, device and storage medium |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Applicant after: HUAWEI DEVICE Co.,Ltd. Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Applicant before: Huawei terminal (Dongguan) Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |