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

Feature/review #36

Closed
wants to merge 2 commits into from
Closed

Feature/review #36

wants to merge 2 commits into from

Conversation

packocz
Copy link
Owner

@packocz packocz commented Jan 9, 2023

No description provided.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 5 rule violations in your changes with severity as high as 3.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 5 rule violations in your changes with severity as high as 3.

@@ -14,6 +14,7 @@ public with sharing class InvestmentStatisticsJob implements Database.Batchable<
InvestmentStatisticsService stats = new InvestmentStatisticsService(investment.Id, this.startDate);
stats.process();
stats.save();
System.debug('test');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid debug statements since they impact on performance (pmd - AvoidDebugStatements - Severity: 3)

@@ -14,6 +14,7 @@ public with sharing class InvestmentStatisticsJob implements Database.Batchable<
InvestmentStatisticsService stats = new InvestmentStatisticsService(investment.Id, this.startDate);
stats.process();
stats.save();
System.debug('test');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calls to System.debug should specify a logging level. (pmd - DebugsShouldUseLoggingLevel - Severity: 3)

@@ -14,6 +14,7 @@ public with sharing class InvestmentStatisticsJob implements Database.Batchable<
InvestmentStatisticsService stats = new InvestmentStatisticsService(investment.Id, this.startDate);
stats.process();
stats.save();
System.debug('test');
}
}
public void finish(Database.BatchableContext bc) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid empty block statements. (pmd - EmptyStatementBlock - Severity: 3)

@@ -31,6 +31,7 @@ public with sharing class InvestmentStatisticsService {

Decimal previousTotal;
while (weekNumber <= lastWeekNumber) {
System.debug('test');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid debug statements since they impact on performance (pmd - AvoidDebugStatements - Severity: 3)

@@ -31,6 +31,7 @@ public with sharing class InvestmentStatisticsService {

Decimal previousTotal;
while (weekNumber <= lastWeekNumber) {
System.debug('test');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calls to System.debug should specify a logging level. (pmd - DebugsShouldUseLoggingLevel - Severity: 3)

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer did not find any rule violations

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer did not find any rule violations

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 1 rule violations in your changes with severity as high as 1.

@@ -2,6 +2,7 @@
public without sharing class TA_InvestmentUpdate_SetCurrency implements packocz.TriggerAction.BeforeInsert {
@namespaceAccessible
public void beforeInsert(List<InvestmentUpdate__c> newList) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source Type: TA_InvestmentUpdate_SetCurrency, Source Method: beforeInsert, Sink File: invest-app/main/default/classes/TA_InvestmentUpdate_SetCurrency.cls: 11 ### FLS validation is missing for [READ] operation on [Investment__c] with field(s) [CurrencyIsoCode]. (sfge - ApexFlsViolationRule - Severity: 1)

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 1 rule violations in your changes with severity as high as 1.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

@@ -2,6 +2,7 @@
public without sharing class TA_InvestmentUpdate_SetCurrency implements packocz.TriggerAction.BeforeInsert {
@namespaceAccessible
public void beforeInsert(List<InvestmentUpdate__c> newList) {
System.debug('test');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid debug statements since they impact on performance (pmd - AvoidDebugStatements - Severity: 3)

@@ -2,6 +2,7 @@
public without sharing class TA_InvestmentUpdate_SetCurrency implements packocz.TriggerAction.BeforeInsert {
@namespaceAccessible
public void beforeInsert(List<InvestmentUpdate__c> newList) {
System.debug('test');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calls to System.debug should specify a logging level. (pmd - DebugsShouldUseLoggingLevel - Severity: 3)

@@ -1,3 +1,4 @@
trigger InvestmentUpdate on InvestmentUpdate__c(before insert, after insert, after update, after delete) {
System.debug('test');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid debug statements since they impact on performance (pmd - AvoidDebugStatements - Severity: 3)

@@ -1,3 +1,4 @@
trigger InvestmentUpdate on InvestmentUpdate__c(before insert, after insert, after update, after delete) {
System.debug('test');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calls to System.debug should specify a logging level. (pmd - DebugsShouldUseLoggingLevel - Severity: 3)

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer did not find any rule violations

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer did not find any rule violations

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 3.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 99.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 99.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer did not find any rule violations

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer did not find any rule violations

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer did not find any rule violations

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 99.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 9 rule violations in your changes with severity as high as 99.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 7 rule violations in your changes with severity as high as 99.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 7 rule violations in your changes with severity as high as 99.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 7 rule violations in your changes with severity as high as 99.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salesforce Code Analyzer identified 5 rule violations in your changes with severity as high as 99.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant