-
Notifications
You must be signed in to change notification settings - Fork 48
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
[BUG] Error (1): Attribute without value #1460
Comments
@saurabh-coinbase , can you post the file that causes the exception? |
Yup @jfeingold35 it's here!
|
@saurabh-coinbase , if this is an issue with PMD itself instead of our integration with PMD (which is what this certainly seems like), then you might be better off logging this against PMD's repo directly instead of with us. |
@jfeingold35 I already created with PMD support team, they had mentioned the issue could be from Salesforce scanner end. |
@saurabh-coinbase , I'm unable to reproduce locally with the ruleset you provided. Is there any additional setup that you haven't posted yet? Alternatively, is it only reproducible in a particular file? |
@jfeingold35 below is the yml file, custom rule file already shared, that's all I have!
|
@saurabh-coinbase , okay, I've tried running that command with your custom ruleset against some of the sample Apex files we have on hand, and I can't reproduce this. That means it's probably dependent on the contents of the file being scanned. If you can narrow it down to a specific file or set of files and provide the contents of those files, I can continue to assist in debugging. But if not, then I'm afraid there's not much I can do to help. |
@jfeingold35 There's another issue with the pipeline where 6 PMD violations were detected, but the PMD check did not fail based on the violations reported. |
@saurabh-coinbase , Use the |
Thank you so much @jfeingold35, I'm still getting Server_Internal error and not sure what could be the resolution for that. |
@saurabh-coinbase , as I've mentioned, I'm unable to reproduce that behavior. If you can narrow it down to one or more specific files being passed into |
Yeah I too am unable to reproduce. I am getting: ~/temp/tempProj: sf scanner run --pmdconfig customRuleSet.xml --target force-app --format table So it might be attached to how the rule is running on your specific codebase. @saurabh-coinbase Have you tried using PMD 7 independent of salesforce code analyzer to see if that errors? |
Closing this for now since we haven't received a reply. |
scanner run
Issue TemplateFill out this template to submit your Code Analyzer issue.
Description:
Error (1): Attribute without value
Documentation:
Steps To Reproduce:
Install latest beta version:
sf plugins install @salesforce/sfdx-scanner@latest-beta
Expected Behavior:
Should not throw any error!
Screenshots:
Desktop:
Using in the Git CI/CD Pipeline
Additional Context:
Workaround:
if I use latest then it works fine
sf plugins install @salesforce/sfdx-scanner@latest
Urgency:
We are facing some pmd errorException (Scanner Internal) which would be resolved under
pmd 7.0
release version.The text was updated successfully, but these errors were encountered: