Skip to content

Commit

Permalink
feat: add configuration to skip PHP Composer packages-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Oct 30, 2024
1 parent 6eafe99 commit e7c5a69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ class AnalyzerExtension {
* Sets whether the PHP Composer Lock File Analyzer should be used.
*/
Boolean composerEnabled
/**
* Sets whether the PHP Composer Lock File Analyzer should skip packages-dev dependencies.
*/
Boolean composerSkipDev
/**
* Sets whether the Perl CPAN File Analyzer should be used.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ abstract class ConfiguredTask extends DefaultTask {
settings.setBooleanIfNotNull(ANALYZER_CMAKE_ENABLED, config.analyzers.cmakeEnabled)
settings.setBooleanIfNotNull(ANALYZER_AUTOCONF_ENABLED, config.analyzers.autoconfEnabled)
settings.setBooleanIfNotNull(ANALYZER_COMPOSER_LOCK_ENABLED, config.analyzers.composerEnabled)
settings.setBooleanIfNotNull(ANALYZER_COMPOSER_LOCK_SKIP_DEV, config.analyzers.composerSkipDev)
settings.setBooleanIfNotNull(ANALYZER_CPANFILE_ENABLED, config.analyzers.cpanEnabled)
settings.setBooleanIfNotNull(ANALYZER_NUGETCONF_ENABLED, config.analyzers.nugetconfEnabled)

Expand Down

0 comments on commit e7c5a69

Please sign in to comment.