]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove the noconfig flag
authorjjoos <jan@deelstra.org>
Tue, 6 Jan 2015 14:59:36 +0000 (06:59 -0800)
committerepriestley <git@epriestley.com>
Tue, 6 Jan 2015 14:59:45 +0000 (06:59 -0800)
Summary:
D11196 introduced a regression that made it impossible for coffeelint to read any configuration. I'm reverting the change in that diff.

Created a pull request changing the documentation of coffeelint to make sure I'm interpreting this flag correctly: https://github.com/clutchski/coffeelint/pull/364

Test Plan:
- patch
- npm install -g coffeelint

- create a `test.coffee` file with:
```
# 1234567890
```
- `arc lint test.coffee`
```
 OKAY  No lint warnings.
```
- create a `coffeelint.json` with
```
{
  "max_line_length": {
    "value": 10
  }
}
```
- `arc lint test.coffee`, expected output:
```
>>> Lint for test.coffee:

   Error  (COFFEE)
    Line exceeds maximum allowed length.

    >>>        1 # 1234567890
```
- create a `.arclint` with
```
{
  "linters": {
    "coffeelint": {
      "type": "coffeelint",
      "coffeelint.config": "coffee_lint_config_with_different_name.json"
    }
  }
}
```
- rename `coffeelint.json` to `coffee_lint_config_with_different_name.json`
- `arc lint test.coffee`, expected output:
```
>>> Lint for test.coffee:

   Error  (COFFEE)
    Line exceeds maximum allowed length.

    >>>        1 # 1234567890
```

Reviewers: Korvin, joshuaspence, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11250

src/lint/linter/ArcanistCoffeeLintLinter.php

index 142154e51f58cc332c83830cf93e0ce8892f5667..8d911b879c4d1f3507155ac71405c6d9e2030013 100644 (file)
@@ -63,7 +63,6 @@ final class ArcanistCoffeeLintLinter extends ArcanistExternalLinter {
     $options = array(
       '--reporter=checkstyle',
       '--color=never',
-      '--noconfig',
     );
 
     if ($this->config) {