2017-25 © Pedro Peláez
 

library typechecker-client

Type checker client library for Hack

image

hhpack/typechecker-client

Type checker client library for Hack

  • Saturday, February 18, 2017
  • by holyshared
  • Repository
  • 1 Watchers
  • 1 Stars
  • 172 Installations
  • Hack
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

typechecker-client

Latest Stable Version Build Status Dependency Status License, (*1)

Basic usage

Examples of the type of check will be as follows., (*2)

use HHPack\TypeChecker\TypeCheckerClient;

$client = new TypeCheckerClient(getcwd());

await $client->restart();

$result = await $client->check();

if ($result->isPassed()) {
    echo "Passed!!", PHP_EOL;
} else {
    echo "Failed!!", PHP_EOL;
}

Type of coverage

Examples of the type of coverage will be as follows., (*3)

use HHPack\TypeChecker\TypeCheckerClient;
use HHPack\TypeChecker\Coverage\File;

$client = new TypeCheckerClient(getcwd());
await $client->restart();

$result = await $client->coverage();
$files = $result->filter(($item) ==> {
    return $item instanceof File;
});

foreach ($files as $file) {
    $formattedParsentage = sprintf('%6.2f%%', (float) $file->parsentage() * 100); 
    echo $formattedParsentage, ' ', $file->name(), PHP_EOL;
}

API of Client

  • version - return type checker version
  • init - generate configuration file
  • start - starts a hack server
  • stop - stops a hack server
  • restart - restarts a hack server
  • check - return result of type check
  • coverage - return result of coverage

Run the test

You can run the test with the following command., (*4)

composer install
composer test

The Versions

18/02 2017

dev-master

9999999-dev

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

18/02 2017

1.0.0

1.0.0.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

14/01 2016

0.6.1

0.6.1.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

10/01 2016

0.6.0

0.6.0.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

10/01 2016

0.5.0

0.5.0.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

29/11 2015

0.4.0

0.4.0.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

16/11 2015

0.3.2

0.3.2.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

15/11 2015

0.3.1

0.3.1.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

15/11 2015

0.3.0

0.3.0.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

15/11 2015

0.2.4

0.2.4.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

15/11 2015

0.2.3

0.2.3.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

15/11 2015

0.2.2

0.2.2.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

13/11 2015

0.2.1

0.2.1.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

12/11 2015

0.2.0

0.2.0.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker

31/10 2015

0.1.0

0.1.0.0

Type checker client library for Hack

  Sources   Download

MIT

The Requires

 

The Development Requires

by Noritaka Horio

client hack hhvm typechecker