Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for SnippetLengthCheck (0.07 seconds)

  1. build-conventions/src/main/java/org/elasticsearch/gradle/internal/checkstyle/SnippetLengthCheck.java

    import java.util.function.BiConsumer;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    /**
     * Checks the snippets included in the docs aren't too wide to fit on
     * the page.
     */
    public class SnippetLengthCheck extends AbstractFileSetCheck {
        private static final Pattern START = Pattern.compile("^( *)//\\s*tag::(.+?)\\s*$", Pattern.MULTILINE);
        private int max;
    
        /**
         * The maximum width that a snippet may have.
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jun 10 23:06:44 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/resources/checkstyle.xml

        characters then it'll need to scroll. This fails the build if it sees
        such snippets.
      -->
      <module name="org.elasticsearch.gradle.internal.checkstyle.SnippetLengthCheck">
        <property name="id" value="SnippetLength" />
        <property name="max" value="76" />
      </module>
    
      <!-- Its our official line length! See checkstyle_suppressions.xml for the files that don't pass this. For now we
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 12:48:46 GMT 2021
    - 6K bytes
    - Click Count (0)
Back to Top