[
https://issues.apache.org/jira/browse/THRIFT-942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921973#action_12921973
]
Anthony Molinaro commented on THRIFT-942:
-----------------------------------------
One use case I've had for something like this is the following.
I have a thrift definition which I want to manage as an rpm. I use framewerk
to manage it, which uses autotools. I then have 2-4 other rpms which are the
language specific bindings. The language specific packages have dependencies
on their languages, as well as the rpm which has the thrift definition. So if
I make a mistake in the thrift definition package and release the rpm to a yum
repo, then yum install and build the binding it fails. I often get around this
by generating something and then just removing it. It would be nice to run
through generation with strictness turned on, but not actually generate any
bindings. In other words if the thrift will generate with no errors, output
nothing and return 0, otherwise output the error and return non-zero. In fact
if there were language specific warnings/errors, you could pass the gen
language and the lint flag and it would tell you whether you could have
problems with that language.
Anyway, I'd just like a way to determine if a thrift file is valid without
actually generating any code. Not sure if that's really lint but maybe it's a
start?
> Lint functionality
> ------------------
>
> Key: THRIFT-942
> URL: https://issues.apache.org/jira/browse/THRIFT-942
> Project: Thrift
> Issue Type: New Feature
> Environment: All
> Reporter: Phillip Oldham
> Priority: Trivial
>
> Add a lint test for (multiple) .thrift files specified on the command-line.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.