]> khamidou — GitHub mirrors - arcanist.git/commit
Be more strict with the type of `.arclint` properties.
authorJoshua Spence <josh@joshuaspence.com>
Tue, 13 May 2014 22:17:56 +0000 (15:17 -0700)
committerepriestley <git@epriestley.com>
Tue, 13 May 2014 22:17:56 +0000 (15:17 -0700)
commitb744ed9a19ce755dfa674013d8db92a273f6e356
treea389fee21611d8bfe0bcf96247f0a553313682fc
parent79285208c426aa131d929ec8c5e0e36ccc750960
Be more strict with the type of `.arclint` properties.

Summary: Although this provides less context in terms of the error message (for example, `Parameter has invalid type. Expected type 'optional regex|list<regex>', got type 'list<string>'.`), I think that it is the right approach. I think that `PhutilTypeSpec::checkMap` should be improved such that additional context is provided in the exception message.

Test Plan: Ran `arc lint`. Modified `.arclint` to contain an invalid regex and ran `arc lint` again.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9089
src/lint/engine/ArcanistConfigurationDrivenLintEngine.php