This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------------------------------------------------------------- | |
To add eslint :- | |
1. npm install -g eslint | |
2. add .eslintsrc to main project directory of react-native project | |
3. add this code to .eslintsrc - | |
{ | |
"extends": "rallycoding" | |
} | |
4. npm install --save-dev eslint-config-rallycoding | |
5. In sublime text install package "Sublime Linter" and "sublimelinter-contrib-eslint" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream.h> | |
#include<conio.h> | |
void main() | |
{ | |
clrscr(); | |
int size,arr[50],j=0,store; | |
cout<<"\n\nEnter the size of the Array"; | |
cin>>size; | |
cout<<"\n\nEnter the array"; | |
for(int i=1;i<=size;i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
int size,arr[50],j=0,store; | |
cout<<"\n\nEnter the size of the Array"; | |
cin>>size; | |
cout<<"\n\nEnter the array"; | |
for(int i=1;i<=size;i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class array { | |
public static void main(String[] args) { | |
int months[]={1,2,3,4,5,6,7,8,9,10,11,12}; | |
System.out.println("Months - "); | |
for(int i=0;i<12;i++) | |
System.out.println(months[i]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class array { | |
public static void main(String[] args) { | |
String name[]=new String[3]; | |
name[0]="Rahul "; | |
name[1]="Malhotra "; | |
name[2]="is a coder"; | |
System.out.println(name[0]+name[1]+name[2]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class array { | |
public static void main(String[] args) { | |
int m[][]=new int[2][2]; | |
for(int i = 0;i<2;i++) | |
{ | |
for(int j=0;j<2;j++) | |
{ | |
m[i][j]=i+j+1; | |
System.out.println(m[i][j]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class array { | |
public static void main(String[] args) { | |
int m1[][]=new int[2][]; | |
m1[0]=new int[1]; | |
m1[1]=new int[2]; | |
m1[0][0]=1; | |
//m1[0][1]=2; | |
m1[1][0]=3; | |
m1[1][1]=4; | |
System.out.println(m1[0][0]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class array { | |
public static void main(String[] args) { | |
int m2[][]={{1},{1,2},{1,2,3}}; | |
System.out.println(m2[0][0]); | |
//System.out.println(m2[0][1]); | |
//System.out.println(m2[0][2]); | |
System.out.println(m2[1][0]); | |
System.out.println(m2[1][1]); | |
//System.out.println(m2[1][2]); | |
System.out.println(m2[2][0]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pmd -d "C:\Users\Rahul Malhotra\Documents\My Lightning Org\src\classes\test.cls" -f html -R "F:\Program Files (x86)\pmd-bin-6.0.0\Ruleset\myrules.xml" -reportfile output.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pmd -d "C:\Users\Rahul Malhotra\Documents\My Lightning Org\src\classes" -f html -R category/apex/design.xml/ExcessiveParameterList -reportfile output.html |
OlderNewer