Skip to content

Commit

Permalink
fix: add stanbul ignore files in sonar cloud config
Browse files Browse the repository at this point in the history
  • Loading branch information
marufrasully committed Aug 20, 2024
1 parent 4fbf547 commit 4e72c0e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .changeset/unlucky-items-fly.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
"vscode-ui5-language-assistant": patch
"@ui5-language-assistant/vscode-ui5-language-assistant-bas-ext": patch
"@ui5-language-assistant/language-server": patch
---

activation process fine tuning
4 changes: 4 additions & 0 deletions packages/language-server/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const defaultConfig = require("../../jest.config");

module.exports = {
...defaultConfig,
coveragePathIgnorePatterns: [
"<rootDir>/src/server.ts",
"<rootDir>/scripts/update-diagnostics-snapshots.js",
],
globals: {
"ts-jest": {
tsconfig: join(__dirname, "tsconfig-test.json"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* istanbul ignore file - dev scripts don't need tests */
const klawSync = require("klaw-sync");
const { forEach, filter, map } = require("lodash");
const { resolve, dirname } = require("path");
Expand Down
1 change: 0 additions & 1 deletion packages/language-server/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* istanbul ignore file */
import { forEach } from "lodash";
import {
createConnection,
Expand Down
4 changes: 4 additions & 0 deletions packages/vscode-ui5-language-assistant/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ const defaultConfig = require("../../jest.config");

module.exports = {
...defaultConfig,
coveragePathIgnorePatterns: [
"<rootDir>/scripts/package-vsix.js",
"<rootDir>/src/extension.ts",
],
globals: {
"ts-jest": {
tsconfig: join(__dirname, "tsconfig-test.json"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* istanbul ignore file */
/**
* Workaround to: https://github.com/microsoft/vscode-vsce/issues/300
* This "sorts of" implements the (broken) `yarn list` with support for workspaces
Expand Down
1 change: 0 additions & 1 deletion packages/vscode-ui5-language-assistant/src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* istanbul ignore file */
import { resolve } from "path";
import { readFileSync } from "fs";
import {
Expand Down
1 change: 1 addition & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ sonar.organization=sap-1
sonar.projectKey=SAP_ui5-language-assistant
sonar.sources=.
sonar.inclusions=**/*.ts
sonar.coverage.exclusions=packages/language-server/src/server.ts, packages/language-server/scripts/update-diagnostics-snapshots.js, packages/vscode-ui5-language-assistant/scripts/package-vsix.js, packages/vscode-ui5-language-assistant/src/extension.ts
sonar.exclusions=**/*.test.ts, **/test/**/*, **/test-packages/**/*, **/scripts/**/*.ts
sonar.cpd.exclusions=**/i18n.ts, **/*.test.ts, **/test/**/*, **/test-packages/**/*, **/scripts/**/*.ts
sonar.tests=.
Expand Down

0 comments on commit 4e72c0e

Please sign in to comment.