Skip to content

Commit

Permalink
NoVerify v0.5.0 (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
i582 authored Aug 31, 2021
1 parent 3f4e380 commit a7db861
Show file tree
Hide file tree
Showing 3 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.4.0
VERSION=0.5.0

install:
go install -ldflags "-X '$(PKG).BuildVersion=$(VERSION)' -X '$(PKG).BuildTime=$(NOW)' -X '$(PKG).BuildOSUname=$(OS)' -X '$(PKG).BuildCommit=$(AFTER_COMMIT)'" .
Expand Down
2 changes: 1 addition & 1 deletion docs/playground/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 */function 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
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 @@ -17,6 +17,7 @@ class Downloader {
public const VERSIONS = [
"0.3.0",
"0.4.0",
"0.5.0",
];

/**
Expand Down

0 comments on commit a7db861

Please sign in to comment.