SonarJS linter helper functions
isRequire
Function isRequire
isRequire
(
node
:
Node
)
:
node
is
CallExpression
Parameters
node
:
Node
Returns
node
is
CallExpression
Settings
Theme
OS
Light
Dark
ESlint dev guide
SonarJS linter helper functions
Chai
isAssertion
isImported
Express
attemptFindAppInjection
attemptFindAppInstantiation
isMiddlewareInstance
isUsingMiddleware
SensitiveMiddlewarePropertyRule
Mocha
TestCase
extractTestCase
isDescribeCase
isTestCase
isTestConstruct
Sinon
isAssertion
isImported
Vitest
isAssertion
isImported
LiveVariables
ReachingDefinitions
EncodedMessage
IssueLocation
PolicyCheckerOptions
ReferenceLike
AwsCdkCallback
AwsCdkConsumer
AwsCdkConsumerMap
ContextOverrider
FullyQualifiedName
FunctionNodeType
LocationHolder
LoopLike
NamedDependency
Node
ReportOverrider
RequiredParserServices
RuleContext
SonarMeta
StringLiteral
Values
collectionConstructor
copyingSortLike
detectReactRule
FUNCTION_NODES
functionLike
globalsByLibraries
PACKAGE_JSON
sortLike
TYPED_ARRAY_TYPES
unknownValue
UTILITY_TYPES
writingMethods
ancestorsChain
areEquivalent
AwsCdkCheckArguments
AwsCdkTemplate
AwsIamPolicyTemplate
checkSensitiveCall
childrenOf
clearDependenciesCache
collectIfBranches
collectSwitchBranches
encodeContents
expandMessage
findFirstMatchingAncestor
findFirstMatchingLocalAncestor
findParent
findPropagatedSetting
flatMap
flattenArgs
generateMeta
getAllDependencies
getBucketProperty
getDependencies
getDependenciesFromPackageJson
getElementType
getFirstToken
getFirstTokenAfter
getFullyQualifiedName
getFullyQualifiedNameRaw
getImportDeclarations
getJsxShortCircuitNodes
getLhsVariable
getLiteralValue
getMainFunctionTokenLocation
getManifests
getNodeParent
getParent
getProgramStatements
getProperty
getPropertyWithValue
getRequireCalls
getSensitiveEffect
getSignatureFromCallee
getSimpleRawStringValue
getSymbolAtLocation
getTypeAsString
getTypeFromTreeNode
getUnionTypes
getUniqueWriteReference
getUniqueWriteUsage
getUniqueWriteUsageOrNode
getValueOfExpression
getVariableFromIdentifier
getVariableFromName
getVariableFromScope
interceptReport
interceptReportForReact
isAny
isAnyLiteral
isArray
isArrayExpression
isArrayLikeType
isArrowFunctionExpression
isBigIntArray
isBigIntType
isBinaryPlus
isBooleanLiteral
isBooleanLiteralType
isBooleanTrueType
isBooleanType
isCallingMethod
isDefaultSpecifier
isDotNotation
isElementWrite
isFalseLiteral
isFunction
isFunctionCall
isFunctionDeclaration
isFunctionExpression
isFunctionInvocation
isFunctionNode
isGenericType
isIdentifier
isIfStatement
isIndexNotation
isInsideVueSetupScript
isLiteral
isLogicalExpression
isMemberExpression
isMemberWithProperty
isMethodCall
isMethodInvocation
isModuleDeclaration
isModuleExports
isNamespaceSpecifier
isNullLiteral
isNullOrUndefinedType
isNumber
isNumberArray
isNumberLiteral
isNumberType
isObjectDestructuring
isObjectType
isPresentationTable
isProperty
isReferenceTo
isRegexLiteral
isRequire
isRequiredParserServices
isRequireModule
isRoot
isS3BucketConstructor
isS3BucketDeploymentConstructor
isSimpleRawString
isStaticTemplateLiteral
isString
isStringArray
isStringLiteral
isStringType
isSupported
isThenable
isThisExpression
isThrowStatement
isTypeAlias
isTypedArray
isUnaryExpression
isUndefined
isUndefinedOrNull
isUnion
isUnresolved
isVariableDeclaration
last
localAncestorsChain
lva
mergeRules
normalizeFQN
reachingDefinitions
readFileSync
reduceTo
reduceToIdentifier
removeNodeWithLeadingWhitespaces
report
resolveAssignedValues
resolveFromFunctionReference
resolveFunction
resolveIdentifiers
S3BucketTemplate
stripBOM
takeWithoutBreak
toEncodedMessage
toSecondaryLocation
toUnixPath
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R