Filter by:
File Violation Severity
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'isPolicyExits' could be declared final
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'policyToUpdate' could be declared final
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'isPolicyExits' could be declared final
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'date' could be declared final
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'newPolicy' could be declared final
Warning
api/pacman-api-compliance/sr...onfig/CrossOriginFilter.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'response' could be declared final
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'pi' could be declared final
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'pItems' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'severity' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'category' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'severityVulnValue' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'formattedUrl' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'issueList' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'issue' could be declared final
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'severityList' could be declared final
Warning
98
		}
99
 
100
		if (resourceAttributes != null) {
101
			instanceId = StringUtils.trim(resourceAttributes.get(PacmanRuleConstants.INSTANCEID));
102
			try {
103
				List<String> severityList = PacmanUtils.getSeverityVulnerabilitiesByInstanceId(instanceId,ec2WithVulnInfoForS5Url, severityVulnValue);
104
				if (!severityList.isEmpty()) {
105
␣␣␣␣␣
106
					annotation = Annotation.buildAnnotation(ruleParam,Annotation.Type.ISSUE);
107
					annotation.put(PacmanSdkConstants.DESCRIPTION,"An Ec2 instance with vulnerability "+ severityVulnValue + " found!!");
108
					annotation.put(PacmanRuleConstants.SEVERITY, severity);
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'accountQuery' could be declared final
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'accountlist' could be declared final
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'accountArray' could be declared final
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'account' could be declared final
Warning
api/pacman-api-compliance/sr...e/ComplianceApplication.java LocalVariableCouldBeFinal   (kritika/PMD Java)
Local variable 'urlPathHelper' could be declared final
Warning