Skip to content

Commit

Permalink
Add dogfooding extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jblievremont committed May 11, 2021
1 parent 9884bb9 commit f6f4d32
Show file tree
Hide file tree
Showing 16 changed files with 3,564 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ webpack.config.js
sonarlint-vscode.code-workspace
coverage/
its/
dogfood/
scripts/
.azure-pipelines
azure-pipelines.yml

2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ stages:
cliProjectVersion: $(packageVersion)
extraProperties: |
sonar.tests=test,its/src
sonar.exclusions=test/**, build/**, out/**, out-cov/**, coverage/**, node_modules/**, **/node_modules/**, **/its/**
sonar.exclusions=test/**, build/**, out/**, out-cov/**, coverage/**, node_modules/**, **/node_modules/**, **/its/**, **/dogfood/**
sonar.typescript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=gulpfile.js, webpack.config.js, scripts/**
- task: Npm@1
Expand Down
12 changes: 12 additions & 0 deletions dogfood/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.vscode/**
.vscode-test/**
out/**
node_modules/**
src/**
.gitignore
.yarnrc
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
3 changes: 3 additions & 0 deletions dogfood/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial release
30 changes: 30 additions & 0 deletions dogfood/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SonarLint Dogfood 🥫

Get notified 📢 about new dogfooding builds 🥫 and install them in one click 👍.

## Features

* Checks at startup and at regular intervals if a new dogfooding build is available on Artifactory
* Shows a notification with a handy install/update button
* Takes away the hassle of uninstalling/reinstalling the extension

## Extension Settings

* `sonarlint-dogfood.check.disable`: disable automated checks (default is enabled)
* `sonarlint-dogfood.check.periodInSeconds`: number of seconds before next automated check (defaults to one hour)

## Contributing

This extension has been successfully built with Node 14.16.1 LTS (Fermium) and NPM 6.14.11. Your mileage may vary.

### Building the VSIX

npm install && npx vsce package

### Running tests

npm run test

## Feedback

Please create a thread in the [Dogfood SonarLint category on Discuss](https://discuss.sonarsource.com/c/dogfood/sl/39).
Loading

0 comments on commit f6f4d32

Please sign in to comment.