2022-01-21 02:55:01 +05:30
|
|
|
#
|
|
|
|
# Lint
|
|
|
|
#
|
|
|
|
|
|
|
|
# Exclude assigns for ECR files
|
|
|
|
Lint/UselessAssign:
|
|
|
|
Excluded:
|
|
|
|
- src/invidious.cr
|
|
|
|
- src/invidious/helpers/errors.cr
|
|
|
|
- src/invidious/routes/**/*.cr
|
|
|
|
|
|
|
|
# Ignore false negative (if !db.query_one?...)
|
|
|
|
Lint/UnreachableCode:
|
|
|
|
Excluded:
|
|
|
|
- src/invidious/database/base.cr
|
|
|
|
|
|
|
|
# Ignore shadowed variable `key` (it works for now, and that's
|
|
|
|
# a sensitive part of the code)
|
|
|
|
Lint/ShadowingOuterLocalVar:
|
|
|
|
Excluded:
|
|
|
|
- src/invidious/helpers/tokens.cr
|
|
|
|
|
2024-06-17 01:42:15 +05:30
|
|
|
Lint/NotNil:
|
|
|
|
Enabled: false
|
|
|
|
|
2024-07-18 01:22:13 +05:30
|
|
|
Lint/SpecFilename:
|
|
|
|
Excluded:
|
|
|
|
- spec/parsers_helper.cr
|
|
|
|
|
2022-01-21 02:55:01 +05:30
|
|
|
|
|
|
|
#
|
|
|
|
# Style
|
|
|
|
#
|
|
|
|
|
|
|
|
Style/RedundantBegin:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
Style/RedundantReturn:
|
|
|
|
Enabled: false
|
|
|
|
|
2024-06-17 01:42:15 +05:30
|
|
|
Style/ParenthesesAroundCondition:
|
|
|
|
Enabled: false
|
|
|
|
|
|
|
|
# This requires a rewrite of most data structs (and their usage) in Invidious.
|
2024-07-12 09:15:27 +05:30
|
|
|
Naming/QueryBoolMethods:
|
2024-06-17 01:42:15 +05:30
|
|
|
Enabled: false
|
|
|
|
|
2024-07-12 09:45:45 +05:30
|
|
|
Naming/AccessorMethodName:
|
|
|
|
Enabled: false
|
|
|
|
|
2024-07-18 00:47:05 +05:30
|
|
|
Naming/BlockParameterName:
|
|
|
|
Enabled: false
|
|
|
|
|
2024-07-12 09:17:24 +05:30
|
|
|
# Hides TODO comment warnings.
|
|
|
|
#
|
|
|
|
# Call `bin/ameba --only Documentation/DocumentationAdmonition` to
|
|
|
|
# list them
|
|
|
|
Documentation/DocumentationAdmonition:
|
|
|
|
Enabled: false
|
|
|
|
|
2022-01-21 02:55:01 +05:30
|
|
|
|
|
|
|
#
|
|
|
|
# Metrics
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ignore function complexity (number of if/else & case/when branches)
|
|
|
|
# For some functions that can hardly be simplified for now
|
|
|
|
Metrics/CyclomaticComplexity:
|
2024-06-17 01:42:15 +05:30
|
|
|
Enabled: false
|