# -*- sh -*-
# gitignore-like file for Codemap (see https://github.com/aryx/codemap)

# No need _build/ here, it's handled in .gitignore :)
# No need node_modules/ here, it's handled in js/.gitignore :)
# Far more flexible/powerful than the old way to skip files (skip_list.txt)

# not our code or generated code
# useful to exclude for -test_loc, but useful to keep when fixing bugs
#/languages/**/semgrep-*
#/languages/**/orig_spec/
#/languages/**/fyi/
#/libs/ojsonnet/Std_jsonnet.ml
#/tests/parsing/jsonnet/std.jsonnet

# third-party modified slightly by us
/js/libyaml/

# just to see PA code:
/tests/semgrep-rules/
# use negation to count rules as part of semgrep code!
#!/tests/semgrep-rules/**/*.yaml
#!/tests/semgrep-rules/**/*.yml

# semi autogenerated
/libs/ast_generic/Meta_AST.ml

# ocaml-tree-sitter generated code
languages/**/Parse.ml
languages/**/Boilerplate.ml
languages/**/CST.ml
languages/**/parser.c
languages/**/parser.h
# TODO get rid of?
languages/typescript/tree-sitter/Boilerplate_tree_sitter_typescript.ml
languages/typescript/tree-sitter/CST_tree_sitter_typescript.ml


# ATD generated code (now also in semgrep-interfaces/.codemapignore)
*_[jt].ml
*_j.mli

# big files
/tests/semgrep-rules/libsonnet/metadata/cwe.libsonnet
*.min.js
/CHANGELOG.md
/LICENSE

# big test files
/cli/tests/default/e2e/rules/long_message.yaml
/cli/tests/performance/
/tests/perf/
/tests/precommit_dogfooding/
/tests/patterns/java/perf_fields.java
/tests/patterns/ts/perf_fields.ts
/perf/r2c-rules/
/perf/rules/

# test snapshots
/cli/tests/default/e2e/snapshots

# mypy stuff
/cli/stubs

# pypi
*.lock

# nodejs stuff
package-lock.json

# pad stuff
PFFF_DB.json
