File tree Expand file tree Collapse file tree 8 files changed +208
-16
lines changed
analysis/analysers/parsers/UnifiedParser/src/test/resources/languageSamples Expand file tree Collapse file tree 8 files changed +208
-16
lines changed Original file line number Diff line number Diff line change 11{
2- "checksum" : " 0f538d7e3dbbc60754cc1e7ce62cc758 " ,
2+ "checksum" : " a93c295c6b5eb058f70f5c0921749dfe " ,
33 "data" : {
44 "projectName" : " " ,
55 "nodes" : [
3030 "max_rloc_per_function" : 6.0 ,
3131 "min_rloc_per_function" : 2.0 ,
3232 "mean_rloc_per_function" : 4.0 ,
33- "median_rloc_per_function" : 4.0
33+ "median_rloc_per_function" : 4.0 ,
34+ "long_method" : 0.0 ,
35+ "long_parameter_list" : 0.0
3436 },
3537 "link" : " " ,
3638 "children" : [],
238240 "analyzers" : [
239241 " unifiedParser"
240242 ]
243+ },
244+ "long_method" : {
245+ "title" : " Long Method" ,
246+ "description" : " Number of functions with more than 10 real lines of code (rloc)" ,
247+ "hintLowValue" : " " ,
248+ "hintHighValue" : " " ,
249+ "link" : " https://codecharta.com/docs/parser/unified" ,
250+ "direction" : -1 ,
251+ "analyzers" : [
252+ " unifiedParser"
253+ ]
254+ },
255+ "long_parameter_list" : {
256+ "title" : " Long Parameter List" ,
257+ "description" : " Number of functions with more than 4 parameters" ,
258+ "hintLowValue" : " " ,
259+ "hintHighValue" : " " ,
260+ "link" : " https://codecharta.com/docs/parser/unified" ,
261+ "direction" : -1 ,
262+ "analyzers" : [
263+ " unifiedParser"
264+ ]
241265 }
242266 },
243267 "blacklist" : []
Original file line number Diff line number Diff line change 11{
2- "checksum" : " aa9604a28368de86c1cc0a6f920a08a8 " ,
2+ "checksum" : " 1dff0aeafa98d7da752f0dc2539a5304 " ,
33 "data" : {
44 "projectName" : " " ,
55 "nodes" : [
3030 "max_rloc_per_function" : 6.0 ,
3131 "min_rloc_per_function" : 1.0 ,
3232 "mean_rloc_per_function" : 3.67 ,
33- "median_rloc_per_function" : 4.0
33+ "median_rloc_per_function" : 4.0 ,
34+ "long_method" : 0.0 ,
35+ "long_parameter_list" : 0.0
3436 },
3537 "link" : " " ,
3638 "children" : [],
238240 "analyzers" : [
239241 " unifiedParser"
240242 ]
243+ },
244+ "long_method" : {
245+ "title" : " Long Method" ,
246+ "description" : " Number of functions with more than 10 real lines of code (rloc)" ,
247+ "hintLowValue" : " " ,
248+ "hintHighValue" : " " ,
249+ "link" : " https://codecharta.com/docs/parser/unified" ,
250+ "direction" : -1 ,
251+ "analyzers" : [
252+ " unifiedParser"
253+ ]
254+ },
255+ "long_parameter_list" : {
256+ "title" : " Long Parameter List" ,
257+ "description" : " Number of functions with more than 4 parameters" ,
258+ "hintLowValue" : " " ,
259+ "hintHighValue" : " " ,
260+ "link" : " https://codecharta.com/docs/parser/unified" ,
261+ "direction" : -1 ,
262+ "analyzers" : [
263+ " unifiedParser"
264+ ]
241265 }
242266 },
243267 "blacklist" : []
Original file line number Diff line number Diff line change 11{
2- "checksum" : " 036b8c7bcf466e24e4f504e1ff317c16 " ,
2+ "checksum" : " 2ab9b1dbfe13ff304c208dc8379d9043 " ,
33 "data" : {
44 "projectName" : " " ,
55 "nodes" : [
3030 "max_rloc_per_function" : 10.0 ,
3131 "min_rloc_per_function" : 1.0 ,
3232 "mean_rloc_per_function" : 5.33 ,
33- "median_rloc_per_function" : 5.0
33+ "median_rloc_per_function" : 5.0 ,
34+ "long_method" : 0.0 ,
35+ "long_parameter_list" : 0.0
3436 },
3537 "link" : " " ,
3638 "children" : [],
238240 "analyzers" : [
239241 " unifiedParser"
240242 ]
243+ },
244+ "long_method" : {
245+ "title" : " Long Method" ,
246+ "description" : " Number of functions with more than 10 real lines of code (rloc)" ,
247+ "hintLowValue" : " " ,
248+ "hintHighValue" : " " ,
249+ "link" : " https://codecharta.com/docs/parser/unified" ,
250+ "direction" : -1 ,
251+ "analyzers" : [
252+ " unifiedParser"
253+ ]
254+ },
255+ "long_parameter_list" : {
256+ "title" : " Long Parameter List" ,
257+ "description" : " Number of functions with more than 4 parameters" ,
258+ "hintLowValue" : " " ,
259+ "hintHighValue" : " " ,
260+ "link" : " https://codecharta.com/docs/parser/unified" ,
261+ "direction" : -1 ,
262+ "analyzers" : [
263+ " unifiedParser"
264+ ]
241265 }
242266 },
243267 "blacklist" : []
Original file line number Diff line number Diff line change 11{
2- "checksum" : " 44d235c9a2e5ae4680c6e68b87e2f8d5 " ,
2+ "checksum" : " ecdd4579591754b2937bc5f573690edf " ,
33 "data" : {
44 "projectName" : " " ,
55 "nodes" : [
3030 "max_rloc_per_function" : 10.0 ,
3131 "min_rloc_per_function" : 5.0 ,
3232 "mean_rloc_per_function" : 6.4 ,
33- "median_rloc_per_function" : 6.0
33+ "median_rloc_per_function" : 6.0 ,
34+ "long_method" : 0.0 ,
35+ "long_parameter_list" : 0.0
3436 },
3537 "link" : " " ,
3638 "children" : [],
238240 "analyzers" : [
239241 " unifiedParser"
240242 ]
243+ },
244+ "long_method" : {
245+ "title" : " Long Method" ,
246+ "description" : " Number of functions with more than 10 real lines of code (rloc)" ,
247+ "hintLowValue" : " " ,
248+ "hintHighValue" : " " ,
249+ "link" : " https://codecharta.com/docs/parser/unified" ,
250+ "direction" : -1 ,
251+ "analyzers" : [
252+ " unifiedParser"
253+ ]
254+ },
255+ "long_parameter_list" : {
256+ "title" : " Long Parameter List" ,
257+ "description" : " Number of functions with more than 4 parameters" ,
258+ "hintLowValue" : " " ,
259+ "hintHighValue" : " " ,
260+ "link" : " https://codecharta.com/docs/parser/unified" ,
261+ "direction" : -1 ,
262+ "analyzers" : [
263+ " unifiedParser"
264+ ]
241265 }
242266 },
243267 "blacklist" : []
Original file line number Diff line number Diff line change 11{
2- "checksum" : " e30f7a3d850930f1a7c23a9eab5bfc42 " ,
2+ "checksum" : " 0f7979a7ded8beb88acaf3e0048fafbe " ,
33 "data" : {
44 "projectName" : " " ,
55 "nodes" : [
3030 "max_rloc_per_function" : 23.0 ,
3131 "min_rloc_per_function" : 1.0 ,
3232 "mean_rloc_per_function" : 11.14 ,
33- "median_rloc_per_function" : 13.0
33+ "median_rloc_per_function" : 13.0 ,
34+ "long_method" : 4.0 ,
35+ "long_parameter_list" : 0.0
3436 },
3537 "link" : " " ,
3638 "children" : [],
238240 "analyzers" : [
239241 " unifiedParser"
240242 ]
243+ },
244+ "long_method" : {
245+ "title" : " Long Method" ,
246+ "description" : " Number of functions with more than 10 real lines of code (rloc)" ,
247+ "hintLowValue" : " " ,
248+ "hintHighValue" : " " ,
249+ "link" : " https://codecharta.com/docs/parser/unified" ,
250+ "direction" : -1 ,
251+ "analyzers" : [
252+ " unifiedParser"
253+ ]
254+ },
255+ "long_parameter_list" : {
256+ "title" : " Long Parameter List" ,
257+ "description" : " Number of functions with more than 4 parameters" ,
258+ "hintLowValue" : " " ,
259+ "hintHighValue" : " " ,
260+ "link" : " https://codecharta.com/docs/parser/unified" ,
261+ "direction" : -1 ,
262+ "analyzers" : [
263+ " unifiedParser"
264+ ]
241265 }
242266 },
243267 "blacklist" : []
Original file line number Diff line number Diff line change 11{
2- "checksum" : " 4954d0091e9ec209129b711d62750168 " ,
2+ "checksum" : " e6e398d1c6d4a53d47266a07d5ec3d06 " ,
33 "data" : {
44 "projectName" : " " ,
55 "nodes" : [
3030 "max_rloc_per_function" : 11.0 ,
3131 "min_rloc_per_function" : 1.0 ,
3232 "mean_rloc_per_function" : 4.83 ,
33- "median_rloc_per_function" : 4.5
33+ "median_rloc_per_function" : 4.5 ,
34+ "long_method" : 1.0 ,
35+ "long_parameter_list" : 1.0
3436 },
3537 "link" : " " ,
3638 "children" : [],
238240 "analyzers" : [
239241 " unifiedParser"
240242 ]
243+ },
244+ "long_method" : {
245+ "title" : " Long Method" ,
246+ "description" : " Number of functions with more than 10 real lines of code (rloc)" ,
247+ "hintLowValue" : " " ,
248+ "hintHighValue" : " " ,
249+ "link" : " https://codecharta.com/docs/parser/unified" ,
250+ "direction" : -1 ,
251+ "analyzers" : [
252+ " unifiedParser"
253+ ]
254+ },
255+ "long_parameter_list" : {
256+ "title" : " Long Parameter List" ,
257+ "description" : " Number of functions with more than 4 parameters" ,
258+ "hintLowValue" : " " ,
259+ "hintHighValue" : " " ,
260+ "link" : " https://codecharta.com/docs/parser/unified" ,
261+ "direction" : -1 ,
262+ "analyzers" : [
263+ " unifiedParser"
264+ ]
241265 }
242266 },
243267 "blacklist" : []
Original file line number Diff line number Diff line change 11{
2- "checksum" : " f8c870b1b9617059241213111af6e35a " ,
2+ "checksum" : " 9b598cc6f9422008293d8151ffb75000 " ,
33 "data" : {
44 "projectName" : " " ,
55 "nodes" : [
3030 "max_rloc_per_function" : 22.0 ,
3131 "min_rloc_per_function" : 1.0 ,
3232 "mean_rloc_per_function" : 7.62 ,
33- "median_rloc_per_function" : 5.5
33+ "median_rloc_per_function" : 5.5 ,
34+ "long_method" : 3.0 ,
35+ "long_parameter_list" : 1.0
3436 },
3537 "link" : " " ,
3638 "children" : [],
238240 "analyzers" : [
239241 " unifiedParser"
240242 ]
243+ },
244+ "long_method" : {
245+ "title" : " Long Method" ,
246+ "description" : " Number of functions with more than 10 real lines of code (rloc)" ,
247+ "hintLowValue" : " " ,
248+ "hintHighValue" : " " ,
249+ "link" : " https://codecharta.com/docs/parser/unified" ,
250+ "direction" : -1 ,
251+ "analyzers" : [
252+ " unifiedParser"
253+ ]
254+ },
255+ "long_parameter_list" : {
256+ "title" : " Long Parameter List" ,
257+ "description" : " Number of functions with more than 4 parameters" ,
258+ "hintLowValue" : " " ,
259+ "hintHighValue" : " " ,
260+ "link" : " https://codecharta.com/docs/parser/unified" ,
261+ "direction" : -1 ,
262+ "analyzers" : [
263+ " unifiedParser"
264+ ]
241265 }
242266 },
243267 "blacklist" : []
Original file line number Diff line number Diff line change 11{
2- "checksum" : " a506142f38832d4650f19ebec3598934 " ,
2+ "checksum" : " 7560d6ecc728c846acbd2e6f1590c536 " ,
33 "data" : {
44 "projectName" : " " ,
55 "nodes" : [
3030 "max_rloc_per_function" : 23.0 ,
3131 "min_rloc_per_function" : 1.0 ,
3232 "mean_rloc_per_function" : 12.67 ,
33- "median_rloc_per_function" : 14.5
33+ "median_rloc_per_function" : 14.5 ,
34+ "long_method" : 4.0 ,
35+ "long_parameter_list" : 0.0
3436 },
3537 "link" : " " ,
3638 "children" : [],
238240 "analyzers" : [
239241 " unifiedParser"
240242 ]
243+ },
244+ "long_method" : {
245+ "title" : " Long Method" ,
246+ "description" : " Number of functions with more than 10 real lines of code (rloc)" ,
247+ "hintLowValue" : " " ,
248+ "hintHighValue" : " " ,
249+ "link" : " https://codecharta.com/docs/parser/unified" ,
250+ "direction" : -1 ,
251+ "analyzers" : [
252+ " unifiedParser"
253+ ]
254+ },
255+ "long_parameter_list" : {
256+ "title" : " Long Parameter List" ,
257+ "description" : " Number of functions with more than 4 parameters" ,
258+ "hintLowValue" : " " ,
259+ "hintHighValue" : " " ,
260+ "link" : " https://codecharta.com/docs/parser/unified" ,
261+ "direction" : -1 ,
262+ "analyzers" : [
263+ " unifiedParser"
264+ ]
241265 }
242266 },
243267 "blacklist" : []
You can’t perform that action at this time.
0 commit comments