[ 
https://issues.apache.org/jira/browse/CALCITE-5765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149418#comment-18149418
 ] 

Julian Hyde commented on CALCITE-5765:
--------------------------------------

I used a bunch of other tools, e.g. checkstyle. But they are not 
Turing-complete languages, so some checks always fell through the cracks. 
Puffin is modeled after Awk, so it helps handle streaming, regexes and state, 
and minimizes interference between rules.

> Add LintTest, to apply custom lint rules to source code
> -------------------------------------------------------
>
>                 Key: CALCITE-5765
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5765
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.35.0
>
>
> Add {{LintTest}}, to apply custom lint rules to source code. If there are any 
> violations, the test prints the warnings and fails.
> Example lint rules:
>  * Javadoc paragraphs must be separated by blank lines
>  * Javadoc paragraphs must start with {{<p>}}
>  * In Javadoc, there must be a blank line between the description
>   and the first {{@param}}
> {{LintTest}} is built using Puffin (see CALCITE-5764), which allows regular 
> expressions to be applied to individual lines and state that is carried from 
> one line to the next. (The regular expressions provided by Autostyle are too 
> cumbersome to match multi-line patterns.)



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to