Comments (5)
Because this is what CakePHP has been using from the beginning and it predates standards like PSR.
from cakephp-codesniffer.
Does someone knows how to force phpstorm not to ident doc blocks? or what editor you use to develop that supports this behavior?
from cakephp-codesniffer.
@CostaC this decision must have been related to some severe alcohol abuse ;-) It's one of the very few rules in the CakePHP standard I personally disregard in our code. I even excluded this sniff in our company's CS standard.
@eimanavicius may be ask this question in StackOverflow. But I never got it to work. May be consider excluding the phpcs sniff.
<rule ref="CakePHP">
<!-- Exclude unwanted sniffs -->
<exclude name="Generic.Commenting.Todo"/>
<exclude name="CakePHP.WhiteSpace.ScopeIndent"/>
<exclude name="CakePHP.Commenting.FunctionCommentThrowTag"/>
</rule>
<!-- Add additional/replacing sniffs -->
<rule ref="Squiz.Commenting.FunctionCommentThrowTag"/>
from cakephp-codesniffer.
@ravage84 When changing the arrays from array() to [] in 3.0 then completely via batch script this is likely to come up then as well.
I already prepared everything for a discussion and transformation via my batch scripts and auto-correct sniffs for it. Just have to wait for the right time.
from cakephp-codesniffer.
I know, but good you mentioned it again 😈
from cakephp-codesniffer.
Related Issues (20)
- Do not allow to use underscore prefixes HOT 1
- Error SlevoodingStandard.Arrays.TrailingAmatCrrayComma HOT 10
- Add an empty line between opening tag and declare HOT 2
- Allow for new major Slevomat v7
- PhpStorm HOT 1
- 5.0: Require static return type hint for chaining methods HOT 1
- Collection generics HOT 2
- Union type render fails in some cases
- Union type require spaces ? HOT 3
- Constructor property promotion HOT 3
- Cake 5 CS HOT 1
- Files are not queued by phpcs when using this standard HOT 3
- update links
- can support for slevomat/coding-standard v6 be removed? HOT 5
- Version 4.7 shows this warning HOT 1
- Compare PHP native param types and phpdoc param types
- ECS Support HOT 4
- Cake5: Dynamic property error with PHP 8.2 due to our ruleset HOT 1
- Enum case casing HOT 1
- Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: Undefined property HOT 2
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 cakephp-codesniffer.