File tree Expand file tree Collapse file tree 6 files changed +666
-7
lines changed Expand file tree Collapse file tree 6 files changed +666
-7
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ and can be inspected using `protoc`:
50
50
protoc --decode=scip.Index -I /path/to/scip scip.proto < index.scip
51
51
```
52
52
53
+ There is also a ` lint ` subcommand which performs various well-formedness
54
+ checks on a SCIP index. It is meant primarily for people working on a SCIP indexer,
55
+ and is not recommended for use in other settings.
56
+
57
+ ```
58
+ scip lint /path/to/index.scip
59
+ ```
60
+
53
61
## Testing and adding new SCIP semantics
54
62
55
63
It is helpful to use reprolang to check the existing code navigation behavior,
Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ DESCRIPTION:
70
70
71
71
COMMANDS:
72
72
convert Convert a SCIP index to an LSIF index
73
+ lint Flag potential issues with a SCIP index
74
+ print Print a SCIP index in a human-readable format for debugging
73
75
snapshot Generate snapshot files for golden testing
74
76
stats Output useful statistics about a SCIP index
75
- print Print a SCIP index in a human-readable format for debugging
76
77
help, h Shows a list of commands or help for one command
77
78
78
79
GLOBAL OPTIONS:
@@ -94,6 +95,27 @@ OPTIONS:
94
95
--to value Output path for LSIF index (default: dump.lsif)
95
96
```
96
97
98
+ ### ` scip lint `
99
+
100
+ ```
101
+ NAME:
102
+ scip lint - Flag potential issues with a SCIP index
103
+
104
+ USAGE:
105
+ scip lint [command options] [arguments...]
106
+
107
+ DESCRIPTION:
108
+ Example usage:
109
+
110
+ scip lint /path/to/index.scip
111
+
112
+ You may want to filter the output using `grep -v <pattern>`
113
+ to narrow down on certain classes of errors.
114
+
115
+ OPTIONS:
116
+ --help, -h show help (default: false)
117
+ ```
118
+
97
119
### ` scip print `
98
120
99
121
```
You can’t perform that action at this time.
0 commit comments