]> khamidou — GitHub mirrors - arcanist.git/commit
Added RuboCop linter
authorcburroughs <chris.burroughs@gmail.com>
Mon, 6 Apr 2015 16:11:06 +0000 (09:11 -0700)
committerepriestley <git@epriestley.com>
Mon, 6 Apr 2015 16:11:15 +0000 (09:11 -0700)
commit41ddd34aeb26be5760107df4d87be7a3da7e2ad0
tree8c05211941bfea62fcb84c91995be62735b59cfd
parent3eacb08273de878eaf05fe0904c3cfe88611bc13
Added RuboCop linter

Test Plan:
Add the following JSON to your `.arclint`:

```lang=json
"rubocop": {
  "type": "rubocop",
  "include": "(\\.rb$)"
}
```

Then, add a ruby file with errors, for instance:

```lang=ruby
def hello()
  puts 'world'
end
```

Run `arc lint`. It should come up with something along the line of: "Omit the parentheses in defs when the method doesn't accept any arguments."

Reviewers: joshuaspence, remon, #blessed_reviewers, epriestley

Reviewed By: joshuaspence, #blessed_reviewers, epriestley

Subscribers: reu, calfzhou, jjooss, cburroughs, chad, Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D10738
src/__phutil_library_map__.php
src/lint/linter/ArcanistRuboCopLinter.php [new file with mode: 0644]
src/lint/linter/__tests__/ArcanistRuboCopLinterTestCase.php [new file with mode: 0644]
src/lint/linter/__tests__/rubocop/convention.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/rubocop/error.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/rubocop/no_errors.lint-test [new file with mode: 0644]
src/lint/linter/__tests__/rubocop/warning.lint-test [new file with mode: 0644]