From efc67286419d5962035a8f8b2636992f77ef7f27 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:59:46 +0100 Subject: [PATCH] Create rule S6938: Jobs number of steps should be below the hard limit of 255 (#3730) * Create rule S6938 * Add rule description * Only display Implementation spec on GitHub * Update rules/S6938/jcl/rule.adoc Co-authored-by: Rudy Regazzoni <110470341+rudy-regazzoni-sonarsource@users.noreply.github.com> * Change to bug version and remove parameter * Changing rule title * Address review comments * fix impact --------- Co-authored-by: sallaigy Co-authored-by: Gyula Sallai Co-authored-by: Rudy Regazzoni <110470341+rudy-regazzoni-sonarsource@users.noreply.github.com> --- rules/S6938/jcl/metadata.json | 25 +++++++++++++++++++++++++ rules/S6938/jcl/rule.adoc | 19 +++++++++++++++++++ rules/S6938/metadata.json | 2 ++ 3 files changed, 46 insertions(+) create mode 100644 rules/S6938/jcl/metadata.json create mode 100644 rules/S6938/jcl/rule.adoc create mode 100644 rules/S6938/metadata.json diff --git a/rules/S6938/jcl/metadata.json b/rules/S6938/jcl/metadata.json new file mode 100644 index 00000000000..77cbf8ba9de --- /dev/null +++ b/rules/S6938/jcl/metadata.json @@ -0,0 +1,25 @@ +{ + "title": "The number of steps in a job should be below 255", + "type": "BUG", + "status": "ready", + "remediation": { + "func": "Constant\/Issue", + "constantCost": "1h" + }, + "tags": [ + "brain-overload" + ], + "defaultSeverity": "Major", + "ruleSpecification": "RSPEC-6938", + "sqKey": "S6938", + "scope": "All", + "defaultQualityProfiles": ["Sonar way"], + "quickfix": "unknown", + "code": { + "impacts": { + "MAINTAINABILITY": "HIGH", + "RELIABILITY": "HIGH" + }, + "attribute": "FOCUSED" + } +} diff --git a/rules/S6938/jcl/rule.adoc b/rules/S6938/jcl/rule.adoc new file mode 100644 index 00000000000..348ef225576 --- /dev/null +++ b/rules/S6938/jcl/rule.adoc @@ -0,0 +1,19 @@ +== Why is this an issue? + +JCL imposes a limit of a maximum of 255 steps in a single job, including steps executed within procedures called by EXEC statements. Going above this limit will result in a JCL error. + +== Resources + +=== Documentation + +* https://www.ibm.com/docs/en/zos/3.1.0?topic=tasks-entering-jobs[IBM reference - Entering Jobs] + + +ifdef::env-github,rspecator-view[] + +''' +== Implementation Specification +(visible only on this page) +''' + +endif::env-github,rspecator-view[] diff --git a/rules/S6938/metadata.json b/rules/S6938/metadata.json new file mode 100644 index 00000000000..2c63c085104 --- /dev/null +++ b/rules/S6938/metadata.json @@ -0,0 +1,2 @@ +{ +}