@@ -31,7 +31,7 @@ function checkGlobalChanges(changedFiles) {
3131 }
3232
3333 for ( const file of changedFiles ) {
34- if ( GLOBAL_FILES . some ( globalFile => file === globalFile || file . endsWith ( `/${ globalFile } ` ) ) ) {
34+ if ( GLOBAL_FILES . some ( ( globalFile ) => file === globalFile || file . endsWith ( `/${ globalFile } ` ) ) ) {
3535 console . error ( `Global file changed: ${ file } ` ) ;
3636 return true ;
3737 }
@@ -89,14 +89,14 @@ function isComponentAffected(component, changedFiles) {
8989 // Check if any dependency files changed
9090 for ( const dep of dependencies ) {
9191 const depPath = `crates/${ dep } /` ;
92- if ( changedFiles . some ( file => file . startsWith ( depPath ) ) ) {
92+ if ( changedFiles . some ( ( file ) => file . startsWith ( depPath ) ) ) {
9393 console . error ( ` Component ${ component } affected by changes in ${ depPath } ` ) ;
9494 return true ;
9595 }
9696 }
9797
9898 // Check benchmark and common task files
99- if ( changedFiles . some ( file => file . startsWith ( 'tasks/benchmark/' ) || file . startsWith ( 'tasks/common/' ) ) ) {
99+ if ( changedFiles . some ( ( file ) => file . startsWith ( 'tasks/benchmark/' ) || file . startsWith ( 'tasks/common/' ) ) ) {
100100 console . error ( ` Component ${ component } affected by benchmark/common file changes` ) ;
101101 return true ;
102102 }
@@ -113,7 +113,7 @@ async function determineAffectedComponents() {
113113
114114 // Manual trigger - run all benchmarks
115115 if ( changedFiles === null ) {
116- return ALL_COMPONENTS . map ( component => ( {
116+ return ALL_COMPONENTS . map ( ( component ) => ( {
117117 component,
118118 feature : getFeatureForComponent ( component ) ,
119119 } ) ) ;
@@ -122,7 +122,7 @@ async function determineAffectedComponents() {
122122 // Check for global changes
123123 if ( checkGlobalChanges ( changedFiles ) ) {
124124 console . error ( 'Global changes detected - will run all benchmarks' ) ;
125- return ALL_COMPONENTS . map ( component => ( {
125+ return ALL_COMPONENTS . map ( ( component ) => ( {
126126 component,
127127 feature : getFeatureForComponent ( component ) ,
128128 } ) ) ;
@@ -144,7 +144,7 @@ async function determineAffectedComponents() {
144144 if ( affectedComponents . length === 0 ) {
145145 console . error ( '\nNo components were affected by the changes' ) ;
146146 } else {
147- console . error ( `\nAffected components: ${ affectedComponents . map ( obj => obj . component ) . join ( ', ' ) } ` ) ;
147+ console . error ( `\nAffected components: ${ affectedComponents . map ( ( obj ) => obj . component ) . join ( ', ' ) } ` ) ;
148148 }
149149
150150 return affectedComponents ;
@@ -165,15 +165,15 @@ async function main() {
165165 if ( affectedComponents . length === 0 ) {
166166 console . error ( '::notice title=No benchmarks to run::No components were affected by the changes' ) ;
167167 } else {
168- const componentNames = affectedComponents . map ( obj => obj . component ) . join ( ', ' ) ;
168+ const componentNames = affectedComponents . map ( ( obj ) => obj . component ) . join ( ', ' ) ;
169169 console . error ( `::notice title=Running benchmarks::Affected components: ${ componentNames } ` ) ;
170170 }
171171
172172 process . exit ( 0 ) ;
173173 } catch ( error ) {
174174 console . error ( 'Error generating benchmark matrix:' , error ) ;
175175 // On error, run all benchmarks as a fallback
176- const fallbackMatrix = ALL_COMPONENTS . map ( component => ( {
176+ const fallbackMatrix = ALL_COMPONENTS . map ( ( component ) => ( {
177177 component,
178178 feature : getFeatureForComponent ( component ) ,
179179 } ) ) ;
0 commit comments