Comments (2)
Hi. It's a good enhancement. The tool is kind of ready to create a second output implementation, but there would be some things to change on the current behaviour:
- Save every occurrence of a dependency in the AST (currently only saved once) and performe the unique check in the
mustOnly
andcanOnly
assertions. - Save the line of the occurrence in the AST.
- Implement the CheckstyleOutput from OutputInterface.
- Create an option to chose an output (or more than one maybe).
Since I'm refactoring a bit the AST collectors, I will start implementing the first 2 steps ASAP. I will put the issue on hold until this previous steps are done.
Thank you!
from phpat.
PHPat has been rebuilt as a PHPStan extension (v0.10). This feature is now included 🙂
from phpat.
Related Issues (20)
- How to select classes from the global namespace? HOT 1
- How to stack NOT selectors? HOT 2
- Method-scoped Attributes and Attribute parameters are not detected HOT 2
- I want to output error messages along with the function name that defines the architecture HOT 4
- Generics type template support HOT 6
- Stringable not included in ignore_built_in_classes HOT 3
- should the config files be moved to their default locations / Makefile? HOT 1
- PHP enums should not be final HOT 1
- Built-in classes should not be ignored when specifically requested in rules
- Readonly class requirement HOT 2
- After update psalm dies to unknown class HOT 1
- "shouldExtend" assertion not applying to classes that do not have parent class HOT 3
- PHPStan throws violation on accessing `->because()` after `->excluding()` HOT 2
- Extending the rules HOT 8
- Testing the arch tests HOT 2
- Ability to combine assertions HOT 3
- Add an ability to check class naming HOT 4
- `Selector::inNamespace` incorrectly matches classes outside namespace with a similar name
- Report old `includeTrait` or newer `mustInclude` functions in 0.10+ version
- shouldBeNamed assertion not functioning on second run HOT 3
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 phpat.