Page MenuHomePhabricator

Support passing generated annotation to ArcanistGeneratedLinter
Closed, InvalidPublic


Currently, ArcanistGeneratedLinter searches for a hard coded annotation '@generated' in the file being linted. If found, it will signal to stop all other linters applicable for that file.

However, a hard coded annotation is not sufficient and limits the usability of this linter to a point that other linters need to implement their own 'ignoreGenerated' option or leverage, if possible, the 'include'/'exclude' properties in .arclint to ignore such files.

It would be preferable to allow user to specify the annotation to match via .arclint and hence making this linter more useful in multi-linter configurations.

Event Timeline

Can you describe a specific case where a generator emits some equivalent substring and can not be modified to emit a different substring? See Describing Root Problems.

We don't have enough information about this problem to design a solution, and haven't received more information in more than a month. See Describing Root Problems and Contributing Feature Requests for details on how to submit an actionable feature request.