Skip to content

Commit

Permalink
lsp: templating add docs
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Egan <charlie@styra.com>
  • Loading branch information
charlieegan3 committed Sep 10, 2024
1 parent 39d5ee4 commit f6103cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/rules/idiomatic/directory-package-mismatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ demonstrates a new policy being created inside an `authorization/rbac/roles` dir
src={require('../../assets/rules/pkg_name_completion.png').default}
alt="Package path auto-completion in VS Code"/>

In addition, when `regal fix` is enabled as a formatter, empty files will be be
'formatted' to have the correct package based on the directory structure. Newly
created Rego files are treated in much the same way. When a new file is created,
the server will send a series of edits back to set the content. If
`exclude-test-suffix` is set to `false`, the file will also be moved if required
to the `_test` directory for that package.

## Configuration Options

This linter rule provides the following configuration options:
Expand Down

0 comments on commit f6103cf

Please sign in to comment.