commit | f16cadac6e6c3d586bbe979f3ab32da6ff098461 | [log] [tgz] |
---|---|---|
author | Scott Lee <ddoman@chromium.org> | Mon Jan 29 18:45:35 2024 |
committer | Scott Lee <ddoman@chromium.org> | Mon Jan 29 18:45:35 2024 |
tree | 4f657adf6bd0deb514b0dc85ec460cf79d6f0b29 | |
parent | d10987d4290f25e4cd3d39570a1ba92153ab7290 [diff] |
[chromium-behaviour] lint fixes All the changes are made by `make lint_fix` except for one change, which I left a comment and should be safe. Although not all the logc/functions with the lint fixes have unit tests, I assume this existing tests are good enough. Change-Id: I63fdb6d54fb113b46c71e8ee6b36afff0cd3f358
This plugin must be placed inside the Gerrit plugins directory:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit/plugins git clone https://chromium.googlesource.com/infra/gerrit-plugins/chromium-behavior
Run the commands below in web/.
For running TypeScript unit tests execute:
make test
For checking or fixing eslint formatter problems run:
make lint_test make lint_fix
For testing the plugin with Gerrit FE Dev Helper the command below builds the JavaScript bundle and copies it to the plugins/chromium-behavior
folder:
make build
Start polygerit-ui server:
./polygerrit-ui/run-server.sh --plugins="plugins"
and let the Dev Helper redirect from .+/plugins/chromium-behavior/static/chromium-behavior.js
to http://localhost:8081/plugins/chromium-behavior.js
.