Skip to content

Commit

Permalink
NoVerify v0.5.1 (#1146)
Browse files Browse the repository at this point in the history
  • Loading branch information
i582 authored Sep 5, 2021
1 parent b6f718c commit 1d121f2
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ AFTER_COMMIT=`git rev-parse HEAD`
GOPATH_DIR=`go env GOPATH`
BIN_NAME=noverify
PKG=github.com/VKCOM/noverify/src/cmd
VERSION=0.5.0
VERSION=0.5.1

install:
go install -ldflags "-X '$(PKG).BuildVersion=$(VERSION)' -X '$(PKG).BuildTime=$(NOW)' -X '$(PKG).BuildOSUname=$(OS)' -X '$(PKG).BuildCommit=$(AFTER_COMMIT)'" .
Expand Down
Binary file modified docs/playground/main.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion playground/www/js/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ var GolangWasm = /** @class */ (function () {
};
return GolangWasm;
}());
var defaultCode = "<?php\n\nnamespace NoVerify;\n\nclass PlaygroundBase {\n public abstract function analyze();\n}\n\n/**\n * @property $a\n */\nclass Playground extends PlaygroundBase {\n use PlaygroundTrait;\n \n /** @var Analyzer */\n var $analyzer = null;\n /** @var callable(string): void */\n var $cb = null;\n \n \n /**\n * @param Analyzer $a\n * @param callable(string): void $cb\n * @param int $id\n */\n function __construct(Analyzer $a, callable $cb) {\n $this->cb = $cb;\n $analyzer = $analyzer;\n }\n \n /** \n * @see Plauground\n * @return Reports[]\n */\n public function getReports(): array {\n $callback = $this->cb;\n \n $warnings_count = 0;\n $errors_count = 0;\n $reports = array(\"\");\n foreach ($reports as $index => $report) {\n $hasReports = true;\n \n switch ($report[0]) {\n case 'w':\n $warnings_count++;\n break;\n case 'e':\n $warnings_count++;\n break;\n }\n $callback($report);\n }\n \n $last_report = $reports[count($reports)];\n \n if (DEBUG) {\n printf(\"Log: %s, time: %d, has %d\", (string)$last_report, $hasReports ?? false);\n }\n \n return [$reports, $errors_count, $warnings_count];\n }\n \n private function __set($name) {}\n private function __get($name) {}\n}\n\n/**\n * @param array{obj:?Analyzer,id:int} $analyzers\n * @param callable(string): void $cb\n */\n#[Pure]\nfunction runAnalyzers($analyzers, $cb) {\n $analyzers[\"obj\"]->analyze();\n $cb();\n}\n\nfunction main() {\n $analyzers = [\"obj\" => new Analyzer(), \"id\" => 1];\n $cb = function(string $v): void {};\n \n runAnalyzers($cb, $analyzers);\n}\n";
var defaultCode = "<?php\n\nnamespace NoVerify;\n\nclass PlaygroundBase {\n public abstract function analyze();\n}\n\n/**\n * @property $a\n */\nclass Playground extends PlaygroundBase {\n use PlaygroundTrait;\n \n /** @var Analyzer */\n var $analyzer = null;\n /** @var callable(string): void */\n var $cb = null;\n \n \n /**\n * @param Analyzer $a\n * @param callable(string): void $cb\n * @param int $id\n */\n function __construct(Analyzer $a, callable $cb) {\n $this->cb = $cb;\n $analyzer = $analyzer;\n }\n \n /** \n * @see Plauground\n * @return Reports[]\n */\n public function getReports(): array {\n $callback = $this->cb;\n \n $warnings_count = 0;\n $errors_count = 0;\n $reports = array(\"\");\n foreach ($reports as $index => $report) {\n $hasReports = true;\n \n switch ($report[0]) {\n case 'w':\n $warnings_count++;\n break;\n case 'e':\n $warnings_count++;\n break;\n }\n $callback($report);\n }\n \n $last_report = $reports[count($reports)];\n \n if (DEBUG) {\n printf(\"Log: %s, time: %d, has %d\", (string)$last_report, $hasReports ?? false);\n }\n \n return [$reports, $errors_count, $warnings_count];\n }\n \n private function __set($name) {}\n private function __get($name) {}\n}\n\n/**\n * @param array{obj:?Analyzer,id:int} $analyzers\n * @param callable(string): void $cb\n */\nfunction runAnalyzers($analyzers, $cb) {\n $analyzers[\"obj\"]->analyze();\n $cb();\n}\n\nfunction main() {\n $analyzers = [\"obj\" => new Analyzer(), \"id\" => 1];\n $cb = function(string $v): void {};\n \n runAnalyzers($cb, $analyzers);\n}\n";
function bindOptions(configurator) {
var config = configurator.getConfig();
var optionsList = document.getElementsByClassName('options-list')[0];
Expand Down
Binary file modified playground/www/main.wasm
Binary file not shown.
1 change: 1 addition & 0 deletions src/cmd/composer-get/src/Downloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Downloader {
"0.3.0",
"0.4.0",
"0.5.0",
"0.5.1",
];

/**
Expand Down

0 comments on commit 1d121f2

Please sign in to comment.