GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JavaScript: Autoformat. · github/codeql@ca45fb5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • javascript
    • ql
      • examples/queries/dataflow/DecodingAfterSanitization
        • DecodingAfterSanitizationGeneralized.ql
      • src
        • AlertSuppression.ql
        • AngularJS
          • InsecureUrlWhitelist.ql
        • Declarations
          • DeadStoreOfLocal.ql
          • DeadStoreOfProperty.ql
          • UnusedProperty.ql
        • Expressions
          • ExprHasNoEffect.ql
          • UnboundEventHandlerReceiver.ql
        • LanguageFeatures
          • TemplateSyntaxInStringLiteral.ql
        • Performance
          • ReDoS.ql
        • Security
          • CWE-020
            • IncorrectSuffixCheck.ql
            • MissingRegExpAnchor.ql
          • CWE-116
            • DoubleEscaping.ql
          • CWE-313
            • PasswordInConfigurationFile.ql
          • CWE-400
            • PrototypePollution.ql
          • Summaries
            • ImportFromCsv.qll
            • ImportFromExternalPredicates.qll
            • PortalEntrySink.qll
            • PortalExitSource.qll
        • Statements
          • LoopIterationSkippedDueToShifting.ql
          • UnreachableStatement.ql
        • meta/analysis-quality
          • CallGraphQuality.qll
          • CalledFunctionCandidates.ql
          • CalledFunctionRatio.ql
          • CalledFunctions.ql
          • ResolvableCallCandidates.ql
          • ResolvableCallRatio.ql
          • ResolvableCalls.ql
          • UncalledFunctions.ql
          • UnresolvableCalls.ql
        • semmle/javascript
          • AST.qll
          • BasicBlocks.qll
          • Comments.qll
          • DOM.qll
          • DefensiveProgramming.qll
          • E4X.qll
          • ES2015Modules.qll
          • Expr.qll
          • Files.qll
          • GeneratedCode.qll
          • GlobalAccessPaths.qll
          • JSDoc.qll
          • Paths.qll
          • Promises.qll
          • SSA.qll
          • StringOps.qll
          • TypeScript.qll
          • Variables.qll
          • XML.qll
          • dataflow
            • Configuration.qll
            • DataFlow.qll
            • LocalObjects.qll
            • Nodes.qll
            • Sources.qll
            • TaintTracking.qll
            • TrackedNodes.qll
            • TypeInference.qll
            • TypeTracking.qll
            • internal
              • AccessPaths.qll
              • FlowSteps.qll
              • InterModuleTypeInference.qll
              • InterProceduralTypeInference.qll
              • PropertyTypeInference.qll
              • VariableTypeInference.qll
          • dependencies
            • SemVer.qll
          • frameworks
            • AngularJS
              • AngularJSCore.qll
              • AngularJSExpressions.qll
              • DependencyInjections.qll
              • ServiceDefinitions.qll
            • AsyncPackage.qll
            • Babel.qll
            • ClientRequests.qll
            • ClosureLibrary.qll
            • ComposedFunctions.qll
            • Connect.qll
            • CryptoLibraries.qll
            • Electron.qll
            • Express.qll
            • Firebase.qll
            • Hapi.qll
            • Koa.qll
            • LodashUnderscore.qll
            • NoSQL.qll
            • NodeJSLib.qll
            • PropertyProjection.qll
            • React.qll
            • Restify.qll
            • SQL.qll
            • ShellJS.qll
            • SocketIO.qll
            • StringFormatters.qll
            • UriLibraries.qll
            • Vue.qll
            • jQuery.qll
          • security
            • SensitiveActions.qll
            • TaintedObject.qll
            • dataflow
              • ConditionalBypassCustomizations.qll
              • DOM.qll
              • DifferentKindsComparisonBypass.qll
              • HardcodedCredentialsCustomizations.qll
              • RequestForgeryCustomizations.qll
              • TaintedPathCustomizations.qll
              • UnvalidatedDynamicMethodCallCustomizations.qll
      • test
        • library-tests
          • CallGraphs/AnnotatedTest
            • Test.ql
          • Classes
            • ClassNodeStaticMethod.qll
          • DOM
            • Customizations.ql
          • Expr
            • tests.ql
          • GlobalAccessPaths
            • GlobalAccessPaths.ql
          • InterProceduralFlow
            • FlowLabels.ql
          • JSDoc/NameResolution
            • test.ql
          • LabelledBarrierGuards
            • LabelledBarrierGuards.ql
          • LocalObjects
            • MethodCallTypeInferenceUsage.ql
          • ModuleImportNodes
            • CustomImport.ql
          • StringConcatenation
            • StringOps.ql
          • ThisExpr
            • getBasicBlock.ql
          • TypeAnnotations/JSDoc
            • JSDocTypeAnnotations.ql
          • TypeScript
            • ConstKeyword
              • ConstKeyword.ql
            • LocalTypeResolution
              • CheckResolution.ql
          • frameworks
            • Base64
              • Decode.qll
              • Encode.qll
            • ClientRequests
              • ClientRequests.ql
            • Electron
              • BrowserObject.ql
            • Firebase
              • RequestInputAccess.ql
              • ResponseSendArgument.ql
              • RouteHandler.ql
            • Vue
              • InstanceHeapStep.ql
              • TemplateElement.ql
            • koa
              • RedirectInvocation.qll
              • tests.ql
        • query-tests/Security/CWE-022/TaintedPath
          • Consistency.ql
    • upgrades
      • 480c0c6f68fac1441d25defa4562f61a5f968d11
        • hasLocation.ql
        • yaml_locations.ql
      • 64ea4d71964ad03f6604cf49f4869163dacbab66
        • hasLocation.ql
        • json_locations.ql

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎javascript/ql/examples/queries/dataflow/DecodingAfterSanitization/DecodingAfterSanitizationGeneralized.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/examples/queries/dataflow/DecodingAfterSanitization/DecodingAfterSanitizationGeneralized.ql
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import DataFlow::PathGraph
1717
*/
1818
class DecodingCall extends CallNode {
1919
string kind;
20-
2120
Node input;
2221

2322
DecodingCall() {
Collapse file

‎javascript/ql/src/AlertSuppression.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/AlertSuppression.ql
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import javascript
1212
*/
1313
class SuppressionComment extends Locatable {
1414
string text;
15-
1615
string annotation;
1716

1817
SuppressionComment() {
Collapse file

‎javascript/ql/src/AngularJS/InsecureUrlWhitelist.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/AngularJS/InsecureUrlWhitelist.ql
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ predicate isResourceUrlWhitelist(
3232
*/
3333
class ResourceUrlWhitelistEntry extends Expr {
3434
DataFlow::MethodCallNode setupCall;
35-
3635
string pattern;
3736

3837
ResourceUrlWhitelistEntry() {
Collapse file

‎javascript/ql/src/Declarations/DeadStoreOfLocal.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/Declarations/DeadStoreOfLocal.ql
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,8 @@ where
5858
(
5959
// To avoid confusion about the meaning of "definition" and "declaration" we avoid
6060
// the term "definition" when the alert location is a variable declaration.
61-
if dead instanceof VariableDeclarator then
62-
msg = "The initial value of " + v.getName() + " is unused, since it is always overwritten."
63-
else
64-
msg = "This definition of " + v.getName() + " is useless, since its value is never read."
61+
if dead instanceof VariableDeclarator
62+
then msg = "The initial value of " + v.getName() + " is unused, since it is always overwritten."
63+
else msg = "This definition of " + v.getName() + " is useless, since its value is never read."
6564
)
6665
select dead, msg
Collapse file

‎javascript/ql/src/Declarations/DeadStoreOfProperty.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/Declarations/DeadStoreOfProperty.ql
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ where
160160
) and
161161
// exclude results from non-value definitions from `Object.defineProperty`
162162
(
163-
assign1 instanceof CallToObjectDefineProperty implies
163+
assign1 instanceof CallToObjectDefineProperty
164+
implies
164165
assign1.(CallToObjectDefineProperty).hasPropertyAttributeWrite("value", _)
165166
)
166167
select assign1.getWriteNode(),
Collapse file

‎javascript/ql/src/Declarations/UnusedProperty.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/Declarations/UnusedProperty.ql
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@ predicate hasUnknownPropertyRead(LocalObject obj) {
3434
* Holds if `obj` flows to an expression that must have a specific type.
3535
*/
3636
predicate flowsToTypeRestrictedExpression(LocalObject obj) {
37-
exists (Expr restricted, TypeExpr type |
37+
exists(Expr restricted, TypeExpr type |
3838
obj.flowsToExpr(restricted) and
39-
not type.isAny() |
40-
exists (TypeAssertion assertion |
39+
not type.isAny()
40+
|
41+
exists(TypeAssertion assertion |
4142
type = assertion.getTypeAnnotation() and
4243
restricted = assertion.getExpression()
4344
)
4445
or
45-
exists (BindingPattern v |
46+
exists(BindingPattern v |
4647
type = v.getTypeAnnotation() and
4748
restricted = v.getAVariable().getAnAssignedExpr()
4849
)
Collapse file

‎javascript/ql/src/Expressions/ExprHasNoEffect.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/Expressions/ExprHasNoEffect.ql
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ predicate isDeclaration(Expr e) {
3636
*/
3737
predicate isGetterProperty(string name) {
3838
// there is a call of the form `Object.defineProperty(..., name, descriptor)` ...
39-
exists(CallToObjectDefineProperty defProp |
40-
name = defProp.getPropertyName() |
39+
exists(CallToObjectDefineProperty defProp | name = defProp.getPropertyName() |
4140
// ... where `descriptor` defines a getter
42-
defProp.hasPropertyAttributeWrite("get", _) or
41+
defProp.hasPropertyAttributeWrite("get", _)
42+
or
4343
// ... where `descriptor` may define a getter
44-
exists (DataFlow::SourceNode descriptor |
45-
descriptor.flowsTo(defProp.getPropertyDescriptor()) |
46-
descriptor.isIncomplete(_) or
44+
exists(DataFlow::SourceNode descriptor | descriptor.flowsTo(defProp.getPropertyDescriptor()) |
45+
descriptor.isIncomplete(_)
46+
or
4747
// minimal escape analysis for the descriptor
48-
exists (DataFlow::InvokeNode invk |
48+
exists(DataFlow::InvokeNode invk |
4949
not invk = defProp and
5050
descriptor.flowsTo(invk.getAnArgument())
5151
)
Collapse file

‎javascript/ql/src/Expressions/UnboundEventHandlerReceiver.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/Expressions/UnboundEventHandlerReceiver.ql
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ private predicate isBoundInMethod(MethodDeclaration method) {
2828
)
2929
or
3030
// require("auto-bind")(this)
31-
exists (string mod |
31+
exists(string mod |
3232
mod = "auto-bind" or
33-
mod = "react-autobind" |
33+
mod = "react-autobind"
34+
|
3435
thiz.flowsTo(DataFlow::moduleImport(mod).getACall().getArgument(0))
3536
)
3637
or
Collapse file

‎javascript/ql/src/LanguageFeatures/TemplateSyntaxInStringLiteral.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/LanguageFeatures/TemplateSyntaxInStringLiteral.ql
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class CandidateTopLevel extends TopLevel {
1818
/** A string literal in a toplevel that contains at least one template literal. */
1919
class CandidateStringLiteral extends StringLiteral {
2020
CandidateTopLevel tl;
21-
2221
string v;
2322

2423
CandidateStringLiteral() {
Collapse file

‎javascript/ql/src/Performance/ReDoS.ql‎

Copy file name to clipboardExpand all lines: javascript/ql/src/Performance/ReDoS.ql
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ newtype TStatePair =
395395

396396
class StatePair extends TStatePair {
397397
State q1;
398-
399398
State q2;
400399

401400
StatePair() { this = MkStatePair(q1, q2) }

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.