diff --git a/.rubocop.yml b/.rubocop.yml index 2f487ff..3d33a9d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -21,6 +21,8 @@ inherit_gem: # Extra Style/FrozenStringLiteralComment: Enabled: true +Layout/SpaceInsideHashLiteralBraces: + Enabled: true ## # Disabled diff --git a/Rakefile.rb b/Rakefile.rb index 036c745..fd5a517 100644 --- a/Rakefile.rb +++ b/Rakefile.rb @@ -89,7 +89,7 @@ end namespace :lint do desc "Run rubocop (Ruby)" task :rubocop do - sh "bundle exec rubocop lib/ src/" + sh "bundle exec rubocop" end desc "Run eslint (TypeScript)" diff --git a/Rules b/Rules index 165e912..e742703 100644 --- a/Rules +++ b/Rules @@ -39,8 +39,8 @@ require_rules "rules/assets" require_rules "rules/pages/surah/redirect" require_rules "rules/pages/surah/stream", {locales:, i18n:, slugs:} require_rules "rules/pages/surah/index", {locales:, i18n:} -require_rules "rules/pages/surah/random", {locales:, i18n:,slugs:} -require_rules "rules/pages/surah/id_redirect", {locales:, i18n:,slugs:} +require_rules "rules/pages/surah/random", {locales:, i18n:, slugs:} +require_rules "rules/pages/surah/id_redirect", {locales:, i18n:, slugs:} ## # Inline CSS / JSON rules