Add unit test for cros_lint.ts

 * Return Diagnostic[] to make code more testable.
 * Fix how Diagnostic is constructed.
 * Work around a bug in cpplint.py, where line numbers are 1-based,
   except the copyright warning.

BUG=b:214322467
TEST=ran test in the IDE and manually verified that linter still works.

Change-Id: I1deed3095eff4b03b1aeeb051b87eedafb5af98c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/ide_tooling/+/3424171
Reviewed-by: Keigo Oka <[email protected]>
Commit-Queue: Tomasz Tylenda <[email protected]>
Tested-by: Tomasz Tylenda <[email protected]>
2 files changed
tree: b6a4ca55dadb8f0efdd12902a2e5699d4b68cbaa
  1. cros-ide/
  2. cros-sdk-proxy/
  3. docs/
  4. .presubmitignore
  5. OWNERS
  6. PRESUBMIT.cfg
  7. README.md
README.md

IDE Tooling

IDE tools for Chrome OS developers.

Main Components

  • cros-sdk proxy

Details TBD

  • vscode plugin

Details TBD