8000 Comparing 0.28.1...0.29.0 · infection/infection · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: infection/infection
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.28.1
Choose a base ref
...
head repository: infection/infection
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.29.0
Choose a head ref
  • 18 commits
  • 436 files changed
  • 7 contributors

Commits on Mar 29, 2024

  1. Configuration menu
    Copy the full SHA
    906684a View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    684085b View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. test: Force mutators to include remedies (#1954)

    This PR is a rebased version of #1907.
    
    It currently skips all but one mutator to set a baseline. Existing mutators should no longer be skipped in the future and this check ensures that new mutators will require a remedy to be documented.
    
    There is more to do with remedies to, for example some ideas of #1907 (comment), but I think it is vastly out of scope of this PR and should be considered at a later time.
    
    Closes #1907.
    
    ---------
    
    Co-authored-by: Tom de Wit <tdewit@gainsight.com>
    theofidry and gs-tdewit authored Apr 12, 2024
    Configuration menu
    Copy the full SHA
    7bd2ce3 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2024

  1. Configuration menu
    Copy the full SHA
    9978ac6 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Use the latest v1 test checker action (#1960)

    * Use the latest v1 test checker action
    
    * Trigger a change to check if it works
    
    * Use v1.0.2
    
    * Revert "Trigger a change to check if it works"
    
    This reverts commit a0df176.
    maks-rafalko authored May 5, 2024
    Configuration menu
    Copy the full SHA
    4a06906 View commit details
    Browse the repository at this point in the history
  2. Make Mutator::getDefinition return type non-nullable (#1958)

    We are going to extract `Mutator` interface to a separate package, so other developers can require `infection/mutator` and use only that small package with interface(s) to write their custom mutators.
    
    And we 100% must require write definitions for their mutators. If we allow null, developers will simply return null which we are not interested in.
    
    For example Rector does the same - Rector requires providing description / diff / docs for their "rectors". It's a win-win - immediately clear what class is going to do.
    
    The same is for us. Later, even Remedies (3rd parameter will be non-nullable), but this is another story.
    maks-rafalko authored May 5, 2024
    8000 Configuration menu
    Copy the full SHA
    a3dfe76 View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Upgrade Rector and fix new issues (#1961)

    * Upgrade Rector and fix new issues
    
    * Revert removed PHPDocs and skip `MixedTypeRector` as it seems there is a bug
    
    See rectorphp/rector#8633
    
    * Update lock file
    maks-rafalko authored May 14, 2024
    Configuration menu
    Copy the full SHA
    df56e28 View commit details
    Browse the repository at this point in the history
  2. Enable Rector's AddCoversClassAttributeRector rule (#1962)

    * Upgrade Rector and fix new issues
    
    * Enable Rector's `AddCoversClassAttributeRector` rule
    
    - https://github.com/rectorphp/rector-phpunit/blob/main/docs/rector_rules_overview.md#addcoversclassattributerector
    - see my explanation why it's needed rectorphp/rector-phpunit#319 (comment)
    maks-rafalko authored May 14, 2024
    Configuration menu
    Copy the full SHA
    97818a8 View commit details
    Browse the repository at this point in the history
  3. Support custom mutators (#1686)

    * Support custom mutators
    
    * Add e2e test to make sure Custom Mutator works as expected
    
    - exclude Mutator, Definition, MutatorCategory from being prefixes by Box/Scoper
    
    * Update expectations of e2e test
    
    * Play with exposing/excluding extension points to work with bot `bin/infection` and `infection.phar`
    
    * Allow custom mutators only as `RooNamespace\SubNamespace\Class`
    
    Invalid FQCN are forbidden
    
    * Replace `exclude-namespaces` with `expose-namespaces` for scoper config as per comments
    
    * Revert "Replace `exclude-namespaces` with `expose-namespaces` for scoper config as per comments"
    
    This reverts commit 809d8f2.
    
    ---------
    
    Co-authored-by: Stanislav Vozhov <svozhov@plesk.com>
    Co-authored-by: maks-rafalko <b0rn@list.ru>
    3 people authored May 14, 2024
    Configuration menu
    Copy the full SHA
    0d5fd7e View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Move Infection\Mutator\Mutator to a separate package (#1963)

    * Move `Infection\Mutator\Mutator` to a separate package
    
    * Upgrade `infection/mutator`
    
    * Fix `psalm` issues
    
    * Fix `phpstan` errors
    
    * Update e2e test to require `infection/mutator`. Bot, you were right
    
    * Add `TNode` template param to `IgnoreMutator`
    maks-rafalko authored May 15, 2024
    Configuration menu
    Copy the full SHA
    18a92e9 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. Configuration menu
    Copy the full SHA
    154822a View commit details
    Browse the repository at this point in the history

Commits on May 18, 2024

  1. Configuration menu
    Copy the full SHA
    8bafcfc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb4ceba View commit details
    Browse the repository at this point in the history
  3. Replace deprecated constant `NodeTraverser::DONT_TRAVERSE_CURRENT_AND…

    …_CHILDREN` with `NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN` (#1968)
    maks-rafalko authored May 18, 2024
    Configuration menu
    Copy the full SHA
    80a1579 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    0a47b7b View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Custom mutator generator (#1969)

    * Add custom mutator command
    
    * Move `BaseMutatorTestCase` to Infection\Testing namespace
    
    * Update failure message for BaseMutatorTestCase
    
    * Fix autoreview analysis
    
    * Fix type
    
    * Exclude template files from mutating
    
    * Rename `$mutator` to `$mutatorName`
    
    * Fix typo
    
    * Move asking mutator name to separate private function
    
    * Use hardcoded paths instead of Finder
    
    * Use static methods
    
    * Create helper method to dump templates to project to improve readability
    
    * Fix type
    
    * Reword info message
    
    * Move `getDefinition()` to the top of the mutator class
    
    * Inline `Mutator` property type
    
    * Rename base test method
    
    * Remove outdated TODOs
    
    * Inline mutator node type
    
    * Fix phpstan issues
    
    * Rename command to `make:custom-mutator`
    
    * Create interact() method for new command, add tests
    
    * Rename command to `make:mutator`
    
    * Fix typo
    
    * Allow custom mutator to be used in `--mutators=X,Y,Z` option
    maks-rafalko authored May 27, 2024
    Configuration menu
    Copy the full SHA
    0b13941 View commit details
    Browse the repository at this point in the history
  2. When IgnoreMutator decorator class is used, work with underlying clas…

    …s of mutator to get its definition (#1972)
    
    * When IgnoreMutator decorator class is used, work with underlying class of mutator to get its definition
    
    Fixes:
    
    ```
    DomainException: The class "Infection\Mutator\IgnoreMutator" does not have a definition
    ```
    
    on StrykerHtmlReportBuilder.php
    
    Bug has been introduced in https://github.com/infection/infection/pull/1686/files#diff-01143bfb1cd8c30fa7f368e58fa5b9bebf3f35de2a4bc509123ed81358b59ff8R249
    
    * Fix phpstan type error
    maks-rafalko authored May 27, 2024
    Configuration menu
    Copy the full SHA
    e2200ae View commit details
    Browse the repository at this point in the history
  3. Update CHANGELOG.md

    maks-rafalko committed May 27, 2024
    Configuration menu
    Copy the full SHA
    02159e8 View commit details
    Browse the repository at this point in the history
Loading
0