You've already forked v8-code-style
mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-10-09 18:43:40 +02:00
Merge branch 'Epic/G5V8DT-24236' of https://github.com/1C-Company/v8-code-style into Epic/G5V8DT-24236
This commit is contained in:
@@ -82,6 +82,12 @@ public class VariableNameInvalidCheck
|
||||
protected void check(Object object, ResultAcceptor resultAceptor, ICheckParameters parameters,
|
||||
IProgressMonitor monitor)
|
||||
{
|
||||
Variable variable = (Variable)object;
|
||||
//if name of variable is null therefore syntax error
|
||||
if (variable.getName() == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int minLength = parameters.getInt(MIN_NAME_LENGTH_PARAM_NAME);
|
||||
if (minLength <= 0)
|
||||
@@ -89,7 +95,6 @@ public class VariableNameInvalidCheck
|
||||
minLength = MIN_NAME_LENGTH_DEFAULT;
|
||||
}
|
||||
|
||||
Variable variable = (Variable)object;
|
||||
if (variable.eContainer() instanceof StaticFeatureAccess && isForStatementAccessVariable(variable))
|
||||
{
|
||||
return;
|
||||
|
Reference in New Issue
Block a user