Skip to content

Commit

Permalink
Remove the unsupported frozen_string_literal comment from jbuilder te…
Browse files Browse the repository at this point in the history
…mplate

Was generating this warning:

```
test/sandbox/app/components/jbuilder_component.json.jbuilder:1: warning: `frozen_string_literal' is ignored after any tokens
```

See also: https://bugs.ruby-lang.org/issues/16602
  • Loading branch information
elia committed Feb 13, 2022
1 parent 2988ec9 commit 584d5db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ Layout/DotPosition:
Layout/LineLength:
Max: 120
Enabled: true

Style/FrozenStringLiteralComment:
Exclude:
- test/sandbox/app/components/jbuilder_component.json.jbuilder # not yet supported inside jbuilder templates
2 changes: 0 additions & 2 deletions test/sandbox/app/components/jbuilder_component.json.jbuilder
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# frozen_string_literal: true

json.message @message
json.conent content

0 comments on commit 584d5db

Please sign in to comment.