Skip to content

Commit 6d44e55

Browse files
committed
Initial release
1 parent 42ad24e commit 6d44e55

17 files changed

+3877
-3
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = crlf
5+
indent_style = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
indent_size = 2

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
out
2+
node_modules
3+
.vscode-test/
4+
*.vsix

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
{
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"runtimeExecutable": "${execPath}",
13+
"args": [
14+
"--extensionDevelopmentPath=${workspaceFolder}"
15+
],
16+
"outFiles": [
17+
"${workspaceFolder}/out/**/*.js"
18+
],
19+
"preLaunchTask": "npm: watch"
20+
}
21+
]
22+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
}
9+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
20+
}

.vscodeignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**/*.ts
2+
**/*.js.map
3+
.vscode/**
4+
out/test/**
5+
img/**
6+
tsconfig.json
7+
tslint.json
8+
.gitignore

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Plex Systems
3+
Copyright (c) 2019 Plex Systems, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
# vscode-regolint
2-
Lint your Rego policies inside of Visual Studio Code
1+
# vscode-regolint [![License](https://img.shields.io/:license-mit-blue.svg)](https://github.com/plexsystems/vscode-regolint/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/plexsystems/vscode-regolint.svg)](https://github.com/plexsystems/vscode-regolint/releases)
2+
3+
vscode-regolint enables you to lint [Rego](https://www.openpolicyagent.org/docs/latest/policy-language/) files directly within [Visual Studio Code](https://code.visualstudio.com/)
4+
5+
![regolinticon](icon/rego_lint_128.png)
6+
7+
## Example
8+
9+
![regolintdemo](img/regolint_demo.gif)
10+
11+
## Installation
12+
13+
This extension can be installed through the Visual Studio [marketplace](https://marketplace.visualstudio.com/items?itemName=Plex.vscode-regolint). Alternatively, a VSIX installer is available on the [releases](https://github.com/plexsystems/vscode-regolint/releases) page.
14+
15+
```
16+
NOTE: OPA must be installed and available in your PATH
17+
```
18+
19+
## Local Development
20+
21+
To compile the solution locally run `npm run compile`
22+
23+
To run the unit tests run `npm run test`
24+
25+
To run the extension in a Visual Studio Code development environment press `F5` in Visual Studio Code

icon/rego_lint_128.png

5.09 KB
Loading

img/regolint_demo.gif

131 KB
Loading

0 commit comments

Comments
 (0)