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

fix(formatting): drop PHP CodeSniffer #504

Merged
merged 2 commits into from
Nov 5, 2017
Merged

Conversation

felixfbecker
Copy link
Owner

@felixfbecker felixfbecker commented Oct 28, 2017

BREAKING CHANGE: removes formatting support

closes #501
closes #474
closes #473
closes #468
closes #450
closes #445
closes #443
closes #423
closes #343
closes #296
closes #293

@damieng @kaloyan-raev @mniewrzal @roblourens

@felixfbecker felixfbecker force-pushed the remove-formatting branch 4 times, most recently from 648dd25 to 326c9a2 Compare October 28, 2017 03:23
@codecov
Copy link

codecov bot commented Oct 28, 2017

Codecov Report

Merging #504 into master will decrease coverage by 0.26%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #504      +/-   ##
============================================
- Coverage      79.4%   79.13%   -0.27%     
+ Complexity      826      810      -16     
============================================
  Files            56       55       -1     
  Lines          1971     1927      -44     
============================================
- Hits           1565     1525      -40     
+ Misses          406      402       -4
Impacted Files Coverage Δ Complexity Δ
src/LanguageServer.php 77.47% <ø> (-0.21%) 27 <0> (ø)
src/Server/TextDocument.php 75% <ø> (-0.56%) 55 <0> (-1)
src/PhpDocument.php 80% <ø> (+0.31%) 24 <0> (-2) ⬇️

BREAKING CHANGE: removes formatting support

closes #501
closes #474
closes #473
closes #468
closes #450
closes #445
closes #443
closes #423
closes #343
closes #296
closes #293
closes #499
closes #471
@ptasker
Copy link

ptasker commented Nov 17, 2017

Has this made it into the VS Code extension as of yet?

@jens1o
Copy link
Contributor

jens1o commented Nov 17, 2017

No, it hasn't @ptasker

cgxxv pushed a commit to cgxxv/php-language-server that referenced this pull request Mar 25, 2022
At this point there are countless issues about the formatting done by CodeSniffer. It plain out doesn't work in many cases, overrides format options that are contributed by other extensions in VS Code and does not reuse any of our AST parsing. For that reason, I am starting to think there is no reason to keep it in here until we have proper pretty-printing support from https://github.com/Microsoft/tolerant-php-parser that actually reuses our ASTs and can work while editing. For people who want to use CodeSniffer to format their code, there could be a standalone CodeSniffer language server (like there is a TSLint language server and ESLint language server). As said, we don't reuse our state anyway.

BREAKING CHANGE: removes formatting support

closes felixfbecker#501
closes felixfbecker#474
closes felixfbecker#473
closes felixfbecker#468
closes felixfbecker#450
closes felixfbecker#445
closes felixfbecker#443
closes felixfbecker#423
closes felixfbecker#343
closes felixfbecker#296
closes felixfbecker#293
closes felixfbecker#499
closes felixfbecker#471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment