Filter by:
File Violation Severity
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
54
		if(isPolicyExits) {
55
			Policy policyToUpdate = policyRepository.findById(policyDetails.getPolicyId()).get();
56
			policyToUpdate.setPolicyDesc(policyDetails.getPolicyDesc());
57
			policyToUpdate.setPolicyUrl(policyDetails.getPolicyUrl());
58
			policyToUpdate.setPolicyVersion(policyDetails.getPolicyVersion());
59
			policyToUpdate.setResolution(policyDetails.getResolution());
60
			policyToUpdate.setModifiedDate(new Date());
61
			policyRepository.save(policyToUpdate);
62
			return "Updated Successfully";
63
		} else {
64
			return "Policy does not exits!!";
api/pacman-api-compliance/sr...onfig/CrossOriginFilter.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
api/pacman-api-compliance/sr...onfig/CrossOriginFilter.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
api/pacman-api-compliance/sr...onfig/CrossOriginFilter.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
api/pacman-api-compliance/sr...onfig/CrossOriginFilter.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
api/pacman-api-compliance/sr...onfig/CrossOriginFilter.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (method chain calls)
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (method chain calls)
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (method chain calls)
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (static property access)
Warning
jobs/pacman-rule-engine-2.0/...ons/autofix/AutoFixPlan.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
jobs/pacman-awsrules/src/mai...verityVulnerabilityRule.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (object not created locally)
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (method chain calls)
Warning
jobs/pacman-cloud-discovery/...entoryFetchOrchestrator.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (method chain calls)
Warning
api/pacman-api-admin/src/mai...rvice/PolicyServiceImpl.java LawOfDemeter   (kritika/PMD Java)
Potential violation of Law of Demeter (method chain calls)
Warning