File tree Expand file tree Collapse file tree 2 files changed +10
-23
lines changed Expand file tree Collapse file tree 2 files changed +10
-23
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export default class scan extends SfdxCommand {
118118 for ( const ruleResult of scanResult . ruleResults ) {
119119 errorLevelsNumber [ ruleResult . severity ] = ( errorLevelsNumber [ ruleResult . severity ] || 0 ) + 1
120120
121- if ( ruleResult . type === 'pattern' && ruleResult . details && ruleResult . details . length > 0 ) {
121+ if ( ruleResult . type === 'pattern' && ruleResult . occurs && ruleResult . details && ruleResult . details . length > 0 ) {
122122 for ( const result of ruleResult . details ) {
123123 errors . push ( new Violation (
124124 scanResult . flow . label [ 0 ] ,
@@ -132,7 +132,7 @@ export default class scan extends SfdxCommand {
132132 }
133133 ) ) ;
134134 }
135- } else if ( ruleResult . type === 'flow' && ruleResult . details ) {
135+ } else if ( ruleResult . type === 'flow' && ruleResult . occurs && ruleResult . details ) {
136136 errors . push ( new Violation (
137137 scanResult . flow . label [ 0 ] ,
138138 ruleResult . ruleName ,
@@ -141,20 +141,7 @@ export default class scan extends SfdxCommand {
141141 ruleResult . type ,
142142 ruleResult . details
143143 ) )
144- } else {
145- if ( ! ruleResult . details && ruleResult . occurs ) {
146- errors . push (
147- new Violation (
148- scanResult . flow . label [ 0 ] ,
149- ruleResult . ruleName ,
150- ruleResult . ruleDescription ,
151- ruleResult . severity ,
152- ruleResult . type
153- )
154- ) ;
155-
156- }
157- }
144+ }
158145 }
159146 }
160147
Original file line number Diff line number Diff line change 508508 resolved "https://registry.yarnpkg.com/@types/node/-/node-16.0.0.tgz#067a6c49dc7a5c2412a505628e26902ae967bf6f"
509509
510510" @types/node@^20.4.5 " :
511- version "20.4.5 "
512- resolved "https://registry.yarnpkg.com/@types/node/-/node-20.4.5 .tgz#9dc0a5cb1ccce4f7a731660935ab70b9c00a5d69 "
513- integrity sha512-rt40Nk13II9JwQBdeYqmbn2Q6IVTA5uPhvSO+JVqdXw/6/4glI6oR9ezty/A9Hg5u7JH4OmYmuQ+XvjKm0Datg ==
511+ version "20.4.8 "
512+ resolved "https://registry.yarnpkg.com/@types/node/-/node-20.4.8 .tgz#b5dda19adaa473a9bf0ab5cbd8f30ec7d43f5c85 "
513+ integrity sha512-0mHckf6D2DiIAzh8fM8f3HQCvMKDpK94YQ0DSVkfWTG9BZleYIWudw9cJxX8oCk9bM+vAkDyujDV6dmKHbvQpg ==
514514
515515" @types/sinon@* " :
516516 version "10.0.2"
@@ -2624,10 +2624,10 @@ levn@^0.4.1:
26242624 prelude-ls "^1.2.1"
26252625 type-check "~0.4.0"
26262626
2627- lightning-flow-scanner-core@^2.16 .0 :
2628- version "2.16 .0"
2629- resolved "https://registry.yarnpkg.com/lightning-flow-scanner-core/-/lightning-flow-scanner-core-2.16 .0.tgz#e0bb09747762436b7f61c48a03bdb972ea076349 "
2630- integrity sha512-qPYCUMxWNXQxwqYZQi0e1DX+bGrQ/cDkRMNtMTNyLs+IyyRbz+kOJj5ogIBSA7TkThWH8E+vtjkyCOwl1UZJWg ==
2627+ lightning-flow-scanner-core@^2.18 .0 :
2628+ version "2.18 .0"
2629+ resolved "https://registry.yarnpkg.com/lightning-flow-scanner-core/-/lightning-flow-scanner-core-2.18 .0.tgz#3c7426ed6d83d63e9b164b4dcb4ba31a63a53a82 "
2630+ integrity sha512-pQqN0dLV7PwqVTIWUMnfabhDcWzgvBHlLqcsv18sBqEwZY8M94WXMOStCbhHHdycsToB3PaYy+axIrQn1o1B+A ==
26312631 dependencies :
26322632 " @types/chai" " ^4.2.21"
26332633 " @types/node" " ^20.4.5"
You can’t perform that action at this time.
0 commit comments