Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 64 for Deadcode (0.2 sec)

  1. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginToolchainsIntegrationTest.groovy

            file("build/reports/checkstyle/main.html").assertExists()
        }
    
        def "analyze bad code with the toolchain JDK"() {
            executer.withDefaultLocale(new Locale('en'))
            badCode()
            def jdk = setupExecutorForToolchains()
            writeBuildFileWithToolchainsFromJavaPlugin(jdk)
            writeConfigFileWithTypeName()
    
            expect:
            fails("checkstyleMain")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  2. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcGroovyVersionIntegrationTest.groovy

            latestGroovy3Version | CodeNarcPlugin.STABLE_VERSION
            latestGroovy4Version | CodeNarcPlugin.STABLE_VERSION_WITH_GROOVY4_SUPPORT
        }
    
        def "analyze bad code"() {
            badCode()
            writeBuildFile(groovyVersion, codenarcVersion)
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':codenarcTest'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcTestFixture.groovy

            file("src/main/groovy/org/gradle/Class2.groovy") << "package org.gradle; class Class2 { }"
            file("src/test/groovy/org/gradle/TestClass2.groovy") << "package org.gradle; class TestClass2 { }"
        }
    
        def badCode() {
            file("src/main/groovy/org/gradle/class1.java") << "package org.gradle; class class1 { }"
            file("src/main/groovy/org/gradle/Class2.groovy") << "package org.gradle; class Class2 { }"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 08:01:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. cmd/os_unix.go

    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    func readDirFn(dirPath string, fn func(name string, typ os.FileMode) error) error {
    	fd, err := openFileWithFD(dirPath, readMode, 0o666)
    	if err != nil {
    		if osErrToFileErr(err) == errFileNotFound {
    			return nil
    		}
    		if !osIsPermission(err) {
    			return osErrToFileErr(err)
    		}
    		// There may be permission error when dirPath
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompilerIntegrationSpec.groovy

            javaClassFile("compile/test/Person.class").exists()
        }
    
        def "compile bad code breaks the build and compilation error doesn't show link to help.gradle.org"() {
            given:
            badCode()
    
            when:
            fails("compileJava")
    
            then:
            output.contains(logStatement())
            failure.assertHasErrorOutput("';' expected")
            failure.assertNotOutput("https://help.gradle.org")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 01 01:34:12 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  6. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/groovy/compile/AbstractBasicGroovyCompilerIntegrationSpec.groovy

            buildFile << """
                apply plugin: "groovy"
                ${mavenCentralRepository()}
                compileGroovy.options.failOnError = false
            """.stripIndent()
    
            and:
            badCode()
    
            expect:
            succeeds 'compileGroovy'
        }
    
        def "compile bad groovy code do not fail the build when groovyOptions.failOnError is false"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 27K bytes
    - Viewed (0)
  7. src/compress/flate/deflate_test.go

    }
    
    func (b *syncBuffer) Write(p []byte) (n int, err error) {
    	n, err = b.buf.Write(p)
    	b.signal()
    	return
    }
    
    func (b *syncBuffer) WriteMode() {
    	b.mu.Lock()
    }
    
    func (b *syncBuffer) ReadMode() {
    	b.mu.Unlock()
    	b.signal()
    }
    
    func (b *syncBuffer) Close() error {
    	b.closed = true
    	b.signal()
    	return nil
    }
    
    func testSync(t *testing.T, level int, input []byte, name string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  8. src/go/types/check_test.go

    			for line, errList := range filemap {
    				for _, err := range errList {
    					t.Errorf("%s:%d:%d: %s", filename, line, err.col, err.text)
    				}
    			}
    		}
    	}
    }
    
    func readCode(err Error) errors.Code {
    	v := reflect.ValueOf(err)
    	return errors.Code(v.FieldByName("go116code").Int())
    }
    
    // boolFieldAddr(conf, name) returns the address of the boolean field conf.<name>.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    	if contextCanceled(ctx) {
    		return nil, time.Time{}, ctx.Err()
    	}
    
    	if err := checkPathLength(itemPath); err != nil {
    		return nil, time.Time{}, err
    	}
    
    	f, err := OpenFile(itemPath, readMode, 0o666)
    	if err != nil {
    		return nil, time.Time{}, err
    	}
    	defer f.Close()
    	stat, err := f.Stat()
    	if err != nil {
    		return nil, time.Time{}, err
    	}
    	if stat.IsDir() {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGenerator.java

            methodVisitor.visitCode();
            return methodVisitor;
        }
    
        private void putFirstMethodArgumentOnStack(MethodVisitor methodVisitor, Type argType) {
            int loadCode = argType.getOpcode(ILOAD);
            methodVisitor.visitVarInsn(loadCode, 1);
        }
    
        private void putFirstMethodArgumentOnStack(MethodVisitor methodVisitor) {
            putFirstMethodArgumentOnStack(methodVisitor, OBJECT_TYPE);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 55.3K bytes
    - Viewed (0)
Back to top