forked from gardener/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically enforce constraints across all workspaces (gardener#991)
* added workspace constraints * add spdx header to constraints
- Loading branch information
1 parent
5841103
commit c4bda85
Showing
74 changed files
with
1,141 additions
and
384 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-105 KB
.yarn/cache/@typescript-eslint-experimental-utils-npm-2.34.0-c95189aa27-53cbbcfe67.zip
Binary file not shown.
Binary file added
BIN
+164 KB
.yarn/cache/@typescript-eslint-experimental-utils-npm-4.22.0-0ec900fdf6-afabf0d6f9.zip
Binary file not shown.
Binary file added
BIN
+282 KB
.yarn/cache/@typescript-eslint-scope-manager-npm-4.22.0-c701bac26c-c6f5565f51.zip
Binary file not shown.
Binary file added
BIN
+28.6 KB
.yarn/cache/@typescript-eslint-types-npm-4.22.0-87a508cc79-db27171325.zip
Binary file not shown.
Binary file removed
BIN
-128 KB
.yarn/cache/@typescript-eslint-typescript-estree-npm-2.34.0-c6a349caae-77d1a758df.zip
Binary file not shown.
Binary file added
BIN
+124 KB
.yarn/cache/@typescript-eslint-typescript-estree-npm-4.22.0-f71a595245-538d932361.zip
Binary file not shown.
Binary file added
BIN
+10.7 KB
.yarn/cache/@typescript-eslint-visitor-keys-npm-4.22.0-574ae147b6-645896d05a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.1 KB
.yarn/cache/eslint-config-standard-npm-16.0.2-96b4c8f38d-9db750eab1.zip
Binary file not shown.
Binary file renamed
BIN
+861 KB
...slint-npm-7.9.0-d45daba7d6-295fe8c442.zip → ...lint-npm-7.24.0-67b841b05f-8130aacc36.zip
Binary file not shown.
Binary file renamed
BIN
+330 KB
...port-npm-2.22.0-d731009c35-ad41aec63d.zip → ...port-npm-2.22.1-93ff619870-35ae09ceae.zip
Binary file not shown.
Binary file removed
BIN
-96.6 KB
.yarn/cache/eslint-plugin-jest-npm-23.20.0-0fd386bae5-2f3b875346.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-18.6 KB
.yarn/cache/eslint-plugin-promise-npm-4.2.1-2eff4596ac-8c233a0b5f.zip
Binary file not shown.
Binary file added
BIN
+19.9 KB
.yarn/cache/eslint-plugin-promise-npm-4.3.1-bc315e862f-01aa61c2be.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
constraints_min_version(1). | ||
|
||
% This rule will enforce that a workspace MUST depend on the same version of a dependency as the one used by the other workspaces | ||
gen_enforced_dependency(WorkspaceCwd, DependencyIdent, DependencyRange2, DependencyType) :- | ||
workspace_has_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, DependencyType), | ||
workspace_has_dependency(OtherWorkspaceCwd, DependencyIdent, DependencyRange2, DependencyType2), | ||
DependencyRange \= DependencyRange2, | ||
\+ ( | ||
(WorkspaceCwd = 'frontend'; OtherWorkspaceCwd = 'frontend'), | ||
member(DependencyIdent, ['eslint']) | ||
). | ||
|
||
% This rule will enforce that all packages must have a "Apache-2.0" license field | ||
gen_enforced_field(WorkspaceCwd, 'license', 'Apache-2.0'). | ||
|
||
% This rule will enforce that all packages must have certain engines fields | ||
gen_enforced_field(WorkspaceCwd, 'engines.node', '^15.11.0'). | ||
gen_enforced_field(WorkspaceCwd, 'engines.yarn', '^2.4.1'). | ||
|
||
% Required to make the package work with the GitHub Package Registry | ||
gen_enforced_field(WorkspaceCwd, 'repository.type', 'git'). | ||
gen_enforced_field(WorkspaceCwd, 'repository.url', 'git+https://github.com/gardener/dashboard.git'). | ||
gen_enforced_field(WorkspaceCwd, 'repository.directory', WorkspaceCwd). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/gardener/dashboard" | ||
"url": "git+https://github.com/gardener/dashboard.git", | ||
"directory": "." | ||
}, | ||
"contributors": [ | ||
"Gross, Lukas <[email protected]>", | ||
|
@@ -27,7 +28,7 @@ | |
} | ||
}, | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"eslint": "^7.23.0", | ||
"jest": "^26.6.3", | ||
"node-gyp": "latest" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.