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

enableRule0011ForTableFields not working? #253

Open
tscottjendev opened this issue Dec 7, 2022 · 1 comment
Open

enableRule0011ForTableFields not working? #253

tscottjendev opened this issue Dec 7, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tscottjendev
Copy link

I have added the enableRule0011ForTableFields to may LinterCop.json (inside a project folder or a multi-root workspace) and I am not seeing any warnings on fields. I only see the warning for the object. Am I doing something wrong?

LinterCop.json

{
    "cyclomaticComplexetyThreshold": 20,
    "maintainablityIndexThreshold": 20,
    "enableRule0011ForTableFields": true
}

image

@jthoerner-tso
Copy link

In my projects the rule "enableRule0011ForTableFields" is always false positive, so that the warning is always displayed on the field level, no matter which Access type is set.
image

In my ruleSet.json

{
  "id": "LC0011",
  "action": "Warning",
  "justification": "Every object needs to specify a value for the Access property"
}

My LinterCop.json

{
    "cyclomaticComplexityThreshold": 8,
    "maintainabilityIndexThreshold": 20,
    "enableRule0011ForTableFields": true,
    "enableRule0016ForApiObjects": true
}

StefanMaron added a commit that referenced this issue May 15, 2023
@StefanMaron StefanMaron self-assigned this May 15, 2023
@StefanMaron StefanMaron added the bug Something isn't working label May 15, 2023
StefanMaron added a commit that referenced this issue May 15, 2023
* Update project files

* Fix Rule 0011 for table fields
#253

* Fix  LC0010 does not work in code-workspaces
#225

* Analyzer LC0010 should include thresholds in the problems view
 #261
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants