Commit 5f7050d 1 parent 99dd940 commit 5f7050d Copy full SHA for 5f7050d
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -457,13 +457,13 @@ class NotClassError(Exception):
457
457
if not (tree_class := list ((value for value in tree ))):
458
458
raise NotClassError ('This is not a class' )
459
459
with open (metrics , 'a' , encoding = 'utf-8' ) as metric :
460
- metric .write (f'NoOA { attrs (tree_class )} [CAM] '
460
+ metric .write (f'NoOA { attrs (tree_class )} '
461
461
f'Number of Non-Static (Object) Attributes\n ' )
462
- metric .write (f'NoSA { sattrs (tree_class )} [CAMt] '
462
+ metric .write (f'NoSA { sattrs (tree_class )} '
463
463
f'Number of Static Attributes\n ' )
464
- metric .write (f'NoCC { ctors (tree_class )} [CAMtt] '
464
+ metric .write (f'NoCC { ctors (tree_class )} '
465
465
f'Number of Class Constructors\n ' )
466
- metric .write (f'NoOM { methods (tree_class )} [CAMttt] '
466
+ metric .write (f'NoOM { methods (tree_class )} '
467
467
f'Number of Non-Static (Object) Methods\n ' )
468
468
metric .write (f'NoCM { smethods (tree_class )} '
469
469
f'Number of Static (Class) Methods\n ' )
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ st_list=${TARGET}/temp/structured-list-of-metrics.tex
52
52
rm -f " ${st_list} "
53
53
touch " ${st_list} "
54
54
55
- groups=($( grep -oP ' \[.*?\]' " ${list} " | sed ' s/[][]//g' ) " " )
55
+ groups=($( grep -oP ' \[.*?\]' " ${list} " | sed ' s/[][]//g' || : ) " " )
56
56
for group in " ${groups[@]} " ; do
57
57
if [[ -z " $group " ]]; then
58
58
echo " \item Ungrouped Metrics" >> " ${st_list} "
You can’t perform that action at this time.
0 commit comments