Add @id to example queries

This commit is contained in:
Arthur Baars
2019-07-25 15:43:39 +02:00
parent bdce7d07c1
commit ccde7cf6cf
142 changed files with 142 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/addressof
* @name Address of reference variable * @name Address of reference variable
* @description Finds address-of expressions (`&`) that take the address * @description Finds address-of expressions (`&`) that take the address
* of a reference variable * of a reference variable

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/arrayaccess
* @name Array access * @name Array access
* @description Finds array access expressions with an index expression * @description Finds array access expressions with an index expression
* consisting of a postfix increment (`++`) expression. * consisting of a postfix increment (`++`) expression.

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/castexpr
* @name Cast expressions * @name Cast expressions
* @description Finds casts from a floating point type to an integer type * @description Finds casts from a floating point type to an integer type
* @tags cast * @tags cast

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/catch-exception
* @name Catch exception * @name Catch exception
* @description Finds places where we catch exceptions of type `parse_error` * @description Finds places where we catch exceptions of type `parse_error`
* @tags catch * @tags catch

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/constructor-call
* @name Call to constructor * @name Call to constructor
* @description Finds places where we call `new MyClass(...)` * @description Finds places where we call `new MyClass(...)`
* @tags call * @tags call

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/derives-from-class
* @name Class derives from * @name Class derives from
* @description Finds classes that derive from `std::exception` * @description Finds classes that derive from `std::exception`
* @tags base * @tags base

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/emptyblock
* @name Empty blocks * @name Empty blocks
* @description Finds empty block statements * @description Finds empty block statements
* @tags empty * @tags empty

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/emptythen
* @name If statements with empty then branch * @name If statements with empty then branch
* @description Finds `if` statements where the `then` branch is * @description Finds `if` statements where the `then` branch is
* an empty block statement * an empty block statement

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/eq-true
* @name Equality test on boolean * @name Equality test on boolean
* @description Finds tests like `==true`, `!=true` * @description Finds tests like `==true`, `!=true`
* @tags equal * @tags equal

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/field-access
* @name Access of field * @name Access of field
* @description Finds reads of `aDate` (defined on class `Order`) * @description Finds reads of `aDate` (defined on class `Order`)
* @tags access * @tags access

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/function-call
* @name Call to function * @name Call to function
* @description Finds calls to `std::map<...>::find()` * @description Finds calls to `std::map<...>::find()`
* @tags call * @tags call

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/integer-literal
* @name Integer literal * @name Integer literal
* @description Finds places where we use the integer literal `2` * @description Finds places where we use the integer literal `2`
* @tags integer * @tags integer

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/mutualrecursion
* @name Mutual recursion * @name Mutual recursion
* @description Finds pairs of functions that call each other * @description Finds pairs of functions that call each other
* @tags function * @tags function

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/override-method
* @name Override of method * @name Override of method
* @description Finds methods that override `std::exception::what()` * @description Finds methods that override `std::exception::what()`
* @tags function * @tags function

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/returnstatement
* @name Return statements * @name Return statements
* @description Finds return statements that return `0` * @description Finds return statements that return `0`
* @tags return * @tags return

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/singletonblock
* @name Singleton blocks * @name Singleton blocks
* @description Finds block statements containing a single statement * @description Finds block statements containing a single statement
* @tags block * @tags block

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/switchcase
* @name Switch statement case missing * @name Switch statement case missing
* @description Finds switch statements with a missing enum constant case * @description Finds switch statements with a missing enum constant case
* and no default case * and no default case

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/ternaryconditional
* @name Conditional expressions * @name Conditional expressions
* @description Finds conditional expressions of the form `... ? ... : ...` * @description Finds conditional expressions of the form `... ? ... : ...`
* where the types of the resulting expressions differ * where the types of the resulting expressions differ

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/throw-exception
* @name Throw exception of type * @name Throw exception of type
* @description Finds places where we throw `parse_error` or one of its sub-types * @description Finds places where we throw `parse_error` or one of its sub-types
* @tags base * @tags base

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/todocomment
* @name TODO comments * @name TODO comments
* @description Finds comments containing the word "TODO" * @description Finds comments containing the word "TODO"
* @tags comment * @tags comment

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/toomanyparams
* @name Functions with many parameters * @name Functions with many parameters
* @description Finds functions or methods with more than 10 parameters * @description Finds functions or methods with more than 10 parameters
* @tags function * @tags function

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/unusedlocalvar
* @name Unused local variable * @name Unused local variable
* @description Finds local variables that are not accessed * @description Finds local variables that are not accessed
* @tags variable * @tags variable

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/unusedmethod
* @name Unused private method * @name Unused private method
* @description Finds private non-virtual methods that are not accessed * @description Finds private non-virtual methods that are not accessed
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/unusedparam
* @name Unused parameter * @name Unused parameter
* @description Finds parameters that are not accessed * @description Finds parameters that are not accessed
* @tags parameter * @tags parameter

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/voidreturntype
* @name Const method without return type * @name Const method without return type
* @description Finds const methods whose return type is `void` * @description Finds const methods whose return type is `void`
* @tags const * @tags const

View File

@@ -1,4 +1,5 @@
/** /**
* @id cpp/examples/volatilevariable
* @name Variable declared volatile * @name Variable declared volatile
* @description Finds variables with a `volatile` modifier * @description Finds variables with a `volatile` modifier
* @tags variable * @tags variable

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/array-access
* @name Array access * @name Array access
* @description Finds array access expressions with an index expression * @description Finds array access expressions with an index expression
* consisting of a unary increment or decrement, e.g. 'a[i++]'. * consisting of a unary increment or decrement, e.g. 'a[i++]'.

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/cast-expr
* @name Cast expressions * @name Cast expressions
* @description Finds casts from a floating point type to an integer type. * @description Finds casts from a floating point type to an integer type.
* @tags cast * @tags cast

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/catch-exception
* @name Catch exception * @name Catch exception
* @description Finds places where we catch exceptions of type 'System.IO.IOException'. * @description Finds places where we catch exceptions of type 'System.IO.IOException'.
* @tags catch * @tags catch

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/constructor-call
* @name Call to constructor * @name Call to constructor
* @description Finds places where we call 'new System.Exception(...)'. * @description Finds places where we call 'new System.Exception(...)'.
* @tags call * @tags call

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/empty-block
* @name Empty blocks * @name Empty blocks
* @description Finds empty block statements. * @description Finds empty block statements.
* @tags empty * @tags empty

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/empty-then
* @name If statements with empty then branch * @name If statements with empty then branch
* @description Finds 'if' statements where the 'then' branch is * @description Finds 'if' statements where the 'then' branch is
* an empty block statement. * an empty block statement.

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/eq-true
* @name Equality test on Boolean * @name Equality test on Boolean
* @description Finds tests like 'x==true', 'x==false', 'x!=true', '!=false'. * @description Finds tests like 'x==true', 'x==false', 'x!=true', '!=false'.
* @tags equals * @tags equals

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/extend-class
* @name Class extends/implements * @name Class extends/implements
* @description Finds classes/interfaces that extend/implement 'System.Collections.IEnumerator'. * @description Finds classes/interfaces that extend/implement 'System.Collections.IEnumerator'.
* @tags class * @tags class

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/extern-method
* @name Extern methods * @name Extern methods
* @description Finds methods that are 'extern'. * @description Finds methods that are 'extern'.
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/field-read
* @name Read of field * @name Read of field
* @description Finds reads of 'VirtualAddress' (defined on 'Mono.Cecil.PE.Section'). * @description Finds reads of 'VirtualAddress' (defined on 'Mono.Cecil.PE.Section').
* @tags field * @tags field

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/integer-literal
* @name Integer literal * @name Integer literal
* @description Finds places where we use the integer literal '0'. * @description Finds places where we use the integer literal '0'.
* @tags integer * @tags integer

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/method-call
* @name Call to method * @name Call to method
* @description Finds calls to method 'Company.Class.MethodName'. * @description Finds calls to method 'Company.Class.MethodName'.
* @tags call * @tags call

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/mutual-recursion
* @name Mutual recursion * @name Mutual recursion
* @description Finds pairs of methods that call each other. * @description Finds pairs of methods that call each other.
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/null-argument
* @name Add null to collection * @name Add null to collection
* @description Finds places where we add 'null' to a collection. * @description Finds places where we add 'null' to a collection.
* @tags null * @tags null

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/override-method
* @name Override of method * @name Override of method
* @description Finds methods that directly override 'Object.ToString'. * @description Finds methods that directly override 'Object.ToString'.
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/qualifier
* @name Expression qualifier * @name Expression qualifier
* @description Finds qualified expressions (e.g. 'a.b()') and their qualifiers ('a'). * @description Finds qualified expressions (e.g. 'a.b()') and their qualifiers ('a').
* @tags qualifier * @tags qualifier

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/return-statement
* @name Return statements * @name Return statements
* @description Finds return statements that return 'null'. * @description Finds return statements that return 'null'.
* @tags return * @tags return

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/singleton-block
* @name Singleton blocks * @name Singleton blocks
* @description Finds block statements containing a single statement. * @description Finds block statements containing a single statement.
* @tags block * @tags block

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/switch-case
* @name Switch statement case missing * @name Switch statement case missing
* @description Finds switch statements with a missing enum constant case and no default case. * @description Finds switch statements with a missing enum constant case and no default case.
* @tags switch * @tags switch

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/ternary-conditional
* @name Conditional expressions * @name Conditional expressions
* @description Finds conditional expressions of the form '... ? ... : ...' * @description Finds conditional expressions of the form '... ? ... : ...'
* where the types of the resulting expressions differ. * where the types of the resulting expressions differ.

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/throw-exception
* @name Throw exception of given type * @name Throw exception of given type
* @description Finds places where we throw 'System.IO.IOException' or one of its subtypes. * @description Finds places where we throw 'System.IO.IOException' or one of its subtypes.
* @tags throw * @tags throw

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/todo-comment
* @name TODO comments * @name TODO comments
* @description Finds comments containing the word "TODO". * @description Finds comments containing the word "TODO".
* @tags comment * @tags comment

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/too-many-params
* @name Methods with many parameters * @name Methods with many parameters
* @description Finds methods with more than ten parameters. * @description Finds methods with more than ten parameters.
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/try-finally
* @name Try-finally statements * @name Try-finally statements
* @description Finds try-finally statements without a catch clause. * @description Finds try-finally statements without a catch clause.
* @tags try * @tags try

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/unused-local-var
* @name Unused local variable * @name Unused local variable
* @description Finds local variables that are not accessed. * @description Finds local variables that are not accessed.
* @tags variable * @tags variable

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/unused-param
* @name Unused parameter * @name Unused parameter
* @description Finds parameters that are not accessed. * @description Finds parameters that are not accessed.
* @tags parameter * @tags parameter

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/void-return-type
* @name Methods without return type * @name Methods without return type
* @description Finds methods whose return type is 'void'. * @description Finds methods whose return type is 'void'.
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id cs/examples/volatile-field
* @name Fields declared volatile * @name Fields declared volatile
* @description Finds fields with a 'volatile' modifier. * @description Finds fields with a 'volatile' modifier.
* @tags field * @tags field

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/arrayaccess
* @name Array access * @name Array access
* @description Finds array access expressions with an index expression * @description Finds array access expressions with an index expression
* consisting of a unary assignment * consisting of a unary assignment

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/castexpr
* @name Cast expressions * @name Cast expressions
* @description Finds casts from a floating point type to an integer type * @description Finds casts from a floating point type to an integer type
* @tags cast * @tags cast

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/catch-exception
* @name Catch exception * @name Catch exception
* @description Finds places where we catch exceptions of type com.example.AnException * @description Finds places where we catch exceptions of type com.example.AnException
* @tags catch * @tags catch

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/constructor-call
* @name Call to constructor * @name Call to constructor
* @description Finds places where we call `new com.example.Class(...)` * @description Finds places where we call `new com.example.Class(...)`
* @tags call * @tags call

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/emptyblock
* @name Empty blocks * @name Empty blocks
* @description Finds empty block statements * @description Finds empty block statements
* @tags empty * @tags empty

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/emptythen
* @name If statements with empty then branch * @name If statements with empty then branch
* @description Finds 'if' statements where the 'then' branch is * @description Finds 'if' statements where the 'then' branch is
* an empty block statement * an empty block statement

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/eq-true
* @name Equality test on boolean * @name Equality test on boolean
* @description Finds tests like `==true`, `==false`, `!=true`, `!=false` * @description Finds tests like `==true`, `==false`, `!=true`, `!=false`
* @tags equals * @tags equals

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/extend-class
* @name Class extends/implements * @name Class extends/implements
* @description Finds classes/interfaces that extend/implement com.example.Class * @description Finds classes/interfaces that extend/implement com.example.Class
* @tags class * @tags class

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/field-read
* @name Read of field * @name Read of field
* @description Finds reads of aField (defined on com.example.Class) * @description Finds reads of aField (defined on com.example.Class)
* @tags field * @tags field

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/integer-literal
* @name Integer literal * @name Integer literal
* @description Finds places where we use the integer literal `0` * @description Finds places where we use the integer literal `0`
* @tags integer * @tags integer

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/method-call
* @name Call to method * @name Call to method
* @description Finds calls to com.example.Class.methodName * @description Finds calls to com.example.Class.methodName
* @tags call * @tags call

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/mutualrecursion
* @name Mutual recursion * @name Mutual recursion
* @description Finds pairs of methods that call each other * @description Finds pairs of methods that call each other
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/nativemethod
* @name Native methods * @name Native methods
* @description Finds methods that are native * @description Finds methods that are native
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/null-argument
* @name Add null to collection * @name Add null to collection
* @description Finds places where we add null to a collection * @description Finds places where we add null to a collection
* @tags null * @tags null

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/override-method
* @name Override of method * @name Override of method
* @description Finds methods that override com.example.Class.baseMethod * @description Finds methods that override com.example.Class.baseMethod
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/qualifiedthis
* @name Qualified 'this' access * @name Qualified 'this' access
* @description Finds 'this' accesses that are qualified by a type name * @description Finds 'this' accesses that are qualified by a type name
* @tags this * @tags this

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/returnstatement
* @name Return statements * @name Return statements
* @description Finds return statements that return 'null' * @description Finds return statements that return 'null'
* @tags return * @tags return

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/singletonblock
* @name Singleton blocks * @name Singleton blocks
* @description Finds block statements containing a single statement * @description Finds block statements containing a single statement
* @tags block * @tags block

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/switchcase
* @name Switch statement case missing * @name Switch statement case missing
* @description Finds switch statements with a missing enum constant case and no default case * @description Finds switch statements with a missing enum constant case and no default case
* @tags switch * @tags switch

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/synchronizedmethod
* @name Synchronized methods * @name Synchronized methods
* @description Finds methods that are synchronized * @description Finds methods that are synchronized
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/ternaryconditional
* @name Conditional expressions * @name Conditional expressions
* @description Finds conditional expressions of the form '... ? ... : ...' * @description Finds conditional expressions of the form '... ? ... : ...'
* where the types of the resulting expressions differ * where the types of the resulting expressions differ

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/throw-exception
* @name Throw exception of type * @name Throw exception of type
* @description Finds places where we throw com.example.AnException or one of its subtypes * @description Finds places where we throw com.example.AnException or one of its subtypes
* @tags throw * @tags throw

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/todocomment
* @name TODO comments * @name TODO comments
* @description Finds comments containing the word "TODO" * @description Finds comments containing the word "TODO"
* @tags comment * @tags comment

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/toomanyparams
* @name Methods with many parameters * @name Methods with many parameters
* @description Finds methods with more than ten parameters * @description Finds methods with more than ten parameters
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/tryfinally
* @name Try-finally statements * @name Try-finally statements
* @description Finds try-finally statements without a catch clause * @description Finds try-finally statements without a catch clause
* @tags try * @tags try

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/unusedlocalvar
* @name Unused local variable * @name Unused local variable
* @description Finds local variables that are not accessed * @description Finds local variables that are not accessed
* @tags variable * @tags variable

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/unusedmethod
* @name Unused private method * @name Unused private method
* @description Finds private methods that are not accessed * @description Finds private methods that are not accessed
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/unusedparam
* @name Unused parameter * @name Unused parameter
* @description Finds parameters that are not accessed * @description Finds parameters that are not accessed
* @tags parameter * @tags parameter

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/voidreturntype
* @name Methods without return type * @name Methods without return type
* @description Finds methods whose return type is 'void' * @description Finds methods whose return type is 'void'
* @tags method * @tags method

View File

@@ -1,4 +1,5 @@
/** /**
* @id java/examples/volatilefield
* @name Fields declared volatile * @name Fields declared volatile
* @description Finds fields with a 'volatile' modifier * @description Finds fields with a 'volatile' modifier
* @tags field * @tags field

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/argumentsparam
* @name Parameters called 'arguments' * @name Parameters called 'arguments'
* @description Finds parameters called 'arguments' * @description Finds parameters called 'arguments'
* @tags parameter * @tags parameter

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/call
* @name Calls to function * @name Calls to function
* @description Finds function calls of the form `eval(...)` * @description Finds function calls of the form `eval(...)`
* @tags call * @tags call

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/callback
* @name Callbacks * @name Callbacks
* @description Finds functions that are passed as arguments to other functions * @description Finds functions that are passed as arguments to other functions
* @tags function * @tags function

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/classdefltctor
* @name Classes with a default constructor * @name Classes with a default constructor
* @description Finds classes that do not declare an explicit constructor * @description Finds classes that do not declare an explicit constructor
* @tags class * @tags class

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/classname
* @name Classes called 'File' * @name Classes called 'File'
* @description Finds classes called 'File' * @description Finds classes called 'File'
* @tags class * @tags class

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/constantbrackets
* @name Constant property name in `[]` property access * @name Constant property name in `[]` property access
* @description Finds property accesses using the square bracket notation * @description Finds property accesses using the square bracket notation
* where the property name is a constant string * where the property name is a constant string

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/emptyblock
* @name Empty blocks * @name Empty blocks
* @description Finds empty block statements * @description Finds empty block statements
* @tags empty * @tags empty

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/emptythen
* @name If statements with empty then branch * @name If statements with empty then branch
* @description Finds 'if' statements where the 'then' branch is * @description Finds 'if' statements where the 'then' branch is
* an empty block statement * an empty block statement

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/equalitystmt
* @name Equalities as expression statements * @name Equalities as expression statements
* @description Finds `==` equality expressions that form an expression statement * @description Finds `==` equality expressions that form an expression statement
* @tags comparison * @tags comparison

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/evenness
* @name Tests for even numbers * @name Tests for even numbers
* @description Finds expressions of the form `e % 2 === 0` * @description Finds expressions of the form `e % 2 === 0`
* @tags arithmetic * @tags arithmetic

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/exportfn
* @name Default exports exporting a function * @name Default exports exporting a function
* @description Finds 'default' exports that export a function * @description Finds 'default' exports that export a function
* @tags module * @tags module

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/filename
* @name File with given name * @name File with given name
* @description Finds files called `index.js` * @description Finds files called `index.js`
* @tags file * @tags file

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/fnnoreturn
* @name Functions without return statements * @name Functions without return statements
* @description Finds functions that do not contain a return statement * @description Finds functions that do not contain a return statement
* @tags function * @tags function

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/generator
* @name Generator functions * @name Generator functions
* @description Finds generator functions * @description Finds generator functions
* @tags generator * @tags generator

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/iife
* @name Immediately invoked function expressions * @name Immediately invoked function expressions
* @description Finds calls of the form `(function(...) { ... })(...)` * @description Finds calls of the form `(function(...) { ... })(...)`
* @tags call * @tags call

View File

@@ -1,4 +1,5 @@
/** /**
* @id js/examples/importfrom
* @name Imports from 'react' * @name Imports from 'react'
* @description Finds import statements that import from module 'react' * @description Finds import statements that import from module 'react'
* @tags module * @tags module

Some files were not shown because too many files have changed in this diff Show More