phodal/chapi

View on GitHub
feat(protobuf): add support for Protocol Buffers 2 grammar and parsing logic #31 #537
Phodal Huang authored abbc5422
complete00:01:51
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-structure:b1673
b1673: Pulling from codeclimate/codeclimate-structure
bff3e048017e: Already exists
339148ecceb7: Already exists
75031b9f2662: Already exists
23e4bece904f: Pulling fs layer
580694eb2ab1: Pulling fs layer
4220ab45da32: Pulling fs layer
3fec094de8af: Pulling fs layer
57311f690d79: Pulling fs layer
30eef54b06d3: Pulling fs layer
533e89ddc74f: Pulling fs layer
b1fbd916a7fd: Pulling fs layer
c04c8e3d3f1e: Pulling fs layer
6270755c49c6: Pulling fs layer
c152db51e160: Pulling fs layer
0ff11adca159: Pulling fs layer
b04ea1c225fc: Pulling fs layer
a5900fead2e7: Pulling fs layer
05e1fa67ae7b: Pulling fs layer
55efbe71dad7: Pulling fs layer
fae57dc97efc: Pulling fs layer
c9bb173ce1a5: Pulling fs layer
ad7655ca63f7: Pulling fs layer
c302f0c4c32a: Pulling fs layer
2313612dd8ff: Pulling fs layer
e256e1e3d8f9: Pulling fs layer
4d0473eb5f61: Pulling fs layer
24f7364b1ed7: Pulling fs layer
e2f78d056f14: Pulling fs layer
ba793bb5beb0: Pulling fs layer
9c6fe351d4a0: Pulling fs layer
564e99fe143b: Pulling fs layer
d4d28bcef407: Pulling fs layer
377ba0623335: Pulling fs layer
da34fb180d01: Pulling fs layer
e662a1397458: Pulling fs layer
83257097193a: Pulling fs layer
60ea3c49c796: Pulling fs layer
b3bd38aab0f6: Pulling fs layer
4de22538118e: Pulling fs layer
25cf34d42617: Pulling fs layer
912ae8410047: Pulling fs layer
9b6209b21f89: Pulling fs layer
1edfdbef3d97: Pulling fs layer
88d893e5be7c: Pulling fs layer
126b08a94339: Pulling fs layer
8f4517454b55: Pulling fs layer
75d3b10e39b6: Pulling fs layer
f4ee7bf85263: Pulling fs layer
e91df39e5278: Pulling fs layer
6a82a42dca5c: Pulling fs layer
4429e2badffb: Pulling fs layer
97bbdb242e6f: Pulling fs layer
97bbdb242e6f: Waiting
23e4bece904f: Download complete
3fec094de8af: Waiting
57311f690d79: Waiting
30eef54b06d3: Waiting
533e89ddc74f: Waiting
b1fbd916a7fd: Waiting
c04c8e3d3f1e: Waiting
6270755c49c6: Waiting
c152db51e160: Waiting
0ff11adca159: Waiting
b04ea1c225fc: Waiting
a5900fead2e7: Waiting
05e1fa67ae7b: Waiting
55efbe71dad7: Waiting
fae57dc97efc: Waiting
c9bb173ce1a5: Waiting
ad7655ca63f7: Waiting
c302f0c4c32a: Waiting
2313612dd8ff: Waiting
e256e1e3d8f9: Waiting
4d0473eb5f61: Waiting
24f7364b1ed7: Waiting
e2f78d056f14: Waiting
ba793bb5beb0: Waiting
9c6fe351d4a0: Waiting
564e99fe143b: Waiting
d4d28bcef407: Waiting
377ba0623335: Waiting
da34fb180d01: Waiting
e662a1397458: Waiting
83257097193a: Waiting
60ea3c49c796: Waiting
b3bd38aab0f6: Waiting
4de22538118e: Waiting
25cf34d42617: Waiting
912ae8410047: Waiting
9b6209b21f89: Waiting
1edfdbef3d97: Waiting
88d893e5be7c: Waiting
126b08a94339: Waiting
8f4517454b55: Waiting
75d3b10e39b6: Waiting
f4ee7bf85263: Waiting
e91df39e5278: Waiting
6a82a42dca5c: Waiting
4429e2badffb: Waiting
580694eb2ab1: Verifying Checksum
580694eb2ab1: Download complete
3fec094de8af: Verifying Checksum
3fec094de8af: Download complete
57311f690d79: Verifying Checksum
57311f690d79: Download complete
30eef54b06d3: Verifying Checksum
30eef54b06d3: Download complete
533e89ddc74f: Download complete
c04c8e3d3f1e: Verifying Checksum
c04c8e3d3f1e: Download complete
6270755c49c6: Verifying Checksum
6270755c49c6: Download complete
c152db51e160: Verifying Checksum
c152db51e160: Download complete
0ff11adca159: Download complete
b04ea1c225fc: Verifying Checksum
b04ea1c225fc: Download complete
a5900fead2e7: Verifying Checksum
a5900fead2e7: Download complete
05e1fa67ae7b: Verifying Checksum
55efbe71dad7: Verifying Checksum
55efbe71dad7: Download complete
23e4bece904f: Pull complete
fae57dc97efc: Download complete
c9bb173ce1a5: Verifying Checksum
c9bb173ce1a5: Download complete
ad7655ca63f7: Verifying Checksum
ad7655ca63f7: Download complete
c302f0c4c32a: Verifying Checksum
c302f0c4c32a: Download complete
2313612dd8ff: Verifying Checksum
2313612dd8ff: Download complete
e256e1e3d8f9: Verifying Checksum
e256e1e3d8f9: Download complete
4d0473eb5f61: Download complete
24f7364b1ed7: Verifying Checksum
24f7364b1ed7: Download complete
b1fbd916a7fd: Verifying Checksum
b1fbd916a7fd: Download complete
580694eb2ab1: Pull complete
ba793bb5beb0: Download complete
e2f78d056f14: Verifying Checksum
e2f78d056f14: Download complete
564e99fe143b: Download complete
d4d28bcef407: Verifying Checksum
d4d28bcef407: Download complete
377ba0623335: Verifying Checksum
377ba0623335: Download complete
da34fb180d01: Download complete
e662a1397458: Download complete
83257097193a: Verifying Checksum
83257097193a: Download complete
9c6fe351d4a0: Verifying Checksum
9c6fe351d4a0: Download complete
60ea3c49c796: Download complete
4de22538118e: Download complete
25cf34d42617: Download complete
b3bd38aab0f6: Verifying Checksum
b3bd38aab0f6: Download complete
912ae8410047: Download complete
9b6209b21f89: Verifying Checksum
9b6209b21f89: Download complete
1edfdbef3d97: Verifying Checksum
1edfdbef3d97: Download complete
88d893e5be7c: Verifying Checksum
88d893e5be7c: Download complete
8f4517454b55: Verifying Checksum
8f4517454b55: Download complete
126b08a94339: Verifying Checksum
126b08a94339: Download complete
75d3b10e39b6: Download complete
f4ee7bf85263: Verifying Checksum
f4ee7bf85263: Download complete
e91df39e5278: Download complete
6a82a42dca5c: Download complete
4429e2badffb: Verifying Checksum
4429e2badffb: Download complete
97bbdb242e6f: Verifying Checksum
97bbdb242e6f: Download complete
4220ab45da32: Verifying Checksum
4220ab45da32: Download complete
4220ab45da32: Pull complete
3fec094de8af: Pull complete
57311f690d79: Pull complete
30eef54b06d3: Pull complete
533e89ddc74f: Pull complete
b1fbd916a7fd: Pull complete
c04c8e3d3f1e: Pull complete
6270755c49c6: Pull complete
c152db51e160: Pull complete
0ff11adca159: Pull complete
b04ea1c225fc: Pull complete
a5900fead2e7: Pull complete
05e1fa67ae7b: Pull complete
55efbe71dad7: Pull complete
fae57dc97efc: Pull complete
c9bb173ce1a5: Pull complete
ad7655ca63f7: Pull complete
c302f0c4c32a: Pull complete
2313612dd8ff: Pull complete
e256e1e3d8f9: Pull complete
4d0473eb5f61: Pull complete
24f7364b1ed7: Pull complete
e2f78d056f14: Pull complete
ba793bb5beb0: Pull complete
9c6fe351d4a0: Pull complete
564e99fe143b: Pull complete
d4d28bcef407: Pull complete
377ba0623335: Pull complete
da34fb180d01: Pull complete
e662a1397458: Pull complete
83257097193a: Pull complete
60ea3c49c796: Pull complete
b3bd38aab0f6: Pull complete
4de22538118e: Pull complete
25cf34d42617: Pull complete
912ae8410047: Pull complete
9b6209b21f89: Pull complete
1edfdbef3d97: Pull complete
88d893e5be7c: Pull complete
126b08a94339: Pull complete
8f4517454b55: Pull complete
75d3b10e39b6: Pull complete
f4ee7bf85263: Pull complete
e91df39e5278: Pull complete
6a82a42dca5c: Pull complete
4429e2badffb: Pull complete
97bbdb242e6f: Pull complete
Digest: sha256:7880f01608ed54b763671e045bd8a2e774b3ad2d41f674f0a7e2af2a1195fca5
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-structure:b1673
docker pull codeclimate/codeclimate-duplication:b1329
b1329: Pulling from codeclimate/codeclimate-duplication
bff3e048017e: Already exists
339148ecceb7: Already exists
75031b9f2662: Already exists
23e4bece904f: Already exists
580694eb2ab1: Already exists
4220ab45da32: Already exists
3fec094de8af: Already exists
57311f690d79: Already exists
30eef54b06d3: Already exists
533e89ddc74f: Already exists
b1fbd916a7fd: Already exists
c04c8e3d3f1e: Already exists
6270755c49c6: Already exists
c152db51e160: Already exists
0ff11adca159: Already exists
b04ea1c225fc: Already exists
a5900fead2e7: Already exists
05e1fa67ae7b: Already exists
55efbe71dad7: Already exists
fae57dc97efc: Already exists
c9bb173ce1a5: Already exists
ad7655ca63f7: Already exists
c302f0c4c32a: Already exists
2313612dd8ff: Already exists
e256e1e3d8f9: Already exists
4d0473eb5f61: Already exists
24f7364b1ed7: Already exists
e2f78d056f14: Already exists
ba793bb5beb0: Already exists
9c6fe351d4a0: Already exists
564e99fe143b: Already exists
d4d28bcef407: Already exists
377ba0623335: Already exists
da34fb180d01: Already exists
e662a1397458: Already exists
83257097193a: Already exists
60ea3c49c796: Already exists
b3bd38aab0f6: Already exists
4de22538118e: Already exists
25cf34d42617: Already exists
912ae8410047: Already exists
9b6209b21f89: Already exists
1edfdbef3d97: Already exists
88d893e5be7c: Already exists
126b08a94339: Already exists
8f4517454b55: Already exists
75d3b10e39b6: Already exists
f4ee7bf85263: Already exists
5bdda228a9bd: Pulling fs layer
537f66dfc79a: Pulling fs layer
7621b06003bb: Pulling fs layer
e291ef4014ba: Pulling fs layer
bd60c2073336: Pulling fs layer
64534cad8c58: Pulling fs layer
b90a9e1afea5: Pulling fs layer
b90a9e1afea5: Waiting
64534cad8c58: Waiting
bd60c2073336: Waiting
e291ef4014ba: Waiting
5bdda228a9bd: Verifying Checksum
5bdda228a9bd: Download complete
537f66dfc79a: Verifying Checksum
537f66dfc79a: Download complete
7621b06003bb: Verifying Checksum
7621b06003bb: Download complete
5bdda228a9bd: Pull complete
e291ef4014ba: Verifying Checksum
e291ef4014ba: Download complete
537f66dfc79a: Pull complete
7621b06003bb: Pull complete
64534cad8c58: Download complete
e291ef4014ba: Pull complete
b90a9e1afea5: Verifying Checksum
b90a9e1afea5: Download complete
bd60c2073336: Verifying Checksum
bd60c2073336: Download complete
bd60c2073336: Pull complete
64534cad8c58: Pull complete
b90a9e1afea5: Pull complete
Digest: sha256:08c94e28c0e5d2d83c4d56b338edbdb742d269db6facd9d6477b953dd95c4a14
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-duplication:b1329
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-10-25T13:16:16.406512 #1]  WARN -- : Skipping chapi-ast-protobuf/src/main/kotlin/chapi/ast/protobuf/ProtobufAnalyser.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:16.406567 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:17.481393 #1]  WARN -- : Skipping chapi-ast-typescript/src/test/kotlin/chapi/ast/typescriptast/TSIdentifyTest.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:17.481724 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:18.713658 #1]  WARN -- : Skipping chapi-ast-rust/src/main/kotlin/chapi/ast/rustast/RustAstBaseListener.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:18.713717 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:19.076429 #1]  WARN -- : Skipping chapi-ast-go/src/test/kotlin/chapi/ast/goast/GoAnalyserTest.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:19.076485 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.023009 #1]  WARN -- : Skipping chapi-ast-kotlin/src/main/kotlin/chapi/ast/kotlinast/KotlinBasicIdentListener.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.023053 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.035461 #1]  WARN -- : Skipping chapi-ast-kotlin/src/main/kotlin/chapi/ast/kotlinast/KotlinFullIdentListener.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.035499 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.053066 #1]  WARN -- : Skipping chapi-domain/src/test/kotlin/chapi/domain/expr/ExpressionTest.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.053105 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.248228 #1]  WARN -- : Skipping chapi-domain/src/main/kotlin/chapi/domain/core/CodeAnnotation.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.248337 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.253306 #1]  WARN -- : Skipping chapi-domain/src/main/kotlin/chapi/domain/core/CodeCall.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.253344 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.265955 #1]  WARN -- : Skipping chapi-domain/src/main/kotlin/chapi/domain/core/CodeField.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.265992 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.294145 #1]  WARN -- : Skipping chapi-domain/src/main/kotlin/chapi/domain/core/CodeDataStruct.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.294188 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.325835 #1]  WARN -- : Skipping chapi-domain/src/main/kotlin/chapi/domain/core/CodeFunction.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.325892 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.344875 #1]  WARN -- : Skipping chapi-domain/src/main/kotlin/chapi/domain/core/CodeProperty.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.344929 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:20.358196 #1]  WARN -- : Skipping chapi-domain/src/main/kotlin/chapi/domain/core/CodeContainer.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:20.358239 #1]  WARN -- : Response status: 422
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-10-25T13:16:24.683400 #1]  WARN -- : Skipping ./chapi-ast-protobuf/src/main/kotlin/chapi/ast/protobuf/ProtobufAnalyser.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:24.683474 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:25.937407 #1]  WARN -- : Skipping ./chapi-ast-typescript/src/test/kotlin/chapi/ast/typescriptast/TSIdentifyTest.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:26.037386 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:27.730914 #1]  WARN -- : Skipping ./chapi-ast-rust/src/main/kotlin/chapi/ast/rustast/RustAstBaseListener.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:27.730956 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:28.242944 #1]  WARN -- : Skipping ./chapi-ast-go/src/test/kotlin/chapi/ast/goast/GoAnalyserTest.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:28.243292 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:29.600032 #1]  WARN -- : Skipping ./chapi-ast-kotlin/src/main/kotlin/chapi/ast/kotlinast/KotlinBasicIdentListener.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:29.600072 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:29.606862 #1]  WARN -- : Skipping ./chapi-ast-kotlin/src/main/kotlin/chapi/ast/kotlinast/KotlinFullIdentListener.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:29.606904 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:29.696476 #1]  WARN -- : Skipping ./chapi-domain/src/test/kotlin/chapi/domain/expr/ExpressionTest.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:29.696522 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:29.980856 #1]  WARN -- : Skipping ./chapi-domain/src/main/kotlin/chapi/domain/core/CodeAnnotation.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:29.981175 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:29.986230 #1]  WARN -- : Skipping ./chapi-domain/src/main/kotlin/chapi/domain/core/CodeCall.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:29.986273 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:29.994645 #1]  WARN -- : Skipping ./chapi-domain/src/main/kotlin/chapi/domain/core/CodeField.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:29.994686 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:30.012335 #1]  WARN -- : Skipping ./chapi-domain/src/main/kotlin/chapi/domain/core/CodeDataStruct.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:30.012384 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:30.034728 #1]  WARN -- : Skipping ./chapi-domain/src/main/kotlin/chapi/domain/core/CodeFunction.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:30.034977 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:30.059418 #1]  WARN -- : Skipping ./chapi-domain/src/main/kotlin/chapi/domain/core/CodeProperty.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:30.059464 #1]  WARN -- : Response status: 422
W, [2024-10-25T13:16:30.068532 #1]  WARN -- : Skipping ./chapi-domain/src/main/kotlin/chapi/domain/core/CodeContainer.kt due to CC::Parser::Client::HTTPError
W, [2024-10-25T13:16:30.068761 #1]  WARN -- : Response status: 422