-
Notifications
You must be signed in to change notification settings - Fork 84
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
Ignore VAR_ALL_CAPS for components #239
Comments
On the component level only? and continue to enforce it at the function
level?
Like this?
<cfcomponent>
<cfset this.ROOMRESERVATIONS.SINGLE = 1> <--- Ignore this
<cffunction name="test"> <cfset SOMEVAL = 2> <--- flag this
</cffunction>
<cfcomponent>
…On Wed, Feb 15, 2017 at 5:04 PM, Bernhard Döbler ***@***.***> wrote:
Hi,
I have a component that defined constant values I use all over my
software; it looks like
<cfcomponent>
<cfset this.ROOMRESERVATIONS.SINGLE = 1>
<cfset this.ROOMRESERVATIONS.DOUBLE = 2>
<cfset this.YES = 1>
<cfset this.NO = 2>
<cfcomponent>
No that you introduced a syntax to ignore checks on component level, I'd
love a way to ignore VAR_ALL_CAPS on component level.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#239>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFtZu_Ap2lru6ytMk94eYwP69NQ24TTvks5rc3ZogaJpZM4MCTs6>
.
|
Exactly, yes! |
Agree. And not just for the component {
this.SOMECONSTANT = 1;
SOMEOTHERCONSTANT = 2;
} |
I think that means you want to control the message by scope. Sounds good to me. |
I added this parameter to VariableNameChecker in cflint.definition.json: I suggest we make it ignore ALLCAPS in the 'this' scope by default. What do you think? |
I would ignore both in |
Done. Thanks!
…On Sat, Mar 4, 2017 at 12:57 AM, Michał Paluchowski < ***@***.***> wrote:
I suggest we make it ignore ALLCAPS in the 'this' scope by default. What
do you think?
I would ignore both in this as well as variables. We sometimes use the
format to emulate an Enum, where we use this, and sometimes to emulate
constants, which usually use variables, unless they should be exposed
outside of the class, in which case they use this.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#239 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFtZu8k1dEhG9r_x7p9rdo3Hn9pfUHNCks5riP1fgaJpZM4MCTs6>
.
|
Hi,
I have a component that defined constant values I use all over my software; it looks like
No that you introduced a syntax to ignore checks on component level, I'd love a way to ignore
VAR_ALL_CAPS
on component level.The text was updated successfully, but these errors were encountered: