terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

get the support for scala #124

Closed terryyin closed 8 years ago

terryyin commented 8 years ago

I've cherry picked the implementation and tests for scala.

It seems the ObjC parameter counting and comments counting are also interesting. I will cherry pick them later.

serjant commented 8 years ago

Yeah, but the ObjC comments extracting is still buggy - working on this, need to write a bunch of tests for this one. Also there is a bug in extracting the functions' names in ObjC lang parser

terryyin commented 8 years ago

What is the bug?

On 9 Jun 2016, at 2:32 AM, David Baum notifications@github.com wrote:

Yeah, but the ObjC comments extracting is still buggy - working on this, need to write a bunch of tests for this one. Also there is a bug in extracting the functions' names in ObjC lang parser

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/terryyin/lizard/pull/124#issuecomment-224685690, or mute the thread https://github.com/notifications/unsubscribe/AAwJYoLEQ8R8xlNd-PivO6hqIoaMslovks5qJwrNgaJpZM4Ie0n9.

serjant commented 8 years ago

Take a look at the following piece of Obj-C code, it has the declared - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil function which contain two parameters nibNameOrNil and nibBundleOrNil, but the tests show that the parameter_count equals to 1 instead of having the value 2:

#import "ProcessesViewController.h" #import "LogsViewController.h" #import "ProcessesTableViewCell.h" #import "SystemUtility.h" #import "Process.h" #import "MBProgressHUD.h"

@interface ProcessesViewController ()

@end

@implementation ProcessesViewController

@synthesize processesTableView; @synthesize tableContents; @synthesize sortedKeys; @synthesize adView;

(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.title = NSLocalizedString(@"Processes", @"Processes"); if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) { self.tabBarItem.image = [UIImage imageNamed:@"first@2x"]; } else { self.tabBarItem.image = [UIImage imageNamed:@"first"]; } }

return self; }

@end