Package org.sonar.javascript.checks
Class EslintBasedCheck
- java.lang.Object
-
- org.sonar.javascript.checks.EslintBasedCheck
-
- All Implemented Interfaces:
JavaScriptCheck
- Direct Known Subclasses:
AdjacentOverloadSignaturesCheck,AlertUseCheck,AlphabeticalSortCheck,AlwaysUseCurlyBracesCheck,AngleBracketTypeAssertionCheck,ArgumentsCallerCalleeUsageCheck,ArgumentsUsageCheck,ArrowFunctionConventionCheck,BitwiseOperatorsCheck,BooleanEqualityComparisonCheck,BoolParamDefaultCheck,ClassNameCheck,CognitiveComplexityFunctionCheck,CollapsibleIfStatementsCheck,CollectionSizeComparisonCheck,CommaOperatorInSwitchCaseCheck,CommaOperatorUseCheck,CommentedCodeCheck,CommentRegularExpressionCheck,ComparisonWithNaNCheck,ConditionalIndentationCheck,ConsistentReturnsCheck,ConsoleLoggingCheck,ConstructorFunctionsForSideEffectsCheck,ConstructorSuperCheck,CookiesCheck,CorsCheck,CounterUpdatedInLoopCheck,CyclomaticComplexityJavaScriptCheck,CyclomaticComplexityTypeScriptCheck,DeadStoreCheck,DebuggerStatementCheck,DeprecationCheck,DestructuringAssignmentSyntaxCheck,DuplicateAllBranchImplementationCheck,DuplicateBranchImplementationCheck,DuplicateConditionIfCheck,ElseIfWithoutElseCheck,EmptyBlockCheck,EmptyDestructuringPatternCheck,EmptyStatementCheck,EncryptionCheck,EqEqEqCheck,EqualInForLoopTerminationCheck,ErrorWithoutThrowCheck,EvalCheck,ExpressionComplexityCheck,FileHeaderCheck,FileNameDiffersFromClassCheck,FixmeTagPresenceCheck,ForHidingWhileCheck,ForLoopConditionAndUpdateCheck,FunctionCallArgumentsOnNewLineCheck,FunctionDeclarationsWithinBlocksCheck,FunctionDefinitionInsideLoopCheck,FunctionNameCheck,FutureReservedWordsCheck,GlobalsShadowingCheck,GratuitousConditionCheck,HardcodedCredentialsCheck,HashingCheck,IdenticalExpressionOnBinaryOperatorCheck,IdenticalFunctionsCheck,IgnoredReturnCheck,ImmediatelyReturnedVariableCheck,ImplicitDependenciesCheck,InconsistentFunctionCallCheck,IncrementDecrementInSubExpressionCheck,IndexOfCompareToPositiveNumberCheck,InvariantReturnCheck,JumpStatementInFinallyCheck,LabelledStatementCheck,LabelPlacementCheck,LineLengthCheck,MaxParameterCheck,MaxSwitchCasesCheck,MaxUnionSizeCheck,MisorderedParameterListCheck,MissingNewlineAtEndOfFileCheck,MultilineBlockCurlyBraceCheck,MultilineStringLiteralsCheck,NestedAssignmentCheck,NestedControlFlowDepthCheck,NoAccessorFieldMismatchCheck,NoAnyCheck,NoArrayDeleteCheck,NoDuplicateImportsCheck,NoDuplicateInCompositeCheck,NoDuplicateStringCheck,NoElementOverwriteCheck,NoEmptyCollectionCheck,NoEmptyInterfaceCheck,NoForInArrayCheck,NoInferrableTypesCheck,NoInMisuseCheck,NoInvalidAwaitCheck,NoInvertedBooleanCheckCheck,NoMagicNumbersCheck,NoMisleadingArrayReverseCheck,NoMisusedNewCheck,NonCaseLabelInSwitchCheck,NonEmptyCaseWithoutBreakCheck,NoNestedSwitchCheck,NoNestedTemplateLiteralsCheck,NonExistentAssignmentOperatorCheck,NoNonNullAssertionCheck,NoOneIterationLoopCheck,NoRedundantJumpCheck,NoRedundantOptionalCheck,NoRequireImportsCheck,NoReturnAwaitCheck,NoReturnTypeAnyCheck,NoSparseArraysCheck,NoThisAliasCheck,NoUnnecessaryTypeAssertionCheck,NoUselessCatchCheck,ObjectLiteralShorthandCheck,OneStatementPerLineCheck,OpenCurlyBracesAtEOLCheck,OSCommandCheck,ParenthesesCheck,ParseIntCallWithoutBaseCheck,PreferDefaultLastCheck,PreferForOfCheck,PreferNamespaceCheck,PreferObjectLiteralCheck,PreferPromiseShorthandCheck,PreferReadonlyCheck,PreferTypeGuardCheck,PrimitiveWrappersCheck,ProcessArgvCheck,PseudoRandomCheck,ReassignedParameterCheck,RedeclaredSymbolCheck,RegularExprCheck,RestrictPlusOperandsCheck,ReturnOfBooleanExpressionCheck,SameLineConditionalCheck,SelfAssignmentCheck,SemicolonCheck,ShorthandPropertiesNotGroupedCheck,SocketsCheck,SqlQueriesCheck,StandardInputCheck,StrictModeCheck,StringConcatenationCheck,StringLiteralsQuotesCheck,SwitchWithNotEnoughCaseCheck,TabCharacterCheck,TemplateStringMisuseCheck,ThrowLiteralCheck,TodoTagPresenceCheck,TooManyArgumentsCheck,TooManyLinesInFileCheck,TooManyLinesInFunctionCheck,TryPromiseCheck,UnchangedLetVariableCheck,UndefinedArgumentCheck,UnnecessaryTypeArgumentsCheck,UnusedCollectionCheck,UnusedFunctionArgumentCheck,UnusedImportCheck,UnusedVariableCheck,UselessExpressionStatementCheck,UselessIncrementCheck,UselessIntersectionCheck,UseOfEmptyReturnValueCheck,UseTypeAliasCheck,VarDeclarationCheck,VariableDeclarationAfterUsageCheck,VariableNameCheck,VariableShadowingCheck,WildcardImportCheck,WrongScopeDeclarationCheck,XpathCheck
public abstract class EslintBasedCheck extends Object implements JavaScriptCheck
-
-
Constructor Summary
Constructors Constructor Description EslintBasedCheck()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PreciseIssueaddIssue(Tree tree, String message)<T extends Issue>
TaddIssue(T issue)LineIssueaddLineIssue(Tree tree, String message)List<Object>configurations()abstract StringeslintKey()List<Issue>scanFile(TreeVisitorContext context)
-
-
-
Method Detail
-
eslintKey
public abstract String eslintKey()
-
scanFile
public List<Issue> scanFile(TreeVisitorContext context)
- Specified by:
scanFilein interfaceJavaScriptCheck
-
addLineIssue
public LineIssue addLineIssue(Tree tree, String message)
- Specified by:
addLineIssuein interfaceJavaScriptCheck
-
addIssue
public PreciseIssue addIssue(Tree tree, String message)
- Specified by:
addIssuein interfaceJavaScriptCheck
-
addIssue
public <T extends Issue> T addIssue(T issue)
- Specified by:
addIssuein interfaceJavaScriptCheck
-
-