This is an archive of the discontinued LLVM Phabricator instance.

[Polly] Added arcanist linters and cleaned errors and warnings
ClosedPublic

Authored by jdoerfert on Aug 14 2014, 3:43 PM.

Details

Summary
Arcanist (arc) will now always run linters before uploading any new
commit to Phabricator. All errors/warnings (or their absence) will be
shown in the web interface together with a explanation by the commiter
(arcanist will ask the commiter if the build was not clean).

The linters include:
  - clang-format
  - spelling check
  - permissions check (aka. chmod)
  - filename check
  - merge conflict marker check
Note, that their scope is sometimes limited (see .arclint for
details).

This commit also fixes all errors and warnings these linters reported,
namely:
  - spelling mistakes and typos
  - executable permissions for various text files

Diff Detail

Repository
rL LLVM

Event Timeline

jdoerfert updated this revision to Diff 12527.Aug 14 2014, 3:43 PM
jdoerfert retitled this revision from to [Polly] Added arcanist linters and cleaned errors and warnings.
jdoerfert edited the test plan for this revision. (Show Details)
jdoerfert added reviewers: simbuerg, grosser, sebpop.
jdoerfert updated this object.
jdoerfert added subscribers: Restricted Project, Unknown Object (MLST).
sebpop edited edge metadata.Aug 15 2014, 3:39 AM

LGTM.

What happens if a patch with lint errors gets committed the old way without being submitted through arc?
Will that cause errors in the next patch submitted with arc?

jdoerfert added a comment.EditedAug 15 2014, 5:24 PM

It might cause errors/warnings in the next commit, yes. It depends on the kind of linter I think. Afaik. not all run on unchanged files, clang-format will run though, so the next commiter might want to fix the repo with a commit first.

I will use arcanist from now on anyway (unless I get resistance from you guys).

jdoerfert closed this revision.Aug 17 2014, 5:49 PM
jdoerfert updated this revision to Diff 12599.

Closed by commit rL215871 (authored by @jdoerfert).