Refresh lint rules (#238)

* Lint

* Color rules

* Update sponsorblock config file

* Small tweak

* Color adjustments
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2023-12-22 19:36:36 -05:00
1 parent cbda8dbf9b
commit e53ad785c6
89 files changed
+445 -468

No files matched your search

@@ -17,9 +17,9 @@ namespace QrCode
function QRErrorCorrectionLevel() as object
return {
L: 1,
M: 0,
Q: 3,
L: 1
M: 0
Q: 3
H: 2
}
end function
@@ -6,50 +6,50 @@ namespace QrCode
m.mode = QrCode.QRMode.AlphaNumeric
m.CHAR_TABLE = {
"0": 0,
"1": 1,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
"8": 8,
"9": 9,
"A": 10,
"B": 11,
"C": 12,
"D": 13,
"E": 14,
"F": 15,
"G": 16,
"H": 17,
"I": 18,
"J": 19,
"K": 20,
"L": 21,
"M": 22,
"N": 23,
"O": 24,
"P": 25,
"Q": 26,
"R": 27,
"S": 28,
"T": 29,
"U": 30,
"V": 31,
"W": 32,
"X": 33,
"Y": 34,
"Z": 35,
" ": 36,
"$": 37,
"%": 38,
"*": 39,
"+": 40,
"-": 41,
".": 42,
"/": 43,
"0": 0
"1": 1
"2": 2
"3": 3
"4": 4
"5": 5
"6": 6
"7": 7
"8": 8
"9": 9
"A": 10
"B": 11
"C": 12
"D": 13
"E": 14
"F": 15
"G": 16
"H": 17
"I": 18
"J": 19
"K": 20
"L": 21
"M": 22
"N": 23
"O": 24
"P": 25
"Q": 26
"R": 27
"S": 28
"T": 29
"U": 30
"V": 31
"W": 32
"X": 33
"Y": 34
"Z": 35
" ": 36
"$": 37
"%": 38
"*": 39
"+": 40
"-": 41
".": 42
"/": 43
":": 44
}
end function
@@ -6,15 +6,15 @@ namespace QrCode
m.mode = QrCode.QRMode.Numeric
m.CHAR_TABLE = {
"0": 0,
"1": 1,
"2": 2,
"3": 3,
"4": 4,
"5": 5,
"6": 6,
"7": 7,
"8": 8,
"0": 0
"1": 1
"2": 2
"3": 3
"4": 4
"5": 5
"6": 6
"7": 7
"8": 8
"9": 9
}
end function
+4 -4
View File
@@ -4,9 +4,9 @@ namespace QrCode
function new()
m.ERROR_CORRECTION_LEVEL_OFFSETS = {
L: 0,
M: 1,
Q: 2,
L: 0
M: 1
Q: 2
H: 3
}
@@ -284,7 +284,7 @@ namespace QrCode
dataCount = rsBlock[index + 2]
for j = 0 to count - 1 step 1
result.push({
totalCount: totalCount,
totalCount: totalCount
dataCount: dataCount
})
end for
+2 -2
View File
@@ -54,8 +54,8 @@ namespace QrCode
black = &H000000ff
bitmap = createObject("roBitmap", {
width: qrSize,
height: qrSize,
width: qrSize
height: qrSize
AlphaEnable: false
})
bitmap.clear(white)
@@ -32,10 +32,10 @@ class ApplicationInfo
function GetAppInfo() as object
if m.appInfo = invalid
m.appInfo = {
id: m.roAppInfo.GetID(),
app_version: m.roAppInfo.GetVersion(),
app_git_commit_hash: m.roAppInfo.GetValue("git_commit_sha"),
lib_version: m.GetLibVersion(),
id: m.roAppInfo.GetID()
app_version: m.roAppInfo.GetVersion()
app_git_commit_hash: m.roAppInfo.GetValue("git_commit_sha")
lib_version: m.GetLibVersion()
lib_git_commit_hash: m.GetLibGitCommitHash()
}
@@ -64,20 +64,20 @@ class ApplicationInfo
function GetDeviceInfo() as object
if m.deviceInfo = invalid
m.deviceInfo = {
model: m.roDeviceInfo.GetModel(),
model_display_name: m.roDeviceInfo.GetModelDisplayName(),
model_type: m.roDeviceInfo.GetModelType(),
model_details: m.roDeviceInfo.GetModelDetails(),
os_version: m.roDeviceInfo.GetOSVersion(),
display_type: m.roDeviceInfo.GetDisplayType(),
display_mode: m.roDeviceInfo.GetDisplayMode(),
display_aspect_ratio: m.roDeviceInfo.GetDisplayAspectRatio(),
display_size: m.roDeviceInfo.GetDisplaySize(),
video_mode: m.roDeviceInfo.GetVideoMode(),
ui_resolution: m.roDeviceInfo.GetUIResolution(),
graphics_platform: m.roDeviceInfo.GetGraphicsPlatform(),
internet_status: m.roDeviceInfo.GetInternetStatus(),
user_country_code: m.roDeviceInfo.GetUserCountryCode(),
model: m.roDeviceInfo.GetModel()
model_display_name: m.roDeviceInfo.GetModelDisplayName()
model_type: m.roDeviceInfo.GetModelType()
model_details: m.roDeviceInfo.GetModelDetails()
os_version: m.roDeviceInfo.GetOSVersion()
display_type: m.roDeviceInfo.GetDisplayType()
display_mode: m.roDeviceInfo.GetDisplayMode()
display_aspect_ratio: m.roDeviceInfo.GetDisplayAspectRatio()
display_size: m.roDeviceInfo.GetDisplaySize()
video_mode: m.roDeviceInfo.GetVideoMode()
ui_resolution: m.roDeviceInfo.GetUIResolution()
graphics_platform: m.roDeviceInfo.GetGraphicsPlatform()
internet_status: m.roDeviceInfo.GetInternetStatus()
user_country_code: m.roDeviceInfo.GetUserCountryCode()
friendly_name: m.roDeviceInfo.GetFriendlyName()
}
end if
@@ -90,7 +90,7 @@ namespace HttpClient
end if
m._queryParams[key] = {
value: valueArray,
value: valueArray
arrayType: arrayType
}
@@ -624,8 +624,8 @@ namespace HttpClientCache
end if
return {
statusCode: metadata.statusCode,
headers: headers,
statusCode: metadata.statusCode
headers: headers
body: body
}
end function
@@ -672,9 +672,9 @@ namespace HttpClientCache
body = ValidString(response.Text())
cacheMetadata = {
timestamp: timestamp,
statusCode: response.StatusCode(),
headers: jsonHeaders.Len(),
timestamp: timestamp
statusCode: response.StatusCode()
headers: jsonHeaders.Len()
body: body.Len()
}
+2 -2
View File
@@ -18,8 +18,8 @@ class XmlObject
function Node(name as string, attributes = invalid as object) as boolean
newNode = {
name: name,
attributes: attributes,
name: name
attributes: attributes
children: []
}
@@ -5,7 +5,7 @@ function DisposableObserveField(node as object, field as string, callback as str
m._disposableObserveFields = []
end if
m._disposableObserveFields.push({
node: node,
node: node
field: field
})
end function
@@ -17,7 +17,7 @@ function DisposableObserveFieldScoped(node as object, field as string, callback
m._disposableObserveFieldsScoped = []
end if
m._disposableObserveFieldsScoped.push({
node: node,
node: node
field: field
})
end function