Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getCheckstyleConfig (0.28 sec)

  1. platforms/documentation/docs/src/samples/templates/precompiled-script-plugin-utils/src/main/java/com/example/CheckstyleUtil.java

    import java.io.Reader;
    import java.nio.charset.StandardCharsets;
    
    /**
     * Utility class for extracting the checkstyle.xml used by other plugins
     */
    public abstract class CheckstyleUtil {
        public static String getCheckstyleConfig(String resourcePath) throws IOException {
            InputStream in = CheckstyleUtil.class.getResourceAsStream(resourcePath);
    
            StringBuilder sb = new StringBuilder();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 814 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/samples/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/main/groovy/com.myorg.java-conventions.gradle

    repositories {
        mavenCentral()
    }
    
    // Use the Checkstyle rules provided by the convention plugin
    // Do not allow any warnings
    checkstyle {
        config = resources.text.fromString(com.example.CheckstyleUtil.getCheckstyleConfig("/checkstyle.xml"))
        maxWarnings = 0
    }
    
    // Enable deprecation messages when compiling Java code
    tasks.withType(JavaCompile).configureEach {
        options.compilerArgs << "-Xlint:deprecation"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 914 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/groovy/buildSrc/src/main/groovy/myproject.java-conventions.gradle

    repositories {
        mavenCentral()
    }
    
    // Use the Checkstyle rules provided by the convention plugin
    // Do not allow any warnings
    checkstyle {
        config = resources.text.fromString(com.example.CheckstyleUtil.getCheckstyleConfig("/checkstyle.xml"))
        maxWarnings = 0
    }
    
    // Enable deprecation messages when compiling Java code
    tasks.withType(JavaCompile).configureEach {
        options.compilerArgs << "-Xlint:deprecation"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 914 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/build-organization/publishing-convention-plugins/kotlin/convention-plugins/src/main/kotlin/com.myorg.java-conventions.gradle.kts

    repositories {
        mavenCentral()
    }
    
    // Use the Checkstyle rules provided by the convention plugin
    // Do not allow any warnings
    checkstyle {
        config = resources.text.fromString(com.example.CheckstyleUtil.getCheckstyleConfig("/checkstyle.xml"))
        maxWarnings = 0
    }
    
    // Enable deprecation messages when compiling Java code
    tasks.withType<JavaCompile>().configureEach {
        options.compilerArgs.add("-Xlint:deprecation")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 909 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/samples/incubating/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/main/groovy/com.myorg.java-conventions.gradle

    repositories {
        mavenCentral()
    }
    
    // Use the Checkstyle rules provided by the convention plugin
    // Do not allow any warnings
    checkstyle {
        config = resources.text.fromString(com.example.CheckstyleUtil.getCheckstyleConfig("/checkstyle.xml"))
        maxWarnings = 0
    }
    
    // Enable deprecation messages when compiling Java code
    tasks.withType(JavaCompile).configureEach {
        options.compilerArgs << "-Xlint:deprecation"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 914 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/samples/incubating/build-organization/publishing-convention-plugins/kotlin/convention-plugins/src/main/kotlin/com.myorg.java-conventions.gradle.kts

    repositories {
        mavenCentral()
    }
    
    // Use the Checkstyle rules provided by the convention plugin
    // Do not allow any warnings
    checkstyle {
        config = resources.text.fromString(com.example.CheckstyleUtil.getCheckstyleConfig("/checkstyle.xml"))
        maxWarnings = 0
    }
    
    // Enable deprecation messages when compiling Java code
    tasks.withType<JavaCompile>().configureEach {
        options.compilerArgs.add("-Xlint:deprecation")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 909 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/kotlin/buildSrc/src/main/kotlin/myproject.java-conventions.gradle.kts

    repositories {
        mavenCentral()
    }
    
    // Use the Checkstyle rules provided by the convention plugin
    // Do not allow any warnings
    checkstyle {
        config = resources.text.fromString(com.example.CheckstyleUtil.getCheckstyleConfig("/checkstyle.xml"))
        maxWarnings = 0
    }
    
    // Enable deprecation messages when compiling Java code
    tasks.withType<JavaCompile>().configureEach {
        options.compilerArgs.add("-Xlint:deprecation")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 909 bytes
    - Viewed (0)
Back to top