Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b108fa

Browse files
author
Denis Levin
committed
Replaced tabs with spaces
1 parent eacded2 commit 0b108fa

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

csharp/ql/src/Likely Bugs/LeapYear/UnsafeYearConstruction.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ import semmle.code.csharp.dataflow.TaintTracking
1414

1515
class UnsafeYearCreationFromArithmeticConfiguration extends TaintTracking::Configuration {
1616
UnsafeYearCreationFromArithmeticConfiguration() { this = "UnsafeYearCreationFromArithmeticConfiguration" }
17-
17+
1818
override predicate isSource(DataFlow::Node source) {
19-
exists( ArithmeticOperation ao, PropertyAccess pa |
20-
ao = source.asExpr() |
19+
exists( ArithmeticOperation ao, PropertyAccess pa |
20+
ao = source.asExpr() |
2121
pa = ao.getAChild*()
2222
and pa.getProperty().getQualifiedName().matches("%DateTime.Year")
2323
)
2424
}
25-
25+
2626
override predicate isSink(DataFlow::Node sink) {
2727
exists( ObjectCreation oc |
2828
sink.asExpr() = oc.getArgumentForName("year")

csharp/ql/src/Likely Bugs/MishandlingJapaneseEra.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ predicate isEraCollectionCreation(CollectionInitializer cs) {
4747
cs.getElementInitializer(0).getValue() = "1867" and
4848
cs.getElementInitializer(1).getValue() = "1911" and
4949
cs.getElementInitializer(2).getValue() = "1925" and
50-
cs.getElementInitializer(3).getValue() = "1988"
50+
cs.getElementInitializer(3).getValue() = "1988"
5151
}
5252

5353
from Expr expr, string message
@@ -56,5 +56,5 @@ where
5656
isDateFromJapaneseCalendarCreation(expr) and message = "DateTime constructed from Japanese calendar with explicit or current era and hard-coded year" or
5757
isEraCollectionCreation(expr) and message = "Hard-coded collection with Japanese era years" or
5858
inEraArrayCreation (expr) and message = "Hard-coded array with Japanese era years" or
59-
isExactEraStartDateCreation(expr) and message = "Hard-coded the beginning of the Japanese Heisei era"
59+
isExactEraStartDateCreation(expr) and message = "Hard-coded the beginning of the Japanese Heisei era"
6060
select expr, message

0 commit comments

Comments
 (0)