Interface BSLDiagnostic

All Known Implementing Classes:
AbstractDiagnostic, AbstractExpressionTreeDiagnostic, AbstractFindMethodDiagnostic, AbstractListenerDiagnostic, AbstractMetadataDiagnostic, AbstractMultilingualStringDiagnostic, AbstractSDBLListenerDiagnostic, AbstractSDBLVisitorDiagnostic, AbstractSymbolTreeDiagnostic, AbstractVisitorDiagnostic, AllFunctionPathMustHaveReturnDiagnostic, AssignAliasFieldsInQueryDiagnostic, BadWordsDiagnostic, BeginTransactionBeforeTryCatchDiagnostic, CachedPublicDiagnostic, CanonicalSpellingKeywordsDiagnostic, CodeAfterAsyncCallDiagnostic, CodeBlockBeforeSubDiagnostic, CodeOutOfRegionDiagnostic, CognitiveComplexityDiagnostic, CommandModuleExportMethodsDiagnostic, CommentedCodeDiagnostic, CommitTransactionOutsideTryCatchDiagnostic, CommonModuleAssignDiagnostic, CommonModuleInvalidTypeDiagnostic, CommonModuleMissingAPIDiagnostic, CommonModuleNameCachedDiagnostic, CommonModuleNameClientDiagnostic, CommonModuleNameClientServerDiagnostic, CommonModuleNameFullAccessDiagnostic, CommonModuleNameGlobalClientDiagnostic, CommonModuleNameGlobalDiagnostic, CommonModuleNameServerCallDiagnostic, CommonModuleNameWordsDiagnostic, CompilationDirectiveLostDiagnostic, CompilationDirectiveNeedLessDiagnostic, ConsecutiveEmptyLinesDiagnostic, CrazyMultilineStringDiagnostic, CreateQueryInCycleDiagnostic, CyclomaticComplexityDiagnostic, DataExchangeLoadingDiagnostic, DeletingCollectionItemDiagnostic, DenyIncompleteValuesDiagnostic, DeprecatedAttributes8312Diagnostic, DeprecatedCurrentDateDiagnostic, DeprecatedFindDiagnostic, DeprecatedMessageDiagnostic, DeprecatedMethodCallDiagnostic, DeprecatedMethods8310Diagnostic, DeprecatedMethods8317Diagnostic, DeprecatedTypeManagedFormDiagnostic, DisableSafeModeDiagnostic, DoubleNegativesDiagnostic, DuplicatedInsertionIntoCollectionDiagnostic, DuplicateRegionDiagnostic, DuplicateStringLiteralDiagnostic, EmptyCodeBlockDiagnostic, EmptyRegionDiagnostic, EmptyStatementDiagnostic, ExcessiveAutoTestCheckDiagnostic, ExecuteExternalCodeDiagnostic, ExecuteExternalCodeInCommonModuleDiagnostic, ExportVariablesDiagnostic, ExternalAppStartingDiagnostic, ExtraCommasDiagnostic, FieldsFromJoinsWithoutIsNullDiagnostic, FileSystemAccessDiagnostic, ForbiddenMetadataNameDiagnostic, FormDataToValueDiagnostic, FullOuterJoinQueryDiagnostic, FunctionNameStartsWithGetDiagnostic, FunctionOutParameterDiagnostic, FunctionReturnsSamePrimitiveDiagnostic, FunctionShouldHaveReturnDiagnostic, GetFormMethodDiagnostic, GlobalContextMethodCollision8312Diagnostic, IdenticalExpressionsDiagnostic, IfConditionComplexityDiagnostic, IfElseDuplicatedCodeBlockDiagnostic, IfElseDuplicatedConditionDiagnostic, IfElseIfEndsWithElseDiagnostic, IncorrectLineBreakDiagnostic, IncorrectUseLikeInQueryDiagnostic, IncorrectUseOfStrTemplateDiagnostic, InternetAccessDiagnostic, InvalidCharacterInFileDiagnostic, IsInRoleMethodDiagnostic, JoinWithSubQueryDiagnostic, JoinWithVirtualTableDiagnostic, LatinAndCyrillicSymbolInWordDiagnostic, LineLengthDiagnostic, LogicalOrInTheWhereSectionOfQueryDiagnostic, MagicDateDiagnostic, MagicNumberDiagnostic, MetadataObjectNameLengthDiagnostic, MethodSizeDiagnostic, MissedRequiredParameterDiagnostic, MissingCodeTryCatchExDiagnostic, MissingCommonModuleMethodDiagnostic, MissingEventSubscriptionHandlerDiagnostic, MissingParameterDescriptionDiagnostic, MissingReturnedValueDescriptionDiagnostic, MissingSpaceDiagnostic, MissingTemporaryFileDeletionDiagnostic, MissingTempStorageDeletionDiagnostic, MissingVariablesDescriptionDiagnostic, MultilineStringInQueryDiagnostic, MultilingualStringHasAllDeclaredLanguagesDiagnostic, MultilingualStringUsingWithTemplateDiagnostic, NestedConstructorsInStructureDeclarationDiagnostic, NestedFunctionInParametersDiagnostic, NestedStatementsDiagnostic, NestedTernaryOperatorDiagnostic, NonExportMethodsInApiRegionDiagnostic, NonStandardRegionDiagnostic, NumberOfOptionalParamsDiagnostic, NumberOfParamsDiagnostic, NumberOfValuesInStructureConstructorDiagnostic, OneStatementPerLineDiagnostic, OrderOfParamsDiagnostic, OrdinaryAppSupportDiagnostic, OSUsersMethodDiagnostic, PairingBrokenTransactionDiagnostic, ParseErrorDiagnostic, PrivilegedModuleMethodCallDiagnostic, ProcedureReturnsValueDiagnostic, ProtectedModuleDiagnostic, PublicMethodsDescriptionDiagnostic, QueryParseErrorDiagnostic, QueryToMissingMetadataDiagnostic, RedundantAccessToObjectDiagnostic, RefOveruseDiagnostic, ReservedParameterNamesDiagnostic, RewriteMethodParameterDiagnostic, SameMetadataObjectAndChildNamesDiagnostic, ScheduledJobHandlerDiagnostic, SelectTopWithoutOrderByDiagnostic, SelfAssignDiagnostic, SelfInsertionDiagnostic, SemicolonPresenceDiagnostic, ServerSideExportFormMethodDiagnostic, SetPermissionsForNewObjectsDiagnostic, SetPrivilegedModeDiagnostic, SeveralCompilerDirectivesDiagnostic, SpaceAtStartCommentDiagnostic, StyleElementConstructorsDiagnostic, TempFilesDirDiagnostic, TernaryOperatorUsageDiagnostic, ThisObjectAssignDiagnostic, TimeoutsInExternalResourcesDiagnostic, TooManyReturnsDiagnostic, TransferringParametersBetweenClientAndServerDiagnostic, TryNumberDiagnostic, TypoDiagnostic, UnaryPlusInConcatenationDiagnostic, UnionAllDiagnostic, UnknownPreprocessorSymbolDiagnostic, UnreachableCodeDiagnostic, UnsafeSafeModeMethodCallDiagnostic, UnusedLocalMethodDiagnostic, UnusedLocalVariableDiagnostic, UnusedParametersDiagnostic, UsageWriteLogEventDiagnostic, UseLessForEachDiagnostic, UseSystemInformationDiagnostic, UsingCancelParameterDiagnostic, UsingExternalCodeToolsDiagnostic, UsingFindElementByStringDiagnostic, UsingGotoDiagnostic, UsingHardcodeNetworkAddressDiagnostic, UsingHardcodePathDiagnostic, UsingHardcodeSecretInformationDiagnostic, UsingLikeInQueryDiagnostic, UsingModalWindowsDiagnostic, UsingObjectNotAvailableUnixDiagnostic, UsingServiceTagDiagnostic, UsingSynchronousCallsDiagnostic, UsingThisFormDiagnostic, VirtualTableCallWithoutParametersDiagnostic, WrongDataPathForFormElementsDiagnostic, WrongHttpServiceHandlerDiagnostic, WrongUseFunctionProceedWithCallDiagnostic, WrongUseOfRollbackTransactionMethodDiagnostic, WrongWebServiceHandlerDiagnostic, YoLetterUsageDiagnostic

public interface BSLDiagnostic
BSLDiagnostic main purpose is to provide collection of LSP Diagnostic, fired on concrete DocumentContext.

Each BSLDiagnostic implementation MUST contain constructor with exactly one parameter DiagnosticInfo. Passed DiagnosticInfo MUST be stored as a object field and returned by getInfo().

getDiagnostics(DocumentContext) method SHOULD use DiagnosticStorage to add and return diagnostics.

  • Method Details

    • getDiagnostics

      List<Diagnostic> getDiagnostics(DocumentContext documentContext)
    • setInfo

      void setInfo(DiagnosticInfo info)
    • getInfo

      DiagnosticInfo getInfo()
    • configure

      default void configure(Map<String,Object> configuration)
      Настроить параметры диагностики.
      Parameters:
      configuration - Карта параметров конфигурации