repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/AbstractJspNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
import net.sourceforge.pmd.lang.ast.AstVisitor;
import net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode;
abstract class AbstractJspNode extends AbstractJjtreeNode<AbstractJspNod... | 1,139 | 29 | 104 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTJspExpression.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTJspExpression extends AbstractJspNode {
ASTJspExpression(int id) {
super(id);
}
@Override
protected <P, R> R acceptVisitor(JspVisitor<? super... | 406 | 21.611111 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTAttribute.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTAttribute extends AbstractJspNode {
private String name;
ASTAttribute(int id) {
super(id);
}
public String getName() {
return name;
... | 1,380 | 24.109091 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTJspDirective.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTJspDirective extends AbstractJspNode {
/**
* Name of the element-tag. Cannot be null.
*/
private String name;
ASTJspDirective(int id) {
... | 617 | 18.935484 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTJspDirectiveAttribute.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTJspDirectiveAttribute extends AbstractJspNode {
private String name;
private String value;
ASTJspDirectiveAttribute(int id) {
super(id);
}
... | 726 | 18.648649 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTUnparsedText.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTUnparsedText extends AbstractJspNode {
ASTUnparsedText(int id) {
super(id);
}
@Override
protected <P, R> R acceptVisitor(JspVisitor<? super P... | 404 | 21.5 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTJspScriptlet.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTJspScriptlet extends AbstractJspNode {
ASTJspScriptlet(int id) {
super(id);
}
@Override
public <P, R> R acceptVisitor(JspVisitor<? super P, ?... | 401 | 21.333333 | 87 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTAttributeValue.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTAttributeValue extends AbstractJspNode {
ASTAttributeValue(int id) {
super(id);
}
@Override
protected <P, R> R acceptVisitor(JspVisitor<? sup... | 408 | 21.722222 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTDoctypeExternalId.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTDoctypeExternalId extends AbstractJspNode {
/**
* URI of the external entity. Cannot be null.
*/
private String uri;
/**
* Public ID of th... | 1,110 | 20.365385 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTHtmlScript.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTHtmlScript extends AbstractJspNode {
ASTHtmlScript(int id) {
super(id);
}
@Override
protected <P, R> R acceptVisitor(JspVisitor<? super P, ? ... | 400 | 21.277778 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTCData.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTCData extends AbstractJspNode {
ASTCData(int id) {
super(id);
}
@Override
protected <P, R> R acceptVisitor(JspVisitor<? super P, ? extends R>... | 390 | 20.722222 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTElement.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTElement extends AbstractJspNode {
/**
* Name of the element-tag. Cannot be null.
*/
private String name;
/**
* Flag indicating that the el... | 1,999 | 22.529412 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/JspParserVisitor.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
import net.sourceforge.pmd.annotation.DeprecatedUntil700;
import net.sourceforge.pmd.lang.ast.Node;
/**
* Backwards-compatibility only.
*
* @deprecated Use {@link JspVisitor}
*/
@Depre... | 586 | 22.48 | 79 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTJspComment.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTJspComment extends AbstractJspNode {
ASTJspComment(int id) {
super(id);
}
@Override
protected <P, R> R acceptVisitor(JspVisitor<? super P, ? ... | 400 | 21.277778 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTCommentTag.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
public final class ASTCommentTag extends AbstractJspNode {
ASTCommentTag(int id) {
super(id);
}
@Override
protected <P, R> R acceptVisitor(JspVisitor<? super P, ? ... | 400 | 21.277778 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/ast/ASTCompilationUnit.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.ast;
import net.sourceforge.pmd.lang.ast.AstInfo;
import net.sourceforge.pmd.lang.ast.Parser.ParserTask;
import net.sourceforge.pmd.lang.ast.RootNode;
public final class ASTCompilationUnit exte... | 859 | 24.294118 | 90 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/rule/AbstractJspRule.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.rule;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.jsp.ast.JspParserVisitor;
import net.sourceforge.pmd.lang.rule.AbstractRul... | 531 | 27 | 88 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/rule/security/NoUnsanitizedJSPExpressionRule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.rule.security;
import net.sourceforge.pmd.lang.jsp.ast.ASTElExpression;
import net.sourceforge.pmd.lang.jsp.ast.ASTElement;
import net.sourceforge.pmd.lang.jsp.rule.AbstractJspRule;
/**
* Thi... | 1,197 | 29.717949 | 113 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/rule/codestyle/DuplicateJspImportsRule.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.rule.codestyle;
import java.util.HashSet;
import java.util.Set;
import java.util.StringTokenizer;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.lang.jsp.ast.ASTJspDirective... | 1,242 | 26.622222 | 79 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/lang/jsp/rule/design/NoInlineStyleInformationRule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.jsp.rule.design;
import static net.sourceforge.pmd.util.CollectionUtil.setOf;
import java.util.Locale;
import java.util.Set;
import net.sourceforge.pmd.lang.jsp.ast.ASTAttribute;
import net.sourc... | 3,087 | 31.166667 | 119 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/cpd/JSPTokenizer.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
import net.sourceforge.pmd.cpd.impl.JavaCCTokenizer;
import net.sourceforge.pmd.lang.TokenManager;
import net.sourceforge.pmd.lang.ast.impl.javacc.CharStream;
import net.sourceforge.pmd.lang.ast.imp... | 871 | 30.142857 | 79 | java |
pmd | pmd-master/pmd-jsp/src/main/java/net/sourceforge/pmd/cpd/JSPLanguage.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
import net.sourceforge.pmd.lang.jsp.JspLanguageModule;
public class JSPLanguage extends AbstractLanguage {
public JSPLanguage() {
super(JspLanguageModule.NAME, JspLanguageModule.TERSE_N... | 384 | 26.5 | 118 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/LanguageVersionDiscovererTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
import static java.util.Collections.singleton;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.File;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.lang.La... | 1,481 | 32.681818 | 128 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/RuleSetFactoryTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf;
import net.sourceforge.pmd.AbstractRuleSetFactoryTest;
import net.sourceforge.pmd.lang.apex.ApexLanguageModule;
class RuleSetFactoryTest extends AbstractRuleSetFactoryTest {
RuleSetFactory... | 415 | 23.470588 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/LanguageVersionTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf;
import java.util.Arrays;
import java.util.Collection;
import net.sourceforge.pmd.AbstractLanguageVersionTest;
import net.sourceforge.pmd.lang.apex.ApexLanguageModule;
class LanguageVersionTes... | 673 | 31.095238 | 99 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/DataTypeTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.j... | 2,005 | 38.333333 | 86 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/VFTestUtils.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf;
import static net.sourceforge.pmd.util.CollectionUtil.setOf;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collections;
import net.sourceforge.pmd.lang.LanguageProce... | 2,863 | 34.8 | 130 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/ApexClassPropertyTypesVisitorTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import jav... | 2,578 | 46.759259 | 136 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/VfDocStyleTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNull;
import st... | 34,236 | 43.812827 | 157 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/ApexClassPropertyTypesTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static net.sourceforge.pmd.util.CollectionUtil.listOf;
import static org.junit.jupiter.api.Assertions.assertNull;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.u... | 3,937 | 47.617284 | 122 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/VfPageStyleTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.List;
import org.junit.jupiter.api.Test;
class VfPageStyleTest extends AbstractVfTest {
/**
* Test... | 2,976 | 49.457627 | 148 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/VfParserTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.lang.ast.ParseException;
/**
* @author sergey.gorbaty
*/
class... | 1,794 | 25.014493 | 102 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/VfParsingHelper.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.LanguageProcessorRegistry;
import net.sourceforge.pmd.lang.ast.test.BaseParsingHelper;
import net... | 1,087 | 31.969697 | 99 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/ASTExpressionTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import java.io.... | 9,957 | 40.319502 | 178 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/AbstractVfTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public abstract class AbstractVfTest {
protected final VfParsingHelper vf =
VfParsingHelper.DEFAULT
.withResourceContext(getClass());
}
| 293 | 20 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/OpenTagRegisterTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api... | 3,904 | 25.385135 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/VfExpressionTypeVisitorTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import s... | 7,928 | 41.629032 | 121 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/ast/ObjectFieldTypesTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.ut... | 6,143 | 45.195489 | 157 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/cpd/VfTokenizerTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.cpd;
import java.util.Properties;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.cpd.Tokenizer;
import net.sourceforge.pmd.cpd.VfTokenizer;
import net.sourceforge.pmd.cpd.test.C... | 697 | 20.151515 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/rule/security/VfHtmlStyleTagXssTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule.security;
import net.sourceforge.pmd.testframework.PmdRuleTst;
class VfHtmlStyleTagXssTest extends PmdRuleTst {
// no additional unit tests
}
| 278 | 22.25 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule.security;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import org.junit.jupiter.api.Test;
im... | 4,672 | 39.991228 | 155 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/rule/security/VfHtmlXssStyleTagUrlPatternMatchingTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule.security;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
/***
* Unit tests to f... | 2,462 | 40.05 | 152 | java |
pmd | pmd-master/pmd-visualforce/src/test/java/net/sourceforge/pmd/lang/vf/rule/security/VfCsrfTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule.security;
import net.sourceforge.pmd.testframework.PmdRuleTst;
class VfCsrfTest extends PmdRuleTst {
// no additional unit tests
}
| 267 | 21.333333 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/VfHandler.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf;
import net.sourceforge.pmd.lang.LanguageVersionHandler;
import net.sourceforge.pmd.lang.ast.Parser;
import net.sourceforge.pmd.lang.vf.ast.VfParser;
public class VfHandler implements LanguageVe... | 584 | 23.375 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/VfLanguageProperties.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf;
import java.io.File;
import java.util.Collections;
import java.util.List;
import net.sourceforge.pmd.lang.LanguagePropertyBundle;
import net.sourceforge.pmd.properties.PropertyDescriptor;
impor... | 2,102 | 38.679245 | 121 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/DataType.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.Logg... | 5,189 | 29.174419 | 124 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/VfLanguageModule.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf;
import static net.sourceforge.pmd.util.CollectionUtil.listOf;
import java.util.List;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.Language;
import net.sou... | 2,237 | 35.688525 | 108 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/VfAstInternals.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.vf.DataType;
/**
* This is internal API, and can be changed at any time.
*/
@InternalApi
public final c... | 547 | 21.833333 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/AbstractVFDataNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.lang.vf.DataType;
/**
* Represents a node that displays a piece of data.
*/
abstract class AbstractVFDataNode extends AbstractVfNode implements VfTypedNode {
... | 576 | 18.896552 | 81 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/VfTypedNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.lang.vf.DataType;
/**
* Represents a node that displays a piece of data.
*/
public interface VfTypedNode extends VfNode {
/**
* Returns the data type ... | 681 | 28.652174 | 118 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTElExpression.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTElExpression extends AbstractVfNode {
ASTElExpression(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super P, ... | 402 | 22.705882 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTLiteral.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTLiteral extends AbstractVFDataNode {
ASTLiteral(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super P, ? ext... | 397 | 21.111111 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/SalesforceFieldTypes.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import ... | 4,417 | 41.480769 | 119 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTDeclaration.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTDeclaration extends AbstractVfNode {
private String name;
ASTDeclaration(int id) {
super(id);
}
public String getName() {
return name... | 550 | 18.678571 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTContent.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTContent extends AbstractVfNode {
ASTContent(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super P, ? extends... | 393 | 20.888889 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTExpression.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import java.util.IdentityHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.slf4j.Logger;
import org.slf4j.Log... | 6,942 | 43.793548 | 120 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/VfParser.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.lang.ast.ParseException;
import net.sourceforge.pmd.lang.ast.impl.javacc.CharStream;
import net.sourceforge.pmd.lang.ast.impl.javacc.JavaccTokenDocument.TokenDocum... | 1,372 | 30.930233 | 116 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/OpenTagRegister.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import net.sourceforge.pmd.annotation.InternalApi;
/**
* Utility class to keep track of un... | 3,269 | 32.367347 | 84 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTNegationExpression.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTNegationExpression extends AbstractVfNode {
ASTNegationExpression(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor... | 414 | 23.411765 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/VfExpressionTypeVisitor.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import java.util.ArrayList;
import java.util.IdentityHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | 7,111 | 39.873563 | 127 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTDoctypeDeclaration.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTDoctypeDeclaration extends AbstractVfNode {
/**
* Name of the document type. Cannot be null.
*/
private String name;
ASTDoctypeDeclaration(int i... | 630 | 19.354839 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTText.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTText extends AbstractVfNode {
ASTText(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super P, ? extends R> vi... | 387 | 20.555556 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/VfParserVisitorAdapter.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.DeprecatedUntil700;
@Deprecated
@DeprecatedUntil700
public class VfParserVisitorAdapter extends VfVisitorBase<Object, Object> implements VfParserVisito... | 327 | 22.428571 | 102 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTDotExpression.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTDotExpression extends AbstractVfNode {
ASTDotExpression(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super ... | 405 | 21.555556 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTAttribute.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTAttribute extends AbstractVfNode {
private String name;
ASTAttribute(int id) {
super(id);
}
public String getName() {
return name;
... | 1,380 | 23.660714 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/VfParserVisitor.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.DeprecatedUntil700;
import net.sourceforge.pmd.lang.ast.Node;
@Deprecated
@DeprecatedUntil700
public interface VfParserVisitor extends VfVisitor<Object... | 503 | 24.2 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ApexClassPropertyTypes.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import org.apache.commons.lang3.exception... | 4,934 | 41.543103 | 120 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ObjectFieldTypes.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
impo... | 12,022 | 45.782101 | 166 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTAttributeValue.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTAttributeValue extends AbstractVfNode {
ASTAttributeValue(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? supe... | 407 | 21.666667 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/AbstractVfNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.lang.ast.AstVisitor;
import net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode;
abstract class AbstractVfNode extends AbstractJjtreeNode<AbstractVfNode, ... | 1,128 | 28.710526 | 100 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/VfVisitorBase.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.lang.ast.AstVisitorBase;
public abstract class VfVisitorBase<P, R> extends AstVisitorBase<P, R> implements VfVisitor<P, R> {
}
| 286 | 22.916667 | 99 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTDoctypeExternalId.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTDoctypeExternalId extends AbstractVfNode {
/**
* URI of the external entity. Cannot be null.
*/
private String uri;
/**
* Public ID of the ... | 1,109 | 20.346154 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTHtmlScript.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTHtmlScript extends AbstractVfNode {
ASTHtmlScript(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super P, ? e... | 399 | 21.222222 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTIdentifier.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTIdentifier extends AbstractVFDataNode {
ASTIdentifier(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super P,... | 403 | 21.444444 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTCData.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTCData extends AbstractVfNode {
ASTCData(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super P, ? extends R> ... | 389 | 20.666667 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/VfNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.annotation.DeprecatedUntil700;
import net.sourceforge.pmd.lang.ast.AstVisitor;
import net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode;
public interface VfNode... | 630 | 24.24 | 79 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTElement.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTElement extends AbstractVfNode {
/**
* Name of the element-tag. Cannot be null.
*/
private String name;
/**
* Flag indicating that the elem... | 1,998 | 22.517647 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTArguments.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
public final class ASTArguments extends AbstractVfNode {
ASTArguments(int id) {
super(id);
}
@Override
protected <P, R> R acceptVfVisitor(VfVisitor<? super P, ? ext... | 397 | 21.111111 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ApexClassPropertyTypesVisitor.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.tuple.Pair;
import net.sourceforge.pmd.lang.apex.ast.ASTMethod;
import net.... | 2,978 | 33.241379 | 103 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/ast/ASTCompilationUnit.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.ast;
import net.sourceforge.pmd.lang.ast.AstInfo;
import net.sourceforge.pmd.lang.ast.Parser.ParserTask;
import net.sourceforge.pmd.lang.ast.RootNode;
public final class ASTCompilationUnit exten... | 858 | 24.264706 | 91 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/AbstractVfRule.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule;
import net.sourceforge.pmd.RuleContext;
import net.sourceforge.pmd.lang.ast.Node;
import net.sourceforge.pmd.lang.rule.AbstractRule;
import net.sourceforge.pmd.lang.vf.ast.VfParserVisitor;
... | 526 | 26.736842 | 86 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfCsrfRule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule.security;
import java.util.List;
import java.util.Locale;
import net.sourceforge.pmd.lang.vf.ast.ASTAttribute;
import net.sourceforge.pmd.lang.vf.ast.ASTElExpression;
import net.sourceforg... | 1,980 | 29.476923 | 97 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule.security;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.regex.Pattern;
import net.sourceforge.p... | 12,089 | 36.78125 | 171 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfHtmlStyleTagXssRule.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule.security;
import java.util.EnumSet;
import java.util.Set;
import java.util.regex.Pattern;
import net.sourceforge.pmd.lang.vf.ast.ASTContent;
import net.sourceforge.pmd.lang.vf.ast.ASTElExpr... | 6,293 | 36.023529 | 173 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/internal/ElEscapeDetector.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.vf.rule.security.internal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.S... | 18,138 | 43.787654 | 124 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/cpd/VfTokenizer.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
import net.sourceforge.pmd.cpd.impl.JavaCCTokenizer;
import net.sourceforge.pmd.lang.TokenManager;
import net.sourceforge.pmd.lang.ast.impl.javacc.CharStream;
import net.sourceforge.pmd.lang.ast.imp... | 1,381 | 34.435897 | 94 | java |
pmd | pmd-master/pmd-visualforce/src/main/java/net/sourceforge/pmd/cpd/VfLanguage.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
import net.sourceforge.pmd.lang.vf.VfLanguageModule;
/**
* @author sergey.gorbaty
*
*/
public class VfLanguage extends AbstractLanguage {
public VfLanguage() {
super(VfLanguageModule... | 413 | 22 | 114 | java |
pmd | pmd-master/pmd-java/src/test/kotlin/net/sourceforge/pmd/lang/java/symbols/internal/JClassSymbolTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.internal;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
import org.junit.jupiter.p... | 1,620 | 28.472727 | 91 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/ReportTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
import static net.sourceforge.pmd.lang.ast.test.TestUtilsKt.assertSize;
import static net.sourceforge.pmd.lang.ast.test.TestUtilsKt.assertSuppressed;
import static org.junit.jupiter.api.Assertions.asse... | 2,232 | 29.589041 | 105 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/ExcludeLinesTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
import static net.sourceforge.pmd.lang.ast.test.TestUtilsKt.assertSize;
import static net.sourceforge.pmd.lang.ast.test.TestUtilsKt.assertSuppressed;
import org.junit.jupiter.api.Test;
import net.sou... | 2,069 | 31.857143 | 85 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/LanguageVersionDiscovererTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.File;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.lang.Language;
import net.sourceforge.pmd.lang.Langua... | 2,777 | 35.552632 | 107 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/FooRule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd;
import net.sourceforge.pmd.lang.java.ast.ASTClassOrInterfaceDeclaration;
import net.sourceforge.pmd.lang.java.ast.ASTVariableDeclaratorId;
import net.sourceforge.pmd.lang.java.rule.AbstractJavaRule;
p... | 1,026 | 23.452381 | 79 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/ant/PMDTaskTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.ant;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Standard... | 4,265 | 29.913043 | 91 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/SuppressWarningsTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java;
import static net.sourceforge.pmd.lang.ast.test.TestUtilsKt.assertSize;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.junit.jupiter.api.Test;
import net.sourceforge.... | 7,488 | 34.661905 | 183 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/RuleSetFactoryTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java;
import static org.junit.jupiter.api.Assertions.assertNull;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.AbstractRuleSetFactoryTest;
import net.sourceforge.pmd.Rule;
import ... | 1,432 | 39.942857 | 143 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/LanguageVersionTest.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java;
import java.util.Arrays;
import java.util.Collection;
import net.sourceforge.pmd.AbstractLanguageVersionTest;
import net.sourceforge.pmd.lang.Language;
class LanguageVersionTest extends Abs... | 2,163 | 49.325581 | 97 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/JavaAttributesPrinter.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.ast.Node;
import n... | 2,419 | 41.45614 | 135 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/BaseParserTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java;
import net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit;
import net.sourceforge.pmd.lang.java.ast.ASTExpression;
/**
* Base class for tests that usually need processing stages to run whe... | 1,341 | 35.27027 | 103 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/BaseJavaTreeDumpTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java;
import net.sourceforge.pmd.lang.ast.test.BaseTreeDumpTest;
/**
* Special tweak to remove deprecated attributes of AccessNode
*/
public abstract class BaseJavaTreeDumpTest extends BaseTreeDu... | 430 | 22.944444 | 79 | java |
pmd | pmd-master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/JavaLanguageModuleTest.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.lang.LanguageVersion;
class JavaLanguageModu... | 1,665 | 32.32 | 98 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.