GithubHelp home page GithubHelp logo

Comments (7)

davidyell avatar davidyell commented on May 22, 2024

Happens with other class attributes also. This is "squizlabs/php_codesniffer": "1.5.5",

david@ukwm157 ~/Sites/Cricketeer $ bin/phpcs --standard=CakePHP plugins/Proffer/

FILE: ...ers/david/Sites/Cricketeer/plugins/Proffer/src/Event/ImageTransform.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 27 | ERROR | Member variable "imagine" is not in valid camel caps format
--------------------------------------------------------------------------------


FILE: ...r/plugins/Proffer/tests/TestCase/Model/Behavior/ProfferBehaviorTest.php
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
 59 | ERROR | Member variable "behavior" is not in valid camel caps format
 61 | ERROR | Member variable "config" is not in valid camel caps format
--------------------------------------------------------------------------------

david@ukwm157 ~/Sites/Cricketeer $ 

from cakephp-codesniffer.

ceeram avatar ceeram commented on May 22, 2024

After some investigation this was caused by your modified version. The removal for underscored rule for protected/private was flawed.

from cakephp-codesniffer.

davidyell avatar davidyell commented on May 22, 2024

Was it, did I miss something? Are you sure you're not @ADmad?

from cakephp-codesniffer.

ADmad avatar ADmad commented on May 22, 2024

What?

from cakephp-codesniffer.

ceeram avatar ceeram commented on May 22, 2024

I explained on irc what you had forgotten to fix when removing the
underscored rules. cakephp-codesniffer does not have the issue you
described, it only happened in your modified version.
Op 25 nov. 2014 17:59 schreef "ADmad" [email protected]:

What?


Reply to this email directly or view it on GitHub
#108 (comment)
.

from cakephp-codesniffer.

ADmad avatar ADmad commented on May 22, 2024

@ceeram Okay, that took care of his first question. Now care to answer the second one?

from cakephp-codesniffer.

davidyell avatar davidyell commented on May 22, 2024

Yeah I fixed the issue you mentioned and still have the issue.

I thought that @ADmad had patched the code sniffer rules? I guess not.

I'm curious how removing an else statement to do with function underscoring
affects class attributes.
On 25 Nov 2014 17:40, "ceeram" [email protected] wrote:

I explained on irc what you had forgotten to fix when removing the
underscored rules. cakephp-codesniffer does not have the issue you
described, it only happened in your modified version.
Op 25 nov. 2014 17:59 schreef "ADmad" [email protected]:

What?

Reply to this email directly or view it on GitHub
<
https://github.com/cakephp/cakephp-codesniffer/issues/108#issuecomment-64433186>

.

Reply to this email directly or view it on GitHub
#108 (comment)
.

from cakephp-codesniffer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.