Commit 732af3e 1 parent ae0c4eb commit 732af3e Copy full SHA for 732af3e
File tree 5 files changed +15
-13
lines changed
platform/frontends/x2cpg/src/main/scala/io/appthreat/x2cpg/passes/taggers
5 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1
1
name := " chen"
2
2
ThisBuild / organization := " io.appthreat"
3
- ThisBuild / version := " 2.0.9 "
3
+ ThisBuild / version := " 2.0.10 "
4
4
ThisBuild / scalaVersion := " 3.4.1"
5
5
6
6
val cpgVersion = " 1.0.0"
Original file line number Diff line number Diff line change 7
7
"downloadUrl" : " https://github.com/AppThreat/chen" ,
8
8
"issueTracker" : " https://github.com/AppThreat/chen/issues" ,
9
9
"name" : " chen" ,
10
- "version" : " 2.0.9 " ,
10
+ "version" : " 2.0.10 " ,
11
11
"description" : " Code Hierarchy Exploration Net (chen) is an advanced exploration toolkit for your application source code and its dependency hierarchy." ,
12
12
"applicationCategory" : " code-analysis" ,
13
13
"keywords" : [
Original file line number Diff line number Diff line change 1
- {% set version = "2.0.9 " %}
1
+ {% set version = "2.0.10 " %}
2
2
3
3
package :
4
4
name : chen
Original file line number Diff line number Diff line change @@ -110,15 +110,17 @@ class CdxPass(atom: Cpg) extends CpgPass(atom):
110
110
pkgName.replace(" django_" , " " ),
111
111
pkgName.replace(" py" , " " )
112
112
).foreach { ns =>
113
- val bpkg = toPyModuleForm(ns)
114
- if bpkg.nonEmpty && ! donePkgs.contains(bpkg) then
115
- donePkgs.put(bpkg, true )
116
- atom.call.where(
117
- _.methodFullName(bpkg)
118
- ).argument.newTagNode(compPurl).store()(dstGraph)
119
- atom.identifier.typeFullName(bpkg).newTagNode(
120
- compPurl
121
- ).store()(dstGraph)
113
+ Set (toPyModuleForm(ns), s " $ns${Pattern .quote(File .separator)}.* " ).foreach {
114
+ bpkg =>
115
+ if bpkg.nonEmpty && ! donePkgs.contains(bpkg) then
116
+ donePkgs.put(bpkg, true )
117
+ atom.call.where(
118
+ _.methodFullName(bpkg)
119
+ ).newTagNode(compPurl).store()(dstGraph)
120
+ atom.identifier.typeFullName(bpkg).newTagNode(
121
+ compPurl
122
+ ).store()(dstGraph)
123
+ }
122
124
}
123
125
end if
124
126
val properties = comp.hcursor.downField(" properties" ).focus.flatMap(
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " appthreat-chen"
3
- version = " 2.0.9 "
3
+ version = " 2.0.10 "
4
4
description = " Code Hierarchy Exploration Net (chen)"
5
5
authors = [" Team AppThreat <cloud@appthreat.com>" ]
6
6
license = " Apache-2.0"
You can’t perform that action at this time.
0 commit comments