1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2025-03-27 19:50:19 +01:00
phorge-arcanist/src/lint
jjoos 439413ae29 Remove the noconfig flag
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
2015-01-06 06:59:45 -08:00
..
engine Rename UnitTestableArcanistLintEngine for consistency 2015-01-05 06:44:49 +11:00
linter Remove the noconfig flag 2015-01-06 06:59:45 -08:00
renderer Rename ArcanistLintRenderer subclasses 2014-07-25 08:16:29 +10:00
ArcanistLintMessage.php Remove @group annotations 2014-07-09 09:12:13 +10:00
ArcanistLintPatcher.php Apply some autofix linter rules 2014-09-10 06:50:32 +10:00
ArcanistLintResult.php Remove @group annotations 2014-07-09 09:12:13 +10:00
ArcanistLintSeverity.php Remove @group annotations 2014-07-09 09:12:13 +10:00