1. 26 Sep, 2022 1 commit
    • Dmytro Iosypenko's avatar
      feat(phpstan) implementation of PHPStan Custom Rules (#208) · d3ded3c1
      Dmytro Iosypenko authored
      
      
      * feat(phpstan) prepared phpunit and pest environments (#196)
      
      * Prepared PHPUnit and Pest Test environment
      
      * Fixed issues with config files
      
      * reinstalled pest with minor fixes to config files
      
      * deleted autogenerated files by pest
      
      * feat(phpstan): implementation of variable custom rules (#198)
      
      * Implementation of Variable length custom rules and Back Tick variable rules
      
      * Implementation of Misc PHPStan Custom Rules + refacto
      
      * Fixed namespace issue
      
      * Fixed class name typo
      
      * Fixed small typos
      
      * Implementation of Variable length custom rules and Back Tick variable rules
      
      * Implementation of Misc PHPStan Custom Rules + refacto
      
      * Fixed namespace issue
      
      * Fixed class name typo
      
      * Fixed small typos
      
      * implemented unit test for variable custom rules
      
      * deleted old files
      
      * fixes
      
      * removed calls to getType in StringBackquotesCustomRuleTest.php
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update StringBackquotesCustomRule.php
      
      * Update VariableLengthCustomRule.php
      
      Changed switch to match
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * feat(phpstan) implementation of log custom rules (#200)
      
      * implemented LoggerUseCaseCustomRule
      
      * implemented try/catch custom rule
      
      * refacto try/catch custom rule
      
      * refacto try/catch custom rule v2
      
      * rewrite buildErrorMessage() method
      
      * corrected a bug in LoggerUseCaseCustomRule
      
      * refacto tests
      
      * implemented log custom rules and unit tests
      
      * added dependecy for unit tests
      
      * Update src/PHPStan/CustomRules/LogMethodInCatchCustomRule.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/LoggerUseCaseCustomRule.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/LoggerUseCaseCustomRule.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/LogMethodInCatchCustomRule.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/AbstractGetLoggerMethodsClass.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * refacto unit tests
      
      * Update src/PHPStan/CustomRules/AbstractGetLoggerMethodsClass.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/AbstractGetLoggerMethodsClass.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * feat(phpstan) implementation of repository custom rules (#205)
      
      * refacto of previous PR
      
      * Repository rules implementation
      
      * implemented unit tests for  Repository custom rules part 1
      
      * reorganized rules in folders by type, implemented unit tests
      
      * fix newlines
      
      * Update .gitignore
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/CentreonRuleErrorBuilder.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/RepositoryRules/RepositoryNameCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/RepositoryRules/RepositoryNameCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/RepositoryRules/RepositoryNameValidationByInterfaceCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * feat(phpstan) prepared phpunit and pest environments (#196)
      
      * Prepared PHPUnit and Pest Test environment
      
      * Fixed issues with config files
      
      * reinstalled pest with minor fixes to config files
      
      * deleted autogenerated files by pest
      
      * feat(phpstan): implementation of variable custom rules (#198)
      
      * Implementation of Variable length custom rules and Back Tick variable rules
      
      * Implementation of Misc PHPStan Custom Rules + refacto
      
      * Fixed namespace issue
      
      * Fixed class name typo
      
      * Fixed small typos
      
      * Implementation of Variable length custom rules and Back Tick variable rules
      
      * Implementation of Misc PHPStan Custom Rules + refacto
      
      * Fixed namespace issue
      
      * Fixed class name typo
      
      * Fixed small typos
      
      * implemented unit test for variable custom rules
      
      * deleted old files
      
      * fixes
      
      * removed calls to getType in StringBackquotesCustomRuleTest.php
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/StringBackquotesCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update StringBackquotesCustomRule.php
      
      * Update VariableLengthCustomRule.php
      
      Changed switch to match
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * feat(phpstan) implementation of log custom rules (#200)
      
      * implemented LoggerUseCaseCustomRule
      
      * implemented try/catch custom rule
      
      * refacto try/catch custom rule
      
      * refacto try/catch custom rule v2
      
      * rewrite buildErrorMessage() method
      
      * corrected a bug in LoggerUseCaseCustomRule
      
      * refacto tests
      
      * implemented log custom rules and unit tests
      
      * added dependecy for unit tests
      
      * Update src/PHPStan/CustomRules/LogMethodInCatchCustomRule.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/LoggerUseCaseCustomRule.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/LoggerUseCaseCustomRule.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/LogMethodInCatchCustomRule.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/AbstractGetLoggerMethodsClass.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * refacto unit tests
      
      * Update src/PHPStan/CustomRules/AbstractGetLoggerMethodsClass.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * Update src/PHPStan/CustomRules/AbstractGetLoggerMethodsClass.php
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      
      * feat(phpstan) implementation of repository custom rules (#205)
      
      * refacto of previous PR
      
      * Repository rules implementation
      
      * implemented unit tests for  Repository custom rules part 1
      
      * reorganized rules in folders by type, implemented unit tests
      
      * fix newlines
      
      * Update .gitignore
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/CentreonRuleErrorBuilder.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/RepositoryRules/RepositoryNameCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/RepositoryRules/RepositoryNameCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * Update src/PHPStan/CustomRules/RepositoryRules/RepositoryNameValidationByInterfaceCustomRule.php
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      
      * feat(phpstan) implementation of architecture custom rules (#207)
      
      * correction in Logger Custom Rule regarding Directory Separator
      
      * implemented architecture rules
      
      * implemented architecture rules
      
      * implemented unit tests for architecture rules
      
      * fixes
      
      * fix
      
      * refacto Exception Custom Rule
      
      * fix
      
      * fix
      
      * newlines in the end of files
      
      * newlines before return
      
      * Update src/PHPStan/CustomRules/Traits/UseCaseTrait.php
      
      * added additional checks for Repository Rules
      
      * fix check for exception in repo rule
      
      * refined Repository Custom Rules
      
      * Exception Rule: excluded a case when Exception is thrown in constructor
      
      * Exception Rule: removed exception for Exceptions in constructor method
      
      * fix(phpstan) implement a particular case in exception custom rule  (#212)
      
      * excuded private methods from error checking
      
      * added unit test for constructor method exception from rule
      
      * additional checks to solve process exited with 1 issue
      
      * cleanup
      
      * composer.lock
      
      Co-authored-by: default avatarKevin Duret <kduret@centreon.com>
      Co-authored-by: default avatarjeremyjaouen <61694165+jeremyjaouen@users.noreply.github.com>
      d3ded3c1
  2. 16 Sep, 2022 1 commit
  3. 05 Sep, 2022 1 commit
  4. 30 Aug, 2022 1 commit
  5. 22 Aug, 2022 1 commit
  6. 05 Aug, 2022 2 commits
  7. 29 Jul, 2022 1 commit
  8. 08 Jul, 2022 1 commit
  9. 28 Jun, 2022 1 commit
  10. 27 Apr, 2022 1 commit
  11. 26 Apr, 2022 1 commit
  12. 01 Apr, 2022 1 commit
  13. 08 Feb, 2022 1 commit
  14. 07 Feb, 2022 1 commit
  15. 27 Jan, 2022 1 commit
  16. 03 Jan, 2022 1 commit
  17. 13 Dec, 2021 1 commit
  18. 08 Dec, 2021 1 commit
  19. 19 Oct, 2021 1 commit
  20. 04 Oct, 2021 2 commits
  21. 27 Sep, 2021 1 commit
  22. 23 Sep, 2021 1 commit
  23. 10 Sep, 2021 1 commit
  24. 01 Sep, 2021 1 commit
  25. 20 Jul, 2021 1 commit
  26. 29 Jun, 2021 1 commit
  27. 21 Jun, 2021 1 commit
  28. 03 May, 2021 2 commits
  29. 28 Apr, 2021 1 commit
  30. 10 Mar, 2021 2 commits
  31. 08 Feb, 2021 1 commit
  32. 18 Jan, 2021 1 commit
  33. 17 Dec, 2020 1 commit
  34. 15 Dec, 2020 1 commit
  35. 23 Nov, 2020 1 commit
  36. 12 Nov, 2020 1 commit