advent-of-code's People
advent-of-code's Issues
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 28
- Code:
} else if (program[i] == 2) {
Currently on:
- Commit: 94a1d44
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 28
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 104
- Code:
if (runTests() == true) {
Currently on:
- Commit: 94a1d44
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 104
Generic Object Injection Sink
Codacy detected an issue:
Message: Generic Object Injection Sink
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 29
- Code:
doubleFound = pwArray[i - 1] === pwArray[i] && pwArray[i] !== pwArray[i - 2] && pwArray[i] !== pwArray[i + 1];
Currently on:
- Commit: 7d2876c
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 29
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 74
- Code:
console.log(true == containsDoubleDigit(111111));
Currently on:
- Commit: 94a1d44
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 74
Lines should not have trailing semicolons.
Codacy detected an issue:
Message: Lines should not have trailing semicolons.
Occurred on:
- Commit: 93ce478
- File: Swift/2019/Day02/Day02.swift
- LineNum: 7
- Code:
let str = try! String(contentsOfFile: "2019/Day02/input.txt");
Currently on:
- Commit: 7d2876c
- File: Swift/2019/Day02/Day02.swift
- LineNum: 7
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 62
- Code:
if (part == 1 && containsMultiDigit(i) == true) {
Currently on:
- Commit: 94a1d44
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 62
Add a 'protected' constructor or the 'static' keyword to the class declaration.
Codacy detected an issue:
Message: Add a 'protected' constructor or the 'static' keyword to the class declaration.
Occurred on:
- Commit: 93ce478
- File: CSharp/Program.cs
- LineNum: 5
- Code:
class Program
Currently on:
- Commit: 94a1d44
- File: CSharp/Program.cs
- LineNum: 5
All classes, interfaces, enums and annotations must belong to a named package
Codacy detected an issue:
Message: All classes, interfaces, enums and annotations must belong to a named package
Occurred on:
- Commit: 93ce478
- File: Java/else/A1.java
- LineNum: 1
- Code:
public class A1 {
Currently on:
- Commit: e7c64f1
- File: Java/else/A1.java
- LineNum: 1
Unexpected console statement.
Codacy detected an issue:
Message: Unexpected console statement.
Occurred on:
- Commit: da53f4e
- File: JavaScript/2018/Day01/Day01.js
- LineNum: 39
- Code:
console.log(
Currently on:
- Commit: 7d2876c
- File: JavaScript/2018/Day01/Day01.js
- LineNum: 39
Avoid unused imports such as 'java.net.URISyntaxException'
Codacy detected an issue:
Message: Avoid unused imports such as 'java.net.URISyntaxException'
Occurred on:
- Commit: 93ce478
- File: Java/2019/Day02/Day02.java
- LineNum: 5
- Code:
import java.net.URISyntaxException;
Currently on:
- Commit: a5696ac
- File: Java/2019/Day02/Day02.java
- LineNum: 5
Always provide a base when using parseInt() functions
Codacy detected an issue:
Message: Always provide a base when using parseInt() functions
Currently on:
- Commit: 93ce478
- File: JavaScript/2018/Day01/Day01.js
- LineNum: 15
Force tries should be avoided.
Codacy detected an issue:
Message: Force tries should be avoided.
Currently on:
- Commit: 94a1d44
- File: Swift/2018/Day01/Day01.swift
- LineNum: 7
Expected { after 'if' condition.
Codacy detected an issue:
Message: Expected { after 'if' condition.
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 21
- Code:
if (pwArray[i - 1] > pwArray[i]) return false;
Currently on:
- Commit: 63602aa
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 21
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: 72f45fd
- File: JavaScript/2019/Day01/Day01.js
- LineNum: 52
- Code:
console.log("Test A1: " + (2 == calcFuelForModule(12)) + " (" + calcFuelForModule(12) + ")");
Currently on:
- Commit: da53f4e
- File: JavaScript/2019/Day01/Day01.js
- LineNum: 51
'check' was used before it was defined.
Codacy detected an issue:
Message: 'check' was used before it was defined.
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 9
- Code:
if (check(pw,true)) passwords2.push(pw);
Currently on:
- Commit: 63602aa
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 9
Strings must use doublequote.
Codacy detected an issue:
Message: Strings must use doublequote.
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 5
- Code:
const fs = require('fs');
Currently on:
- Commit: e7c64f1
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 5
Unused import - java.io.File.
Codacy detected an issue:
Message: Unused import - java.io.File.
Occurred on:
- Commit: 944eb2f
- File: Java/2018/Day01/Day01.java
- LineNum: 1
- Code:
import java.io.File;
Currently on:
- Commit: e7c64f1
- File: Java/2018/Day01/Day01.java
- LineNum: 1
Force tries should be avoided.
Codacy detected an issue:
Message: Force tries should be avoided.
Occurred on:
- Commit: 93ce478
- File: Swift/2019/Day02/Day02.swift
- LineNum: 7
- Code:
let str = try! String(contentsOfFile: "2019/Day02/input.txt");
Currently on:
- Commit: 7d2876c
- File: Swift/2019/Day02/Day02.swift
- LineNum: 7
Generic Object Injection Sink
Codacy detected an issue:
Message: Generic Object Injection Sink
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 35
- Code:
program[resultPos] = result;
Currently on:
- Commit: e7c64f1
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 35
Unexpected console statement.
Codacy detected an issue:
Message: Unexpected console statement.
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 33
- Code:
console.log("Error: opcode not found!");
Currently on:
- Commit: e7c64f1
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 33
Remove this logging statement.
Codacy detected an issue:
Message: Remove this logging statement.
Occurred on:
- Commit: 93ce478
- File: CSharp/Program.cs
- LineNum: 9
- Code:
Console.WriteLine("Hello World!");
Currently on:
- Commit: e7c64f1
- File: CSharp/Program.cs
- LineNum: 10
All classes, interfaces, enums and annotations must belong to a named package
Codacy detected an issue:
Message: All classes, interfaces, enums and annotations must belong to a named package
Occurred on:
- Commit: 93ce478
- File: Java/2019/Day02/Day02.java
- LineNum: 12
- Code:
public class Day02 {
Currently on:
- Commit: e7c64f1
- File: Java/2019/Day02/Day02.java
- LineNum: 11
Always provide a base when using parseInt() functions
Codacy detected an issue:
Message: Always provide a base when using parseInt() functions
Occurred on:
- Commit: 944eb2f
- File: JavaScript/2019/Day01/Day01.js
- LineNum: 17
- Code:
let mass = parseInt(massPerModule[i]);
Currently on:
- Commit: 94a1d44
- File: JavaScript/2019/Day01/Day01.js
- LineNum: 28
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 26
- Code:
if (program[i] == 1) {
Currently on:
- Commit: 94a1d44
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 26
Strings must use doublequote.
Codacy detected an issue:
Message: Strings must use doublequote.
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 6
- Code:
let inputArr = fs.readFileSync(input).toString().split('\n');
Currently on:
- Commit: e7c64f1
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 6
Generic Object Injection Sink
Codacy detected an issue:
Message: Generic Object Injection Sink
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 35
- Code:
program[resultPos] = result;
Currently on:
- Commit: 7d2876c
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 35
Avoid unused imports such as 'java.util.HashSet'
Codacy detected an issue:
Message: Avoid unused imports such as 'java.util.HashSet'
Occurred on:
- Commit: 93ce478
- File: Java/2019/Day02/Day02.java
- LineNum: 9
- Code:
import java.util.HashSet;
Currently on:
- Commit: e7c64f1
- File: Java/2019/Day02/Day02.java
- LineNum: 8
Unused import - java.nio.charset.Charset.
Codacy detected an issue:
Message: Unused import - java.nio.charset.Charset.
Occurred on:
- Commit: 944eb2f
- File: Java/2018/Day01/Day01.java
- LineNum: 6
- Code:
import java.nio.charset.Charset;
Currently on:
- Commit: e7c64f1
- File: Java/2018/Day01/Day01.java
- LineNum: 6
Expected { after 'if' condition.
Codacy detected an issue:
Message: Expected { after 'if' condition.
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 8
- Code:
if (check(pw)) passwords.push(pw);
Currently on:
- Commit: 63602aa
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 8
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 65
- Code:
if (part == 2 && containsDoubleDigit(i) == true) {
Currently on:
- Commit: 94a1d44
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 65
Files should have a single trailing newline.
Codacy detected an issue:
Message: Files should have a single trailing newline.
Occurred on:
- Commit: 93ce478
- File: Swift/2019/Day02/Day02.swift
- LineNum: 12
- Code:
println(str);
Currently on:
- Commit: 94a1d44
- File: Swift/2019/Day02/Day02.swift
- LineNum: 12
Avoid unused imports such as 'java.util.List'
Codacy detected an issue:
Message: Avoid unused imports such as 'java.util.List'
Occurred on:
- Commit: 93ce478
- File: Java/2019/Day02/Day02.java
- LineNum: 10
- Code:
import java.util.List;
Currently on:
- Commit: e7c64f1
- File: Java/2019/Day02/Day02.java
- LineNum: 9
Avoid unnecessary comparisons in boolean expressions
Codacy detected an issue:
Message: Avoid unnecessary comparisons in boolean expressions
Occurred on:
- Commit: 944eb2f
- File: Java/2018/Day01/Day01.java
- LineNum: 63
- Code:
if (duplicate == false) {
Currently on:
- Commit: c35eaae
- File: Java/2018/Day01/Day01.java
- LineNum: 63
Unexpected console statement.
Codacy detected an issue:
Message: Unexpected console statement.
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 33
- Code:
console.log("Error: opcode not found!");
Currently on:
- Commit: 7d2876c
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 33
Unexpected console statement.
Codacy detected an issue:
Message: Unexpected console statement.
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 71
- Code:
console.log(candidates.length);
Currently on:
- Commit: 63602aa
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 71
Expected '===' and instead saw '=='.
Codacy detected an issue:
Message: Expected '===' and instead saw '=='.
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 74
- Code:
console.log(true == containsDoubleDigit(111111));
Currently on:
- Commit: 7d2876c
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 74
Unused import - java.net.URISyntaxException.
Codacy detected an issue:
Message: Unused import - java.net.URISyntaxException.
Occurred on:
- Commit: 944eb2f
- File: Java/2018/Day01/Day01.java
- LineNum: 5
- Code:
import java.net.URISyntaxException;
Currently on:
- Commit: e7c64f1
- File: Java/2018/Day01/Day01.java
- LineNum: 5
Avoid unused imports such as 'java.io.File'
Codacy detected an issue:
Message: Avoid unused imports such as 'java.io.File'
Occurred on:
- Commit: 93ce478
- File: Java/2019/Day02/Day02.java
- LineNum: 1
- Code:
import java.io.File;
Currently on:
- Commit: e7c64f1
- File: Java/2019/Day02/Day02.java
- LineNum: 1
Found fs.readFileSync with non literal argument at index 0
Codacy detected an issue:
Message: Found fs.readFileSync with non literal argument at index 0
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 6
- Code:
let inputArr = fs.readFileSync(input).toString().split('\n');
Currently on:
- Commit: 7d2876c
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 6
Unexpected console statement.
Codacy detected an issue:
Message: Unexpected console statement.
Occurred on:
- Commit: da53f4e
- File: JavaScript/2018/Day01/Day01.js
- LineNum: 37
- Code:
console.log("The resulting frequency after 1 loop is: " + sum);
Currently on:
- Commit: a99a97a
- File: JavaScript/2018/Day01/Day01.js
- LineNum: 37
Lines should not have trailing semicolons.
Codacy detected an issue:
Message: Lines should not have trailing semicolons.
Occurred on:
- Commit: 93ce478
- File: Swift/2019/Day02/Day02.swift
- LineNum: 10
- Code:
println(str);
Currently on:
- Commit: 94a1d44
- File: Swift/2019/Day02/Day02.swift
- LineNum: 10
Generic Object Injection Sink
Codacy detected an issue:
Message: Generic Object Injection Sink
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 38
- Code:
if (numArr[i] != currentNum) {
Currently on:
- Commit: 63602aa
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 38
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 39
- Code:
if (countCurrentNum == 2) {
Currently on:
- Commit: 94a1d44
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 39
Use ===/!== to compare with true/false or Numbers
Codacy detected an issue:
Message: Use ===/!== to compare with true/false or Numbers
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 49
- Code:
if (countCurrentNum % 2 == 0) {
Currently on:
- Commit: c4e5142
- File: JavaScript/2019/Day04/Day04.js
- LineNum: 49
Avoid unnecessary comparisons in boolean expressions
Codacy detected an issue:
Message: Avoid unnecessary comparisons in boolean expressions
Occurred on:
- Commit: 944eb2f
- File: Java/2018/Day01/Day01.java
- LineNum: 76
- Code:
if (duplicate == true) {
Currently on:
- Commit: 431a26a
- File: Java/2018/Day01/Day01.java
- LineNum: 76
All classes, interfaces, enums and annotations must belong to a named package
Codacy detected an issue:
Message: All classes, interfaces, enums and annotations must belong to a named package
Occurred on:
- Commit: 93ce478
- File: Java/2019/Day02/Day02.java
- LineNum: 12
- Code:
public class Day02 {
Currently on:
- Commit: c4e5142
- File: Java/2019/Day02/Day02.java
- LineNum: 12
Unexpected console statement.
Codacy detected an issue:
Message: Unexpected console statement.
Occurred on:
- Commit: fea30ab
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 13
- Code:
console.log(
Part 2: ${passwords2.length} passwords);
Currently on:
- Commit: 63602aa
- File: JavaScript/2019/Day04/Day04b.js
- LineNum: 13
The numeric literal '19690720' will have at different value at runtime.
Codacy detected an issue:
Message: The numeric literal '19690720' will have at different value at runtime.
Occurred on:
- Commit: dc0aabb
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 51
- Code:
let seek = 19690720;
Currently on:
- Commit: a077e11
- File: JavaScript/2019/Day02/Day02.js
- LineNum: 51
All classes, interfaces, enums and annotations must belong to a named package
Codacy detected an issue:
Message: All classes, interfaces, enums and annotations must belong to a named package
Occurred on:
- Commit: 944eb2f
- File: Java/2018/Day01/Day01.java
- LineNum: 11
- Code:
public class Day01 {
Currently on:
- Commit: a077e11
- File: Java/2018/Day01/Day01.java
- LineNum: 11
Remove this logging statement.
Codacy detected an issue:
Message: Remove this logging statement.
Occurred on:
- Commit: 93ce478
- File: CSharp/Program.cs
- LineNum: 9
- Code:
Console.WriteLine("Hello World!");
Currently on:
- Commit: 94a1d44
- File: CSharp/Program.cs
- LineNum: 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.