-
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.
- add initial files - add new command files
- Loading branch information
Showing
15 changed files
with
907 additions
and
149 deletions.
There are no files selected for viewing
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,21 @@ | ||
/* | ||
* Copyright (c) 2020, salesforce.com, inc. | ||
* All rights reserved. | ||
* Licensed under the BSD 3-Clause license. | ||
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
|
||
module.exports = { | ||
extends: ["eslint-config-salesforce-typescript"], | ||
parser: "@typescript-eslint/parser", | ||
rules: { | ||
"no-console": "off", | ||
"no-restricted-syntax": [ | ||
"error", | ||
{ | ||
"selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]", | ||
"message": "Unexpected property on console object was called" | ||
} | ||
] | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -33,4 +33,5 @@ node_modules | |
|
||
# os specific files | ||
.DS_Store | ||
.idea | ||
.idea | ||
sfdx-project.json |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"commandDescription": "This command performs static checks in the sfdx-project json file for changed packages. Optional flags are used to control which validations are to be carried out. The individual tests are described with the flags.", | ||
"source": "This flag is required for the git diff check and describes the source value. The default value is HEAD", | ||
"target": "This flag is required for the git diff check and describes the target value. The default value is remote main branch.", | ||
"include": "Packages to validate via command line input. Multiple selection possible via comma separated list.", | ||
"exclude": "Packages to exclude from validation. Multiple selection possible via comma separated list.", | ||
"fix": "This flag is used to directly update the sfdx-project.json file with the fixes. The default value is false", | ||
"versionupdate": "Checks whether the versions of the changed packages for the merge request have been updated. The check is against the target branch. So the target flag is required.", | ||
"missingdeps": "Checks whether all dependend packages are present in the package tree. This checks includes only unlocked packages.", | ||
"order": "Checks if the dependent packages are arranged in the correct order in the package tree. Furthermore, it is checked that the dependend packages are arranged in front of the unlocked package in the tree. This check includes only unlocked packages.", | ||
"depsversion": "Checks whether the dependent packages have at least the versions of the dependent packages. Default this commands checks only the required versions. This check includes only unlocked packages.", | ||
"examples": [ | ||
"sfdx eon:project:validate -t origin/main --versionupdate", | ||
"sfdx eon:project:validate --order --include core", | ||
"sfdx eon:project:validate -t origin/main --versionupdate --missingdeps --order --depsversion", | ||
"sfdx eon:project:validate -t origin/main - -v -m -o -d", | ||
"sfdx eon:project:validate -t origin/main - -v -m -o -d -f", | ||
"sfdx eon:project:validate -t origin/main --versionupdate --missingdeps --order --depsversion --fix" | ||
] | ||
} |
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 @@ | ||
{"version":"0.0.1","commands":{"rocko:project:validate":{"id":"rocko:project:validate","description":"This command performs static checks in the sfdx-project json file for changed packages. Optional flags are used to control which validations are to be carried out. The individual tests are described with the flags.","usage":"<%= command.id %> [-s <string>] [-v -t <string>] [-m] [-o] [-d] [-i <string>] [-e <string>] [-f] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]","pluginName":"@rocko1204/rocko-sfdx","pluginType":"core","aliases":[],"examples":["sfdx eon:project:validate -t origin/main --versionupdate","sfdx eon:project:validate --order --include core","sfdx eon:project:validate -t origin/main --versionupdate --missingdeps --order --depsversion","sfdx eon:project:validate -t origin/main - -v -m -o -d","sfdx eon:project:validate -t origin/main - -v -m -o -d -f","sfdx eon:project:validate -t origin/main --versionupdate --missingdeps --order --depsversion --fix"],"flags":{"json":{"name":"json","type":"boolean","description":"format output as json","allowNo":false},"loglevel":{"name":"loglevel","type":"option","description":"logging level for this command invocation","required":false,"helpValue":"(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL)","options":["trace","debug","info","warn","error","fatal","TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"default":"warn"},"targetusername":{"name":"targetusername","type":"option","char":"u","description":"username or alias for the target org; overrides default target org"},"apiversion":{"name":"apiversion","type":"option","description":"override the api version used for api requests made by this command"},"target":{"name":"target","type":"option","char":"t","description":"This flag is required for the git diff check and describes the target value. The default value is remote main branch.","required":false},"source":{"name":"source","type":"option","char":"s","description":"This flag is required for the git diff check and describes the source value. The default value is HEAD","required":false},"versionupdate":{"name":"versionupdate","type":"boolean","char":"v","description":"Checks whether the versions of the changed packages for the merge request have been updated. The check is against the target branch. So the target flag is required.","required":false,"allowNo":false},"missingdeps":{"name":"missingdeps","type":"boolean","char":"m","description":"Checks whether all dependend packages are present in the package tree. This checks includes only unlocked packages.","required":false,"allowNo":false},"order":{"name":"order","type":"boolean","char":"o","description":"Checks if the dependent packages are arranged in the correct order in the package tree. Furthermore, it is checked that the dependend packages are arranged in front of the unlocked package in the tree. This check includes only unlocked packages.","required":false,"allowNo":false},"depsversion":{"name":"depsversion","type":"boolean","char":"d","description":"Checks whether the dependent packages have at least the versions of the dependent packages. Default this commands checks only the required versions. This check includes only unlocked packages.","required":false,"allowNo":false},"include":{"name":"include","type":"option","char":"i","description":"Packages to validate via command line input. Multiple selection possible via comma separated list.","required":false,"default":""},"exclude":{"name":"exclude","type":"option","char":"e","description":"Packages to exclude from validation. Multiple selection possible via comma separated list.","required":false,"default":""},"fix":{"name":"fix","type":"boolean","char":"f","description":"This flag is used to directly update the sfdx-project.json file with the fixes. The default value is false","required":false,"allowNo":false}},"args":[{"name":"file"}]}}} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.