Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 15 Apr 14:10
· 120 commits to main since this release

Added

  • Automatically setup Moodle Code Sniffer via Composer when enabling Moodle framework
  • Automatically run composer install when project directory matches Moodle directory
  • Added user settings (username and email) in Moodle Settings
  • New ComposerUtil for managing Composer operations
  • Added tests for MoodleSettingsForm and ComposerUtil
  • Added notification for PHP_Codesniffer configuration with automatic path detection and easy setup guidance
  • Added fallback to default Composer directories when command-line detection fails
  • Added Windows compatibility with automatic detection of .bat extensions for executables
  • Added composer availability check to prevent errors when composer is not installed

Changed

  • Improved PHP include path management in MoodleSettingsForm
  • Added support for setting the tool_path attribute for phpcs_by_interpreter configuration
  • Updated platform version from 251.23536.39 to 251.23774.350
  • Updated handlebars plugin version from 251.23536.38 to 251.23774.318
  • Enhanced error handling and logging in Composer operations
  • Improved verification of Moodle CS installation
  • Improved handling of composer operations when composer is not available
  • Enhanced test stability by skipping composer-dependent tests when composer is not available

Fixed

  • Fixed issue in ComposerUtil.getComposerGlobalDir() where it was returning the command instead of the command results
  • Fixed path handling in getPhpcsPath() and getPhpcbfPath() for cross-platform compatibility
  • Fixed output handling in getComposerGlobalDir() by properly trimming whitespace and newlines