Skip to content

shinhithi/ck

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CK

Simple CK metrics calculator for Java files. No need for bytecode.

Read more about them here: http://www.aivosto.com/project/help/pm-oo-ck.html.

How to use it

java -jar ck.jar /dir/to/your/project/src > output.csv

How to plug in my app

Configure your Maven:

<dependency>
	<groupId>br.com.aniche</groupId>
	<artifactId>ck</artifactId>
	<version>0.0.3</version>
</dependency>

Then, just code:

  String path = "/path/to/the/project";
  
	CKReport report = new CK()
			.plug(() -> new ArchitecturalRole()) //  do you wanna create your own metric?
			.calculate(path);

	for(CKNumber number : report.all()) {
	  // ...
  }

How to Contribute

git clone https://github.com/mauricioaniche/ck.git
cd src/test/resources
echo "/my/dir/to/src/test/project" < project-dir.txt

Then, you can:

  • compile : mvn clean compile
  • test : mvn test
  • eclipse : mvn eclipse:eclipse
  • build : mvn clean compile assembly:single

License

This software is licensed under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 100.0%