Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
36,800 | void () { myHaveInstanceRefs = true; } | registerInstanceRef |
36,801 | void (@NotNull GrCodeReferenceElement refElement) { super.visitCodeReferenceElement(refElement); if (myHaveInstanceRefs) return; final PsiElement resolvedElement = refElement.resolve(); if (!(resolvedElement instanceof PsiClass aClass)) return; final PsiElement scope = aClass.getScope(); if (!(scope instanceof PsiClass)) return; if (!aClass.hasModifierProperty(PsiModifier.STATIC)) { registerInstanceRef(); } } | visitCodeReferenceElement |
36,802 | boolean () { return myHaveInstanceRefs; } | haveInstanceRefsOutsideClosures |
36,803 | boolean (PsiElement t) { if (t instanceof GrMethod) { final PsiClass clazz = ((GrMethod)t).getContainingClass(); if (clazz != null && GdkMethodUtil.getCategoryType(clazz) != null) { return true; } } return false; } | value |
36,804 | BaseInspectionVisitor () { return new BaseInspectionVisitor() { @Override public void visitExpression(@NotNull GrExpression expression) { Transformation<?> transformation = getTransformation(expression); if (transformation == null) return; PsiElement highlightingElement = getHighlightingElement(expression); if (highlightingElement == null) return; if (transformation.couldApplyRow(expression)) { registerError( highlightingElement, GroovyBundle.message("replace.with.method.message", transformation.getMethod()), new LocalQuickFix[]{new TransformationBasedFix(transformation)}, GENERIC_ERROR_OR_WARNING ); } } }; } | buildVisitor |
36,805 | void (@NotNull GrExpression expression) { Transformation<?> transformation = getTransformation(expression); if (transformation == null) return; PsiElement highlightingElement = getHighlightingElement(expression); if (highlightingElement == null) return; if (transformation.couldApplyRow(expression)) { registerError( highlightingElement, GroovyBundle.message("replace.with.method.message", transformation.getMethod()), new LocalQuickFix[]{new TransformationBasedFix(transformation)}, GENERIC_ERROR_OR_WARNING ); } } | visitExpression |
36,806 | String () { return GroovyBundle.message("replace.with.method.fix", myTransformation.getMethod()); } | getFamilyName |
36,807 | void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiElement call = element.getParent(); if (!(call instanceof GrExpression expression)) return; if (!myTransformation.couldApplyRow(expression)) return; myTransformation.applyRow(expression); } | applyFix |
36,808 | PsiElement (@NotNull GrExpression expression) { if (expression instanceof GrUnaryExpression unary) { return unary.getOperationToken(); } if (expression instanceof GrBinaryExpression binary) { return binary.getOperationToken(); } if (expression instanceof GrSafeCastExpression safeCast) { return safeCast.getOperationToken(); } return null; } | getHighlightingElement |
36,809 | void (@NotNull GrBinaryExpression expression) { GrExpression lhsParenthesized = addParenthesesIfNeeded(getLhs(expression)); String compare = ""; if (myElementType != mCOMPARE_TO) { compare = format(" %s 0", myElementType.toString()); } replaceExpression(expression, format("%s.compareTo(%s) %s", lhsParenthesized.getText(), getRhs(expression).getText(), compare)); } | apply |
36,810 | String () { return "compareTo"; } | getMethod |
36,811 | void (@NotNull GrBinaryExpression expression) { GrExpression lhsParenthesized = addParenthesesIfNeeded(getLhs(expression)); replaceExpression(expression, format("%s.%s(%s)", lhsParenthesized.getText(), myMethod, getRhs(expression).getText())); } | apply |
36,812 | String () { return myMethod; } | getMethod |
36,813 | GrSafeCastExpression (@NotNull GrExpression expression) { return expression instanceof GrSafeCastExpression ? (GrSafeCastExpression) expression : null; } | checkCast |
36,814 | boolean (@NotNull GrSafeCastExpression expression) { GrTypeElement typeElement = expression.getCastTypeElement(); if (typeElement == null ) return false; PsiType type = typeElement.getType(); return type instanceof PsiClassType && ((PsiClassType)type).getParameterCount() == 0; } | couldApply |
36,815 | void (@NotNull GrSafeCastExpression expression) { GrExpression lhsParenthesized = addParenthesesIfNeeded(expression.getOperand()); GrTypeElement typeElement = Objects.requireNonNull(expression.getCastTypeElement()); replaceExpression(expression, format("%s.asType(%s)", lhsParenthesized.getText(), typeElement.getText())); } | apply |
36,816 | String () { return "asType"; } | getMethod |
36,817 | boolean (@NotNull GrExpression expression) { T casted = checkCast(expression); return casted != null && couldApply(casted); } | couldApplyRow |
36,818 | void (@NotNull GrExpression expression) { T casted = checkCast(expression); if (casted != null) apply(casted); } | applyRow |
36,819 | void (@NotNull GrBinaryExpression expression) { GrExpression lhsParenthesized = addParenthesesIfNeeded(getLhs(expression)); replaceExpression(expression, format("!%s.equals(%s)", lhsParenthesized.getText(), getRhs(expression).getText())); } | apply |
36,820 | String () { return "equals"; } | getMethod |
36,821 | void (@NotNull GrBinaryExpression expression) { GrExpression rhsParenthesized = addParenthesesIfNeeded(getRhs(expression)); replaceExpression(expression, format("%s.isCase(%s)", rhsParenthesized.getText(), unparenthesize(getLhs(expression)).getText())); } | apply |
36,822 | String () { return "isCase"; } | getMethod |
36,823 | void (@NotNull GrUnaryExpression expression) { GrExpression operand = addParenthesesIfNeeded(requireNonNull(getOperand(expression))); GrInspectionUtil.replaceExpression(expression, format("%s.%s()", operand.getText(), myMethod)); } | apply |
36,824 | String () { return myMethod; } | getMethod |
36,825 | GrUnaryExpression (@NotNull GrExpression expression) { return expression instanceof GrUnaryExpression ? (GrUnaryExpression) expression : null; } | checkCast |
36,826 | boolean (@NotNull GrUnaryExpression expression) { GrExpression operand = getOperand(expression); return operand != null; } | couldApply |
36,827 | GrExpression (@NotNull GrUnaryExpression callExpression) { return callExpression.getOperand(); } | getOperand |
36,828 | GrExpression (@NotNull GrBinaryExpression expression) { return unparenthesize(Objects.requireNonNull(expression.getLeftOperand())); } | getLhs |
36,829 | GrExpression (@NotNull GrBinaryExpression expression) { return unparenthesize(Objects.requireNonNull(expression.getRightOperand())); } | getRhs |
36,830 | GrBinaryExpression (@NotNull GrExpression expression) { return expression instanceof GrBinaryExpression ? (GrBinaryExpression) expression : null; } | checkCast |
36,831 | boolean (@NotNull GrBinaryExpression expression) { return expression.getRightOperand() != null; } | couldApply |
36,832 | String () { // used to enable inspection in tests // remove when inspection class will match its short name return "GroovyVariableNotAssigned"; } | getShortName |
36,833 | OptPane () { return pane(checkbox("myIgnoreBooleanExpressions", GroovyBundle.message("ignore.boolean.expressions"))); } | getGroovyOptionsPane |
36,834 | void (@NotNull GrControlFlowOwner owner, @NotNull ProblemsHolder problemsHolder) { GroovyControlFlow flow = ControlFlowUtils.getGroovyControlFlow(owner); List<Pair<ReadWriteVariableInstruction, VariableDescriptor>> reads = ControlFlowBuilderUtil.getReadsWithoutPriorWrites(flow, true); for (Pair<ReadWriteVariableInstruction, VariableDescriptor> read : reads) { PsiElement element = read.getFirst().getElement(); if (element instanceof GroovyPsiElement && !(element instanceof GrClosableBlock)) { String name = flow.getVarIndices()[read.getFirst().getDescriptor()].getName(); GroovyPsiElement property = ResolveUtil.resolveProperty((GroovyPsiElement)element, name); if (property != null && !(property instanceof PsiParameter) && !(property instanceof PsiField) && PsiTreeUtil.isAncestor(owner, property, false) && !(myIgnoreBooleanExpressions && isBooleanCheck(element)) ) { problemsHolder.registerProblem(element, GroovyBundle.message("unassigned.access.tooltip", name)); } } } } | check |
36,835 | boolean (PsiElement element) { final PsiElement parent = element.getParent(); return parent instanceof GrIfStatement && ((GrIfStatement)parent).getCondition() == element || parent instanceof GrWhileStatement && ((GrWhileStatement)parent).getCondition() == element || parent instanceof GrTraditionalForClause && ((GrTraditionalForClause)parent).getCondition() == element || isLogicalExpression(parent) || parent instanceof GrUnaryExpression && ((GrUnaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mBNOT || isCheckForNull(parent, element); } | isBooleanCheck |
36,836 | boolean (PsiElement parent) { return parent instanceof GrBinaryExpression && (((GrBinaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mLAND || ((GrBinaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mLOR); } | isLogicalExpression |
36,837 | boolean (PsiElement parent, PsiElement element) { if (!(parent instanceof GrBinaryExpression)) return false; final IElementType tokenType = ((GrBinaryExpression)parent).getOperationTokenType(); if (!(tokenType == GroovyTokenTypes.mEQUAL || tokenType == GroovyTokenTypes.mNOT_EQUAL)) return false; if (element == ((GrBinaryExpression)parent).getLeftOperand()) { final GrExpression rightOperand = ((GrBinaryExpression)parent).getRightOperand(); return rightOperand != null && GrInspectionUtil.isNull(rightOperand); } else { return GrInspectionUtil.isNull(((GrBinaryExpression)parent).getLeftOperand()); } } | isCheckForNull |
36,838 | ReturnStatus (PsiElement subject) { if (subject instanceof GrClosableBlock) { final PsiType inferredReturnType = getExpectedClosureReturnType((GrClosableBlock)subject); if (inferredReturnType instanceof PsiClassType) { PsiClass resolved = ((PsiClassType)inferredReturnType).resolve(); if (resolved != null && !(resolved instanceof PsiTypeParameter)) return mustReturnValue; } return inferredReturnType != null && !PsiTypes.voidType().equals(inferredReturnType) ? shouldReturnValue : shouldNotReturnValue; } else if (subject instanceof GrMethod) { return ((GrMethod)subject).getReturnTypeElementGroovy() != null && !PsiTypes.voidType().equals(((GrMethod)subject).getReturnType()) ? mustReturnValue : shouldNotReturnValue; } return shouldNotReturnValue; } | getReturnStatus |
36,839 | PsiType (GrClosableBlock closure) { List<PsiType> expectedReturnTypes = new ArrayList<>(); PsiElement parent = closure.getParent(); if (parent instanceof GrArgumentList && parent.getParent() instanceof GrMethodCall || parent instanceof GrMethodCall) { GrMethodCall call = (GrMethodCall)(parent instanceof GrArgumentList ? parent.getParent() : parent); GroovyResolveResult[] variants = call.getCallVariants(null); for (GroovyResolveResult variant : variants) { Map<GrExpression,Pair<PsiParameter,PsiType>> map = GrClosureSignatureUtil.mapArgumentsToParameters(variant, closure, true, true, call.getNamedArguments(), call.getExpressionArguments(), call.getClosureArguments()); if (map != null) { Pair<PsiParameter, PsiType> pair = map.get(closure); if (pair == null) continue; PsiParameter parameter = pair.getFirst(); PsiType type = parameter.getType(); if (TypesUtil.isPsiClassTypeToClosure(type)) { PsiType[] parameters = ((PsiClassType)type).getParameters(); if (parameters.length == 1) { expectedReturnTypes.add(parameters[0]); } } } } } else { for (PsiType expectedType : GroovyExpectedTypesProvider.getDefaultExpectedTypes(closure)) { if (TypesUtil.isPsiClassTypeToClosure(expectedType)) { PsiType[] parameters = ((PsiClassType)expectedType).getParameters(); if (parameters.length == 1) { expectedReturnTypes.add(parameters[0]); } } } } for (PsiType type : expectedReturnTypes) { if (PsiTypes.voidType().equals(type) || PsiTypes.voidType().equals(PsiPrimitiveType.getUnboxedType(type))) return PsiTypes.voidType(); } return TypesUtil.getLeastUpperBoundNullable(expectedReturnTypes, closure.getManager()); } | getExpectedClosureReturnType |
36,840 | GroovyElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new GroovyElementVisitor() { @Override public void visitClosure(@NotNull GrClosableBlock closure) { super.visitClosure(closure); check(closure, holder, ReturnStatus.getReturnStatus(closure)); } @Override public void visitMethod(@NotNull GrMethod method) { super.visitMethod(method); final GrOpenBlock block = method.getBlock(); if (block != null) { check(block, holder, ReturnStatus.getReturnStatus(method)); } } }; } | buildGroovyVisitor |
36,841 | void (@NotNull GrClosableBlock closure) { super.visitClosure(closure); check(closure, holder, ReturnStatus.getReturnStatus(closure)); } | visitClosure |
36,842 | void (@NotNull GrMethod method) { super.visitMethod(method); final GrOpenBlock block = method.getBlock(); if (block != null) { check(block, holder, ReturnStatus.getReturnStatus(method)); } } | visitMethod |
36,843 | void (GrCodeBlock block, ProblemsHolder holder, ReturnStatus returnStatus) { if (methodMissesSomeReturns(block, returnStatus)) { addNoReturnMessage(block, holder); } } | check |
36,844 | boolean (@NotNull GrControlFlowOwner block, @NotNull final ReturnStatus returnStatus) { if (returnStatus == ReturnStatus.shouldNotReturnValue) { return false; } final Ref<Boolean> alwaysHaveReturn = new Ref<>(true); final Ref<Boolean> sometimesHaveReturn = new Ref<>(false); ControlFlowUtils.visitAllExitPoints(block, new ControlFlowUtils.ExitPointVisitor() { @Override public boolean visitExitPoint(Instruction instruction, @Nullable GrExpression returnValue) { //don't modify sometimesHaveReturn in this case: // def foo() { // if (cond) throw new RuntimeException() // } if (instruction instanceof ThrowingInstruction) { if (returnStatus == ReturnStatus.mustReturnValue) { sometimesHaveReturn.set(true); } return true; } if (instruction instanceof MaybeReturnInstruction && ((MaybeReturnInstruction)instruction).mayReturnValue()) { sometimesHaveReturn.set(true); return true; } if (instruction.getElement() instanceof GrReturnStatement && returnValue != null) { sometimesHaveReturn.set(true); return true; } if (!(instruction instanceof MaybeYieldInstruction) && !(instruction.getElement() instanceof GrYieldStatement)) { alwaysHaveReturn.set(false); } return true; } }); if (returnStatus == ReturnStatus.mustReturnValue && !sometimesHaveReturn.get()) { return true; } return sometimesHaveReturn.get() && !alwaysHaveReturn.get(); } | methodMissesSomeReturns |
36,845 | boolean (Instruction instruction, @Nullable GrExpression returnValue) { //don't modify sometimesHaveReturn in this case: // def foo() { // if (cond) throw new RuntimeException() // } if (instruction instanceof ThrowingInstruction) { if (returnStatus == ReturnStatus.mustReturnValue) { sometimesHaveReturn.set(true); } return true; } if (instruction instanceof MaybeReturnInstruction && ((MaybeReturnInstruction)instruction).mayReturnValue()) { sometimesHaveReturn.set(true); return true; } if (instruction.getElement() instanceof GrReturnStatement && returnValue != null) { sometimesHaveReturn.set(true); return true; } if (!(instruction instanceof MaybeYieldInstruction) && !(instruction.getElement() instanceof GrYieldStatement)) { alwaysHaveReturn.set(false); } return true; } | visitExitPoint |
36,846 | void (GrCodeBlock block, ProblemsHolder holder) { final PsiElement lastChild = block.getLastChild(); if (lastChild == null) return; TextRange range = lastChild.getTextRange(); if (!lastChild.isValid() || !lastChild.isPhysical() || range.getStartOffset() >= range.getEndOffset()) { return; } holder.registerProblem(lastChild, GroovyBundle.message("no.return.message")); } | addNoReturnMessage |
36,847 | String () { return "GroovyMissingReturnStatement"; } | getShortName |
36,848 | GroovyFix (@NotNull PsiElement location) { return GroovyQuickFixFactory.getInstance().createRenameFix(); } | buildFix |
36,849 | boolean () { return true; } | buildQuickFixesOnlyForOnTheFlyErrors |
36,850 | String (Object... args) { final String className = (String) args[0]; if (className.length() < getMinLength()) { return GroovyBundle.message("inspection.message.local.variable.name.ref.too.short"); } else if (className.length() > getMaxLength()) { return GroovyBundle.message("inspection.message.local.variable.name.ref.too.long"); } return GroovyBundle.message("inspection.message.local.variable.name.ref.doesnt.match.regex", getRegex()); } | buildErrorString |
36,851 | String () { return "[a-z][A-Za-z\\d]*"; } | getDefaultRegex |
36,852 | int () { return DEFAULT_MIN_LENGTH; } | getDefaultMinLength |
36,853 | int () { return DEFAULT_MAX_LENGTH; } | getDefaultMaxLength |
36,854 | BaseInspectionVisitor () { return new NamingConventionsVisitor(); } | buildVisitor |
36,855 | void (@NotNull GrVariable grVariable) { super.visitVariable(grVariable); if (grVariable instanceof GrField || grVariable instanceof GrParameter) { return; } final String name = grVariable.getName(); if (isValid(name)) { return; } registerVariableError(grVariable, name); } | visitVariable |
36,856 | void (@NotNull GrParameter grParameter) { super.visitParameter(grParameter); final String name = grParameter.getName(); final PsiElement scope = grParameter.getDeclarationScope(); if (!(scope instanceof GrCatchClause) && !(scope instanceof GrForStatement)) { return; } if (isValid(name)) { return; } registerVariableError(grParameter, name); } | visitParameter |
36,857 | NamingConvention<PsiClass> (NamingConvention<PsiClass> ex) { return new NamingConvention<>() { @Override public boolean isApplicable(PsiClass member) { return ex.isApplicable(member); } @Override public String getElementDescription() { return ex.getElementDescription(); } @Override public String getShortName() { String shortName = ex.getShortName(); if (shortName.startsWith("JUnit")) return shortName; return GROOVY + (shortName.startsWith("Enum") ? "EnumerationNamingConvention" : shortName); } @Override public NamingConventionBean createDefaultBean() { return ex.createDefaultBean(); } }; } | wrapClassExtension |
36,858 | boolean (PsiClass member) { return ex.isApplicable(member); } | isApplicable |
36,859 | String () { return ex.getElementDescription(); } | getElementDescription |
36,860 | String () { String shortName = ex.getShortName(); if (shortName.startsWith("JUnit")) return shortName; return GROOVY + (shortName.startsWith("Enum") ? "EnumerationNamingConvention" : shortName); } | getShortName |
36,861 | NamingConventionBean () { return ex.createDefaultBean(); } | createDefaultBean |
36,862 | void (NamingConvention<PsiClass> convention) { super.registerConvention(wrapClassExtension(convention)); } | registerConvention |
36,863 | void (@NotNull NamingConvention<PsiClass> extension) { super.unregisterConvention(wrapClassExtension(extension)); } | unregisterConvention |
36,864 | PsiElementVisitor (@NotNull ProblemsHolder holder, boolean isOnTheFly) { if (!(holder.getFile() instanceof PsiClassOwner)) { return PsiElementVisitor.EMPTY_VISITOR; } return new PsiElementVisitor() { @Override public void visitElement(@NotNull PsiElement element) { if (element instanceof GrTypeDefinition) { PsiClass aClass = (PsiClass)element; final String name = aClass.getName(); if (name == null) return; checkName(aClass, name, holder); } } }; } | buildVisitor |
36,865 | void (@NotNull PsiElement element) { if (element instanceof GrTypeDefinition) { PsiClass aClass = (PsiClass)element; final String name = aClass.getName(); if (name == null) return; checkName(aClass, name, holder); } } | visitElement |
36,866 | LocalQuickFix () { return GroovyQuickFixFactory.getInstance().createRenameFix(); } | createRenameFix |
36,867 | GroovyFix (@NotNull PsiElement location) { return GroovyQuickFixFactory.getInstance().createRenameFix(); } | buildFix |
36,868 | boolean () { return true; } | buildQuickFixesOnlyForOnTheFlyErrors |
36,869 | String (Object... args) { final String className = (String) args[0]; if (className.length() < getMinLength()) { return GroovyBundle.message("inspection.message.instance.method.name.ref.too.short"); } else if (className.length() > getMaxLength()) { return GroovyBundle.message("inspection.message.instance.method.name.ref.too.long"); } return GroovyBundle.message("inspection.message.instance.method.name.ref.doesnt.match.regex", getRegex()); } | buildErrorString |
36,870 | String () { return "[a-z][A-Za-z\\d]*"; } | getDefaultRegex |
36,871 | int () { return DEFAULT_MIN_LENGTH; } | getDefaultMinLength |
36,872 | int () { return DEFAULT_MAX_LENGTH; } | getDefaultMaxLength |
36,873 | BaseInspectionVisitor () { return new NamingConventionsVisitor(); } | buildVisitor |
36,874 | void (@NotNull GrMethod grMethod) { super.visitMethod(grMethod); if (grMethod.hasModifierProperty(PsiModifier.STATIC) || grMethod.isConstructor()) { return; } final String name = grMethod.getName(); if (isValid(name)) { return; } if (LibraryUtil.isOverrideOfLibraryMethod(grMethod)) { return; } registerMethodError(grMethod, name); } | visitMethod |
36,875 | String () { return m_regex; } | getRegex |
36,876 | int () { return m_minLength; } | getMinLength |
36,877 | int () { return m_maxLength; } | getMaxLength |
36,878 | boolean (String name) { final int length = name.length(); if (length < m_minLength) { return false; } if (length > m_maxLength) { return false; } if ("SerialVersionUID".equals(name)) { return true; } final Matcher matcher = m_regexPattern.matcher(name); return matcher.matches(); } | isValid |
36,879 | OptPane () { return CommonOptionPanes.conventions("m_minLength", "m_maxLength", "m_regex"); } | getGroovyOptionsPane |
36,880 | OptionController () { return super.getOptionController().onValueSet("m_regex", value -> { try { m_regexPattern = Pattern.compile(m_regex); } catch (PatternSyntaxException ignore) { m_regex = getDefaultRegex(); m_regexPattern = Pattern.compile(m_regex); } }); } | getOptionController |
36,881 | GroovyFix (@NotNull PsiElement location) { return GroovyQuickFixFactory.getInstance().createRenameFix(); } | buildFix |
36,882 | boolean () { return true; } | buildQuickFixesOnlyForOnTheFlyErrors |
36,883 | String (Object... args) { final String className = (String) args[0]; if (className.length() < getMinLength()) { return GroovyBundle.message("inspection.message.method.parameter.name.ref.too.short"); } else if (className.length() > getMaxLength()) { return GroovyBundle.message("inspection.message.method.parameter.name.ref.too.long"); } return GroovyBundle.message("inspection.message.method.parameter.name.ref.doesnt.match.regex", getRegex()); } | buildErrorString |
36,884 | String () { return "[a-z][A-Za-z\\d]*"; } | getDefaultRegex |
36,885 | int () { return DEFAULT_MIN_LENGTH; } | getDefaultMinLength |
36,886 | int () { return DEFAULT_MAX_LENGTH; } | getDefaultMaxLength |
36,887 | BaseInspectionVisitor () { return new NamingConventionsVisitor(); } | buildVisitor |
36,888 | void (@NotNull GrParameter grParameter) { super.visitParameter(grParameter); final String name = grParameter.getName(); final PsiElement scope = grParameter.getDeclarationScope(); if (scope instanceof GrCatchClause || scope instanceof GrForStatement) { return; } if (isValid(name)) { return; } registerVariableError(grParameter, name); } | visitParameter |
36,889 | GroovyFix (@NotNull PsiElement location) { return GroovyQuickFixFactory.getInstance().createRenameFix(); } | buildFix |
36,890 | boolean () { return true; } | buildQuickFixesOnlyForOnTheFlyErrors |
36,891 | String (Object... args) { final String className = (String) args[0]; if (className.length() < getMinLength()) { return GroovyBundle.message("inspection.message.static.method.name.ref.too.short"); } else if (className.length() > getMaxLength()) { return GroovyBundle.message("inspection.message.static.method.name.ref.too.long"); } return GroovyBundle.message("inspection.message.static.method.name.ref.doesnt.match.regex", getRegex()); } | buildErrorString |
36,892 | String () { return "[a-z][A-Za-z\\d]*"; } | getDefaultRegex |
36,893 | int () { return DEFAULT_MIN_LENGTH; } | getDefaultMinLength |
36,894 | int () { return DEFAULT_MAX_LENGTH; } | getDefaultMaxLength |
36,895 | BaseInspectionVisitor () { return new NamingConventionsVisitor(); } | buildVisitor |
36,896 | void (@NotNull GrMethod grMethod) { super.visitMethod(grMethod); if (!grMethod.hasModifierProperty(PsiModifier.STATIC)) { return; } final String name = grMethod.getName(); if (isValid(name)) { return; } registerMethodError(grMethod, name); } | visitMethod |
36,897 | GroovyFix (@NotNull PsiElement location) { return GroovyQuickFixFactory.getInstance().createRenameFix(); } | buildFix |
36,898 | boolean () { return true; } | buildQuickFixesOnlyForOnTheFlyErrors |
36,899 | String (Object... args) { final String className = (String) args[0]; if (className.length() < getMinLength()) { return GroovyBundle.message("inspection.message.instance.variable.name.ref.too.short"); } else if (className.length() > getMaxLength()) { return GroovyBundle.message("inspection.message.instance.variable.name.ref.too.long"); } return GroovyBundle.message("inspection.message.instance.variable.name.ref.doesn.t.match.regex", getRegex()); } | buildErrorString |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.