mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 13:31:18 +08:00
DEV: Fix various rubocop lints (#24749)
These (21 + 3 from previous PRs) are soon to be enabled in rubocop-discourse: Capybara/VisibilityMatcher Lint/DeprecatedOpenSSLConstant Lint/DisjunctiveAssignmentInConstructor Lint/EmptyConditionalBody Lint/EmptyEnsure Lint/LiteralInInterpolation Lint/NonLocalExitFromIterator Lint/ParenthesesAsGroupedExpression Lint/RedundantCopDisableDirective Lint/RedundantRequireStatement Lint/RedundantSafeNavigation Lint/RedundantStringCoercion Lint/RedundantWithIndex Lint/RedundantWithObject Lint/SafeNavigationChain Lint/SafeNavigationConsistency Lint/SelfAssignment Lint/UnreachableCode Lint/UselessMethodDefinition Lint/Void Previous PRs: Lint/ShadowedArgument Lint/DuplicateMethods Lint/BooleanSymbol RSpec/SpecFilePathSuffix
This commit is contained in:
@ -180,8 +180,8 @@ def generate_admin_sidebar_nav_map
|
||||
end
|
||||
end
|
||||
|
||||
# rubocop:disable Lint/Void
|
||||
# Copy this JS to your browser to get the Ember routes.
|
||||
#
|
||||
<<~JS
|
||||
let routeMap = {}
|
||||
for (const [key, value] of Object.entries(
|
||||
@ -207,7 +207,8 @@ def generate_admin_sidebar_nav_map
|
||||
routeMap[key] = route;
|
||||
}
|
||||
console.log(JSON.stringify(routeMap));
|
||||
JS
|
||||
JS
|
||||
# rubocop:enable Lint/Void
|
||||
|
||||
# Paste the output below between ROUTE_MAP.
|
||||
#
|
||||
|
Reference in New Issue
Block a user