Comments (2)
I've asked the same question on our chat 2 months ago 😅. In general, the way how cache is calculated now does not support development - after changes in the fixer(s), files defined in the finder won't be analysed again because config and files' content did not change. This would lead to situation where analysis' result would be wrong or --using-cache=no
had to be passed all the time. That's why it is hard-disabled.
But I am going to leave this feature request open as I agree with it and this would be really helpful. It just requires different approach to calculating cache, that has to be discussed and implemented. It could be done by calculating hash for the content of all configured fixers - if it changes, all files should be analysed again. More complex version, that would support per-file/per-fixer cache info, so only modified fixer would be run against files, is rather not possible because of fixers' dependency graph (other fixers could probably modify file after changes done by modified fixer, but these wouldn't be run if they weren't modified too).
For those curious, check for the self-usage is done here.
from php-cs-fixer.
Since this issue has not had any activity within the last 90 days, I have marked it as stale.
The purpose of this action is to enforce backlog review once in a while. This is mostly for maintainers and helps with keeping repository in good condition, because stale issues and PRs can accumulate over time and make it harder for others to find relevant information. It is also possible that some changes has been made to the repo already, and issue or PR became outdated, but wasn't closed for some reason. This action helps with periodic review and closing of such stale items in automated way.
You may let maintainers handle this or verify current relevancy by yourself, to help with re-triage. Any activity will remove stale label so it won't be automatically closed at this point.
I will close it if no further activity occurs within the next 30 days.
from php-cs-fixer.
Related Issues (20)
- `yoda_style` does not work with `require` and ternary
- Deprecate PER-CS1.0 HOT 2
- TODO: create `DeprecatedRuleSetDescriptionInterface`, similar to `DeprecatedFixerInterface`
- Two passes needed for method_argument_space + single_line_comment_style/no_trailing_whitespace
- Two passes needed for array_syntax+ single_space_around_construct
- Two passes needed for `no_useless_else` + `no_whitespace_in_blank_line` / `blank_line_before_statement`
- Two passes needed for no_superfluous_phpdoc_tags + phpdoc_add_missing_param_annotation HOT 3
- Create a `@PER-CS` ruleset that aliases the "newest" PER-CS set
- `single_line_empty_body` contradicts the PSR-12 code style HOT 1
- Reference assignment operator =& gets broken up HOT 16
- Introduce `check` command as an alias for `fix --dry-run`
- Make GetClassToClassKeywordFixer check composer.json require HOT 2
- `ReturnToYieldFromFixer` error on file-wide return
- `no_unneeded_control_parentheses` does not remove parentheses in logical expression HOT 2
- Consider renaming `new_with_braces` to `new_with_parentheses` HOT 4
- PharException: internal corruption of phar "/var/www/html/vendor/friendsofphp/php-cs-fixer/php-cs-fixer" HOT 3
- Rule php_unit_data_provider_static doesn't recognize new attribute DataProvider syntax HOT 2
- Update the `phpdoc_to_comment` rule to recognize annotations for generic traits HOT 3
- PHPUnit: migrate `@doesNotPerformAssertions` to `->expectNotToPerformAssertions()`
- Mark DTO classes as readonly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-cs-fixer.