Page MenuHomePhabricator

Using the save_lint.php script
Closed, WontfixPublic

Description

I like the idea of the ./scripts/repository/save_lint.php and was keen to test it out, but I can't work out how it is intended to be used.

I am running /path/to/phabricator/scripts/repository/save_lint.php from the directory containing the repository that I wish to lint. However, I get the following error:

Saving lint errors to database...
[2014-04-10 07:35:11] EXCEPTION: (Exception) Couldn't find repository for libgafutil. at [/data/www/phabricator/src/applications/diffusion/DiffusionLintSaveRunner.php:65]
  #0 DiffusionLintSaveRunner::run(.) called at [/data/www/phabricator/scripts/repository/save_lint.php:56]

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Repositories.
joshuaspence added a subscriber: joshuaspence.
epriestley claimed this task.

Best option: wait for T1049, and lint-via-Harbormaster, which will probably be available within a few months.

Alternate option:

  • Define an Arcanist Project in .arcconfig in the working copy.
  • Using the Repositories tool in the web UI, associate the project with a repository.
  • That will probably make save_lint.php work.
  • But maybe not.
  • Wait for T1049 if not.