Skip to content
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

Parameters not being passed into results?? #543

Closed
jimpriest opened this issue Feb 25, 2018 · 0 comments
Closed

Parameters not being passed into results?? #543

jimpriest opened this issue Feb 25, 2018 · 0 comments
Labels
Milestone

Comments

@jimpriest
Copy link

I'm working on some examples for my local user group preso and ran into a possible issue (or I don't have my syntax correct?)...

My example CFC has 4 functions in it. So I set a maximum parameter of "3".

{
  "rule": [],
  "includes": [{ "code": "EXCESSIVE_FUNCTIONS" }],
  "inheritParent": false,
  "parameters":  {"TooManyFunctionsChecker.maximum" : "3"}
}

I do get an error but the maximum value I set in the parameters is not passed into the test results:

Message code:EXCESSIVE_FUNCTIONS
	File:D:\tacfug\3_rule_file\test.cfc
	Column:0
	Line:1
		Message:Component test has too many functions. Should be fewer than 10.

Would expect it to report:

Message:Component test has too many functions. Should be fewer than 3.
@ryaneberly ryaneberly added the bug label Jun 1, 2018
@ryaneberly ryaneberly added this to the 1.4.1 milestone Jun 1, 2018
ryaneberly added a commit that referenced this issue Jun 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants