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

Test inline comments4 #388

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion force-app/main/default/classes/CandidateGradeController.cls
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,34 @@ public class CandidateGradeController {
public CandidateGradeController() {
}


// ..whatever
localStorage.setItem("login", login); // Noncompliant
sessionStorage.setItem("sessionId", sessionId); // Noncompliant
// ..whatever

// comment 22222 gianc
@AuraEnabled
public static CandidateGradeInfo getCandidateGrade(Id contactId) {

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 6; i++) {
Contact currentContactloop2 = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactl3 = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
User currentUser = [SELECT Seniority__c FROM User where Id = :UserInfo.getUserId()];
Expand Down
164 changes: 164 additions & 0 deletions force-app/main/default/classes/CandidateGradeController2.cls
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,172 @@ public without sharing class CandidateGradeController2 {
public CandidateGradeController2() {
}

// ..whatever
localStorage.setItem("login", login); // Noncompliant
sessionStorage.setItem("sessionId", sessionId); // Noncompliant
// ..whatever

@AuraEnabled
public static CandidateGradeInfo getCandidateGrade4(Id contactId) {

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}


for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}
for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}
for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}
for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}
for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}
for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}
for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 6; i++) {
Contact currentContactloop2 = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactl3 = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}
Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
User currentUser = [SELECT Seniority__c FROM User where Id = :UserInfo.getUserId()];
String temperature = '';
Expand Down
25 changes: 25 additions & 0 deletions force-app/main/default/classes/CandidateGradeController3.cls
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,33 @@ public without sharing class CandidateGradeController3 {
public CandidateGradeController3() {
}

// ..whatever
localStorage.setItem("login", login); // Noncompliant
sessionStorage.setItem("sessionId", sessionId); // Noncompliant
// ..whatever

@AuraEnabled
public static CandidateGradeInfo getCandidateGrade4(Id contactId) {

for (int i = 0; i < 5; i++) {
Contact currentContactloo = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 6; i++) {
Contact currentContactloop2 = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContactl3 = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}

for (int i = 0; i < 5; i++) {
Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
}
Contact currentContact = [SELECT Name, Salary__c, NextAvailableDate__c FROM Contact where Id = :contactId];
User currentUser = [SELECT Seniority__c FROM User where Id = :UserInfo.getUserId()];
String temperature = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,16 @@ import findRecords from '@salesforce/apex/LookupController.findRecords';

import New from '@salesforce/label/c.New';

const x
const x
const x
const x
const x
const x

export default class LightningInputLookup extends LightningElement {


/*all custom labels*/
labels={
New
Expand Down