Skip to content

Commit

Permalink
Merge f1c820e into a497d3a
Browse files Browse the repository at this point in the history
  • Loading branch information
valendesigns committed Oct 13, 2019
2 parents a497d3a + f1c820e commit d55f1df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions cmd/phpcs-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func processMessage(msg message.Message, wg *sync.WaitGroup) error {
TempFolder: procCfg.phpcsTempFolder,
Config: config,
StorageProvider: procCfg.phpcsStorageProvider,
PhpcsVersions: getPhpcsVersions(),
}
if err := doPHPCSProcess(phpcsProc, msg, results); err != nil {
return err
Expand Down Expand Up @@ -466,3 +467,17 @@ func getServiceConfig() map[string]map[string]string {
},
}
}

func getPhpcsVersions() map[string]map[string]string {
return map[string]map[string]string{
"phpcompatibility": {
"phpcs": env.GetEnv("PHPCS", ""),
"phpcompatibility": env.GetEnv("PHPCOMPAT", ""),
"phpcompatibilitywp": env.GetEnv("PHPCOMPAT_WP", ""),
},
"wordpress": {
"phpcs": env.GetEnv("PHPCS", ""),
"wpcs": env.GetEnv("WPCS", ""),
},
}
}
2 changes: 1 addition & 1 deletion glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d55f1df

Please sign in to comment.