Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5765

Add LintTest, to apply custom lint rules to source code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.35.0
    • None
    • None

    Description

      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.)

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              julianhyde Julian Hyde
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: