Skip to content

Commit 9508676

Browse files
committed
style: Fix RuboCop lint errors - array spacing and percent literal delimiters
AUTO-FIXED BY RUBOCOP: - app/services/tech_stack_parser.rb: Add spaces inside array brackets * blockchain: [ "Rust", "Solidity", "Move" ] * web: [ "JavaScript", "TypeScript", "HTML", "CSS", "SCSS" ] * backend: [ "Ruby", "Python", "Go", "Java", "Kotlin", "PHP" ] * mobile: [ "Swift", "Kotlin", "Dart" ] * infra: [ "Shell", "Dockerfile", "HCL" ] * data: [ "Python", "R", "Julia" ] * systems: [ "C", "C++", "Rust", "Go" ] - config/initializers/content_security_policy.rb: Change %w() to %w[] * %w(script-src style-src) → %w[script-src style-src] RUBOCOP STATUS: ✅ 37 files inspected, 0 offenses detected ✅ All code style checks passing
1 parent aacf36a commit 9508676

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/services/tech_stack_parser.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
class TechStackParser
44
# Language categorization based on usage patterns
55
CATEGORIES = {
6-
blockchain: ["Rust", "Solidity", "Move"],
7-
web: ["JavaScript", "TypeScript", "HTML", "CSS", "SCSS"],
8-
backend: ["Ruby", "Python", "Go", "Java", "Kotlin", "PHP"],
9-
mobile: ["Swift", "Kotlin", "Dart"],
10-
infra: ["Shell", "Dockerfile", "HCL"],
11-
data: ["Python", "R", "Julia"],
12-
systems: ["C", "C++", "Rust", "Go"]
6+
blockchain: [ "Rust", "Solidity", "Move" ],
7+
web: [ "JavaScript", "TypeScript", "HTML", "CSS", "SCSS" ],
8+
backend: [ "Ruby", "Python", "Go", "Java", "Kotlin", "PHP" ],
9+
mobile: [ "Swift", "Kotlin", "Dart" ],
10+
infra: [ "Shell", "Dockerfile", "HCL" ],
11+
data: [ "Python", "R", "Julia" ],
12+
systems: [ "C", "C++", "Rust", "Go" ]
1313
}.freeze
1414

1515
def initialize(repos = nil)

config/initializers/content_security_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Generate session nonces for permitted importmap, inline scripts, and inline styles.
2020
config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
21-
config.content_security_policy_nonce_directives = %w(script-src style-src)
21+
config.content_security_policy_nonce_directives = %w[script-src style-src]
2222

2323
# Automatically add `nonce` to `javascript_tag`, `javascript_include_tag`, and `stylesheet_link_tag`
2424
# if the corresponding directives are specified in `content_security_policy_nonce_directives`.

0 commit comments

Comments
 (0)