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
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
98
			String accountlist = Arrays.asList(accountInfo.split(",")).stream().collect(Collectors.joining("','"));
99
			accounts = rdsDBManager.executeQuery(accountQuery +" AND accountid IN ('"+ accountlist+ "')");␣
100
		}
101
		// No info from DB. Okay lets use what parameter we get.
102
		if(accounts.isEmpty()){
103
			String[] accountArray = accountInfo.split(",");
104
			for(String account : accountArray){
105
				Map<String,String> accountMap = new HashMap<>();
106
				accountMap.put(InventoryConstants.ACCOUNT_ID,account);
107
				accountMap.put(InventoryConstants.ACCOUNT_NAME,"");
108
				accounts.add(accountMap);
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