Skip to content

Commit 6935c3b

Browse files
Merge pull request #45 from GitGuardian/jgriffe/run-all-precommit
chore: run all pre-commit hooks on all files
2 parents 9db9df0 + ecf004d commit 6935c3b

25 files changed

+252
-234
lines changed

.eslintrc.json

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
{
2-
"root": true,
3-
"parser": "@typescript-eslint/parser",
4-
"parserOptions": {
5-
"ecmaVersion": 6,
6-
"sourceType": "module"
7-
},
8-
"plugins": [
9-
"@typescript-eslint"
10-
],
11-
"rules": {
12-
"@typescript-eslint/naming-convention": "warn",
13-
"@typescript-eslint/semi": "warn",
14-
"curly": "warn",
15-
"eqeqeq": "warn",
16-
"no-throw-literal": "warn",
17-
"semi": "off"
18-
},
19-
"ignorePatterns": [
20-
"out",
21-
"dist",
22-
"**/*.d.ts"
23-
]
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module"
7+
},
8+
"plugins": ["@typescript-eslint"],
9+
"rules": {
10+
"@typescript-eslint/naming-convention": "warn",
11+
"@typescript-eslint/semi": "warn",
12+
"curly": "warn",
13+
"eqeqeq": "warn",
14+
"no-throw-literal": "warn",
15+
"semi": "off"
16+
},
17+
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
2418
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
name: Support
33
about: If you have any questions—whether about unclear features or insufficient documentation—feel free to reach out.
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
8-
---
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
4+
title: ""
55
labels: bug
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
## Environment

.github/workflows/build.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: vsixbuilder
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66

77
permissions:
88
contents: read
@@ -13,12 +13,12 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16-
16+
1717
- name: Setup Node.js
1818
uses: actions/setup-node@v4
1919
with:
2020
node-version: 22
21-
21+
2222
- name: Setup VSCE
2323
run: sudo yarn global add vsce@latest
2424

@@ -29,11 +29,9 @@ jobs:
2929
run: |
3030
vsce package --baseContentUrl https://github.com/GitGuardian/gitguardian-vscode/ --allow-missing-repository
3131
mv *.vsix gitguardian-vscode.vsix
32-
32+
3333
- name: Upload extension package
3434
uses: actions/upload-artifact@v4
3535
with:
3636
name: gitguardian-vscode.vsix
3737
path: gitguardian-vscode.vsix
38-
39-

.vscode/extensions.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
// See http://go.microsoft.com/fwlink/?LinkId=827846
3-
// for the documentation about the extensions.json format
4-
"recommendations": [
5-
"dbaeumer.vscode-eslint"
6-
]
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": ["dbaeumer.vscode-eslint"]
75
}

.vscode/launch.json

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,26 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/out/**/*.js"
17-
],
18-
"preLaunchTask": "${defaultBuildTask}"
19-
},
20-
{
21-
"name": "Extension Tests",
22-
"type": "extensionHost",
23-
"request": "launch",
24-
"args": [
25-
"--extensionDevelopmentPath=${workspaceFolder}",
26-
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
27-
],
28-
"outFiles": [
29-
"${workspaceFolder}/out/test/**/*.js"
30-
],
31-
"preLaunchTask": "${defaultBuildTask}"
32-
}
33-
]
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
14+
"preLaunchTask": "${defaultBuildTask}"
15+
},
16+
{
17+
"name": "Extension Tests",
18+
"type": "extensionHost",
19+
"request": "launch",
20+
"args": [
21+
"--extensionDevelopmentPath=${workspaceFolder}",
22+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
23+
],
24+
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
25+
"preLaunchTask": "${defaultBuildTask}"
26+
}
27+
]
3428
}

.vscode/settings.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
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-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off"
11-
}
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+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off"
11+
}

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
11
# GitGuardian Secret Security Changelog
22

33
## [0.4.0]
4+
45
### Modified
6+
57
- Load .env configuration and ensure environment specific settings are applied
68
- Prevent scanning gitignored files
7-
- Status bar displays error when scanning ignored files
9+
- Status bar displays error when scanning ignored files
10+
811
### Fixed
12+
913
- Stop displaying error when scanning file ignored in .gitguardian.yaml
1014

1115
## [0.3.0]
16+
1217
### Modified
18+
1319
- Remove API key from settings
1420
- Improve logging for invalid settings
21+
1522
### Fixed
23+
1624
- Handled Authentication if the .gitguardian.yaml is malformed
1725

1826
## [0.2.0]
27+
1928
### modified
29+
2030
- Do not display CLI path in settings
2131

2232
## [0.1.0]
2333

2434
### Added
35+
2536
- One-Click Authentication
2637
- Automatic Secret Scanning on Save
2738
- Custom Remediation Guidelines

CONTRIBUTING.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Leave a message on the issue tracker that you're interested in fixing this bug.
1616

1717
## Proposing a new feature
1818

19-
Open an issue on the [issue tracker](https://github.com/GitGuardian/gitguardian-vscode/issues/new?assignees=&labels=Feature+request&projects=&template=feature_request.md&title=) with a `feature request` label.
19+
Open an issue on the [issue tracker](https://github.com/GitGuardian/gitguardian-vscode/issues/new?assignees=&labels=Feature+request&projects=&template=feature_request.md&title=) with a `feature request` label.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@ With a free personal account, you have access to 10,000 API calls each month.
4545

4646
## Support, Feedback, Contributing
4747

48-
This project is open to feature requests/suggestions, bug reports etc.
48+
This project is open to feature requests/suggestions, bug reports etc.
4949

5050
If you need support or found a bug : https://github.com/GitGuardian/gitguardian-vscode/issues/new/choose
5151

5252
For ideas and general discussions : https://github.com/GitGuardian/gitguardian-vscode/discussions
5353

5454
Security reports : Please report it using our [Vulnerability Disclosure Portal](https://vdp.gitguardian.com).
5555

56-
5756
## Release Notes
5857

5958
See [Change log](https://github.com/GitGuardian/gitguardian-vscode/blob/main/CHANGELOG.md)

0 commit comments

Comments
 (0)