generated from konveyor-ecosystem/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Emily McMullan <[email protected]>
- Loading branch information
1 parent
b7180bb
commit 1db1096
Showing
4 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Analyzer-lsp Documentation | ||
|
||
### kantra analyze runs [analyzer-lsp](https://github.com/konveyor/analyzer-lsp) | ||
|
||
- To better understand how rules are used in analysis, see the [rules](https://github.com/konveyor/analyzer-lsp/blob/main/docs/rules.md) | ||
documentation | ||
|
||
- If a rule is matched, it creates a [violation](https://github.com/konveyor/analyzer-lsp/blob/main/docs/violations.md) | ||
|
||
- [Labels](https://github.com/konveyor/analyzer-lsp/blob/main/docs/labels.md) | ||
can be used to filter in and out rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### Running kantra | ||
|
||
Two environment variables control the container runtime and the kantra image: `PODMAN_BIN` and `RUNNER_IMG`: | ||
- `PODMAN_BIN`: path to your container runtime (podman or docker) | ||
- `RUNNER_IMG`: the tag of the kantra image to invoke | ||
|
||
#### example: | ||
|
||
`podman build -f Dockerfile -t kantra:dev` | ||
|
||
`RUNNER_IMG=kantra:dev PODMAN_BIN=/usr/local/bin/podman go run main.go analyze --input=<path-to-src-application> --output=./output` | ||
|
||
#### Helpful flags: | ||
- To increase logs for debugging, you can set `--log-level` (default is 5) | ||
- ie: `--log-level=7` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Known differences between Windup and kantra output | ||
|
||
#### `--rules` + `--target` | ||
- In Windup, you can specify a custom rule with a target. If the custom rule does not | ||
have a label with the given target specified, it will **still** run the rule. | ||
|
||
- In kantra, if a rule is given as well as a target, but the given rule **does not** | ||
have the target label, the given rule will not match. | ||
- You must add the target label to the custom rule (if applicable) in | ||
order to run this rule. |