]> khamidou — GitHub mirrors - arcanist.git/commit
If the Script-and-Regex linter captures no "line" text, treat the message as affectin...
authorepriestley <git@epriestley.com>
Tue, 12 Jan 2016 01:18:58 +0000 (17:18 -0800)
committerepriestley <git@epriestley.com>
Tue, 12 Jan 2016 01:37:34 +0000 (17:37 -0800)
commit05c12eb9d9cb615112e754407b32a8469e98e100
treee18d69df667d5507defd5e94e9aa3a2fe1f7cb22
parentaeb374b3334891d436334ac382bb63e2e4620c95
If the Script-and-Regex linter captures no "line" text, treat the message as affecting the entire file

Summary: Fixes T10124.

Test Plan:
Added this "linter" to `.arclint`:

```
    "thing": {
      "type": "script-and-regex",
      "script-and-regex.script": "echo every file is very bad #",
      "script-and-regex.regex": "/^(?P<message>.*)/"
    }
```

...to produce this diff. Also made a variant of it which matches lines to make sure that still works.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10124

Differential Revision: https://secure.phabricator.com/D15000
src/lint/linter/ArcanistScriptAndRegexLinter.php