You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/user_case.en.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Use Cases
2
2
## Querying Code Features
3
-
Little-Developer wants to know which String type variables are used in Repo A, so he writes a Gödel script as follows and submits it to the CodeFuse-Query system for results.
3
+
A developer wants to know which String type variables are used in Repo A, so he writes a Gödel script as follows and submits it to the CodeFuse-Query system for results.
4
4
```rust
5
5
// script
6
6
usecoref::java::*
@@ -19,10 +19,10 @@ fn main() {
19
19
```
20
20
Similar needs: querying for classes, functions, variables, return values, call graphs, class inheritance, etc.
21
21
## CodeRuleChecker
22
-
Little-TL found that the team always wrote many bugs similar to BugA.**He wanted to establish a code rule forBugA and its checker** and do a check at the CodeReview stage.Through writing a query analysis on the CodeFuse-Query platform, and after testing it on the platform to meet the requirements, he solidified this analysis query as a code rule and launched it to the CodeReview/CI stage.Since then, this bug has never happened again.
22
+
A team leader found that the team always wrote many bugs similar to BugA.**He wanted to establish a code rule forBugA and its checker** and do a check at the CodeReview stage.Through writing a query analysis on the CodeFuse-Query platform, and after testing it on the platform to meet the requirements, he solidified this analysis query as a code rule and launched it to the CodeReview/CI stage.Since then, this bug has never happened again.
23
23
Similar needs: writing static defect scanning rules for code risk interception.
24
24
## ObtainingStatisticalData
25
-
Little-Researcher found that traditional code complexity metrics are difficult to accurately measure code complexity.By learning from international advanced experience and a stroke of genius, he designed a set of complexity metrics and algorithms.After implementing it with Gödel, **he found that without much optimization, the performance was already very high**, and it was quickly applied to more than 10 languages and over 110,000 repositories.He immediately had an in-depth understanding of the overall complexity of code repositories.Compared to the past, when he had to parse code and analyze syntax trees himself, and interface with systems, **it's hard to know how much more convenient it has become**.
25
+
A researcher found that traditional code complexity metrics are difficult to accurately measure code complexity.By learning from international advanced experience and a stroke of genius, he designed a set of complexity metrics and algorithms.After implementing it with Gödel, **he found that without much optimization, the performance was already very high**, and it was quickly applied to more than 10 languages and over 110,000 repositories.He immediately had an in-depth understanding of the overall complexity of code repositories.Compared to the past, when he had to parse code and analyze syntax trees himself, and interface with systems, **it's hard to know how much more convenient it has become**.
26
26
Similar needs: code statistics, code metrics, algorithm design, academic research.
27
27
28
28
# ApplicationFields
@@ -47,4 +47,4 @@ In this process, the capabilities that CodeFuse-Query can provide mainly include
47
47
-Analyze the affected objects based on the code changes (file + line number): methods, entry points (http entry, hsf entry), call routes (all call routes from entry to changed method), database operations (table, operation type)
48
48
-Combined with the online dynamic call route (method route), CodeFuse-Querystatic analysis call route impact surface precise analysis capability, improve the effectiveness and preparation rate of change analysis impact surface
49
49
50
-
Up to now, Youku has integrated all core applications through CodeFuse-Query, collected static analysis data, and built a complete server-side code knowledge base and traffic knowledge base.
50
+
Up to now, Youku has integrated all core applications through CodeFuse-Queryand has built a comprehensive server-side code knowledge base and network traffic knowledge base based on static analysis.
0 commit comments