Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional replacement to ForbiddenDirectives #1901

Conversation

TimoBakx
Copy link
Contributor

@TimoBakx TimoBakx commented Dec 7, 2024

Closes #1900

@OskarStark OskarStark changed the title Added optional replacement to ForbiddenDirectives Add optional replacement to ForbiddenDirectives Dec 7, 2024
@OskarStark OskarStark added the enhancement New feature or request label Dec 7, 2024
@OskarStark
Copy link
Owner

OskarStark commented Dec 7, 2024

After this PR is merged, I would release a new version, then we need to wait ~10 minutes and then a PR against symfony/symofny-docs:@6.4 would be the next step, raising the version in the GithubActions workflow file + adjusting the .doctor-rst.yaml file accordingly.

@TimoBakx
Copy link
Contributor Author

TimoBakx commented Dec 7, 2024

Updated the code so it takes an array of replacements. Refactored the tests a bit because there are a lot more variations now. Also added tests for configuration failures.

@OskarStark OskarStark merged commit a754c7f into OskarStark:develop Dec 7, 2024
6 of 8 checks passed
OskarStark added a commit that referenced this pull request Dec 7, 2024
* develop:
  Add optional replacement to `ForbiddenDirectives`  (#1901)
  Add `make docs` (#1902)
  composer(deps-dev): bump ergebnis/composer-normalize from 2.44.0 to 2.45.0 (#1899)
  composer(deps): bump symfony/dependency-injection from 7.1.9 to 7.2.0 (#1898)
  composer(deps): bump symfony/yaml from 7.1.6 to 7.2.0 (#1897)
  composer(deps-dev): bump symfony/var-dumper from 7.1.8 to 7.2.0 (#1894)
  composer(deps): bump symfony/config from 7.1.7 to 7.2.0 (#1896)
  composer(deps): bump symfony/options-resolver from 7.1.9 to 7.2.0 (#1895)
  composer(deps): bump symfony/finder from 7.1.6 to 7.2.0 (#1893)
  composer(deps): bump symfony/console from 7.1.8 to 7.2.0 (#1892)
  composer(deps): bump symfony/dependency-injection from 7.1.8 to 7.1.9 (#1889)
  composer(deps): bump symfony/service-contracts from 3.5.0 to 3.5.1 (#1890)
  composer(deps): bump symfony/options-resolver from 7.1.6 to 7.1.9
@OskarStark
Copy link
Owner

Thanks @TimoBakx

You may want to send a PR to symfony-docs like mentioned before?

@TimoBakx
Copy link
Contributor Author

TimoBakx commented Dec 7, 2024

Yes, I will do that.

@TimoBakx TimoBakx deleted the add-optional-replacement-to-forbidden-directives branch December 7, 2024 15:46
OskarStark added a commit to symfony/symfony-docs that referenced this pull request Dec 7, 2024
…TimoBakx)

This PR was merged into the 6.4 branch.

Discussion
----------

Added replacement suggestions for forbidden directives

Also bumped DOCtor RST workflow to 1.64.0 to allow this (see OskarStark/doctor-rst#1901).

Commits
-------

35a3db1 Added replacement suggestions for forbidden directives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add replacement options to ForbiddenDirectives rule
3 participants