Skip to content
Snippets Groups Projects

New batch of documentation updates.

Closes #3439644

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
5 If there is a baseline file in the module it will use it, but if there isn't, it will just run default values.
5 If the project contains a `phpstan.neon` configuration file it will be used. If not, a [default configuration](https://git.drupalcode.org/project/gitlab_templates/-/blob/main/assets/phpstan.neon) is used.
6 6
7 It will offer a baseline file for module maintainers to add it to their projects to make adoption easier.
7 Projects can specify baseline file(s) of messages to ignore, using the `includes:` keyword in the `phpstan.neon` file:
8 ```
9 includes:
10 - your-baseline-file.neon
11 - second-baseline-file.neon
12 ```
8 13
9 If you do not want it to run in your contrib module, you just need to set `SKIP_PHPSTAN` to 1.
14 The variable `_PHPSTAN_LEVEL` can be set to a value from 0-9 to specify how relaxed or severe the code qualify checks should be. This can be used to temporarily override the value in your `phpstan.neon` file. If no value is given, the default of 0 is used. See https://phpstan.org/user-guide/rule-levels for more information.
10 15
11 This job allows multiple variants to check current and future versions of Drupal, as well as the maximum PHP version.
16 Any warnings that are found are written to a new baseline file which is available as a job artifact for download. These can be added into the existing baseline file until the code is fixed. Unrequired (unmatched) messages in the baseline file are reported in the log.
  • added 1 commit

    • 5e3fd799 - Remove "unrequired" non-word. Add link to baseline documentation

    Compare with previous version

  • added 1 commit

    • 994c1167 - Move paragraph, to remove confusion that _PHPSTAN_LEVEL goes into the .neon file

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Jonathan Smith
  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    • d7b4d823 - Update phpstan paragraph on variants.

    Compare with previous version

  • added 1 commit

    • 353c67b4 - Updated deprecation to state _PHPUNIT_CONCURRENT: 0

    Compare with previous version

  • Fran Garcia-Linares resolved all threads

    resolved all threads

  • added 1 commit

    • 3c2e7e61 - Add minimum stability = dev to composer page

    Compare with previous version

  • Jonathan Smith added 27 commits

    added 27 commits

    • 3c2e7e61...284ef5e6 - 13 commits from branch project:main
    • 284ef5e6...192430a7 - 4 earlier commits
    • 91dcd380 - Add extra example.
    • bb681692 - Revise the PHPStan doc page
    • e8b1c848 - Remove "unrequired" non-word. Add link to baseline documentation
    • 90fe502c - Move paragraph, to remove confusion that _PHPSTAN_LEVEL goes into the .neon file
    • c04471dc - Fix a word
    • b88a392d - Update test-only-changes.md
    • dcb4d675 - Correct two spelling errors
    • dd297bb7 - Update phpstan paragraph on variants.
    • 3650ad3e - Updated deprecation to state _PHPUNIT_CONCURRENT: 0
    • 49d68d3d - Add minimum stability = dev to composer page

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading