3
  1. I created a JSHintLinter in the arcanist folder which is in Users/vignesh.s/arc/arcanist
  2. This is my .arcconfig file.
{
  "project_id": "convert",
  "load": [
    "/Users/vignesh.s/arc/arcanist/src/lint/engine/JsLintEngine.php"
  ],
  "lint.engine": "JsLintEngine"
}
  1. When I run arc lint it says this error

Usage Exception: No lint engine configured for this project. Edit '.arcconfig' to specify a lint engine, or create an '.arclint' file.

  1. But when I run using arc lint -engine JsLintEngine, it simply works

Can you tell me what is wrong here?

Kirby
  • 15,127
  • 10
  • 89
  • 104
Vignesh
  • 55
  • 1
  • 7

1 Answers1

5

Your .arcconfig file is probably not being read. Usually, this is because you've accidentally put it in the wrong place. To troubleshoot this:

  • Make sure arc is up to date (by running arc upgrade).
  • Use arc lint --trace to see where configuration is loaded from.

The first few lines of output should show the .arcconfig file being loaded, with a message similar to this one:

...
Working Copy: Reading .arcconfig from "/path/to/project/.arcconfig".
...

If arc can not find a .arcconfig file, you will see a message like this instead:

...
Working Copy: Unable to find .arcconfig in any of these locations: /path/to/project/.arcconfig.
...

If you see that second message, move your .arcconfig file from where ever you currently have it to the specified location.

Evan Priestley
  • 3,287
  • 23
  • 16