server

command
v0.0.0-...-124dc0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 8 Imported by: 0

README

This is a sample semgrep rule server for serving individual rules and packs.

To run:

$ ./server -listen=:8080 -d=/path/to/semgrep/yml/files -packs=packs.yml

The packs.yml file contains rule packs.

packs:
    expr:
        - bad-exponentiation
        - use-math-bits
        - odd-bits-leadingzeros
        - odd-bitwise
        - odd-compound-expression

The rule names must be the ids of the rules, not the filenames.

To serve and run a rule pack:

$ semgrep --config=http://localhost:8080/p/expr

To serve and run an individual rule:

$ semgrep --config=http://localhost:8080/r/bad-exponentiation

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL