Skip to content

Latest commit

 

History

History
77 lines (57 loc) · 1.46 KB

README.md

File metadata and controls

77 lines (57 loc) · 1.46 KB

Queries Libraries

This folder holds example queries for each language.
Each language folder (Ex: /cpp) contains multiple .json files, each file must comply to properties format below.

Queries Properties

id
  • Type: string
  • Example value: array-access
  • Pattern: /^[a-zA-Z0-9\-]+/$
name
  • Type: string
  • Example value: Array Access
language
  • Type: string
  • Accepted value: go, javascript, java, python, cpp, csharp, ruby
description
  • Type: string
  • Example value: Finds array access expressions with an index expression consisting of a postfix increment (++) expression.
tags
  • Type: array of strings
  • Example value: ['javascript', 'basic', 'pattern']
author
  • Type: string
  • Example value: LGTM
  • Pattern: /[a-zA-Z0-9\-]+/
authorURL
  • Type: string
  • Example value: https://lgtm.com/query/lang:java/
code
  • Type: string
  • Example value:
      import cpp
      from ArrayExpr a
      where a.getArrayOffset() instanceof PostfixIncrExpr
      select a
complexity
  • Type: string
  • Accepted value: 'basic', 'advanced', 'expert'