Skip to content

Commit 5b30435

Browse files
committed
Add missing # frozen_string_literal: true magic comments
1 parent b6c229a commit 5b30435

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+134
-10
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ Layout/SpaceAroundEqualsInParameterDefault:
399399
Description: Checks that the equals signs in parameter default assignments have or don't have surrounding space depending on configuration.
400400
Enabled: true
401401

402+
Style/FrozenStringLiteralComment:
403+
Enabled: true
404+
402405
# Supports --auto-correct
403406
TruffleRuby/ReplaceWithPrimitiveNil:
404407
Enabled: true

lib/cext/preprocess.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2017, 2023 Oracle and/or its affiliates. All rights reserved. This
24
# code is released under a tri EPL/GPL/LGPL license. You can use it,
35
# redistribute it and/or modify it under the terms of the:

lib/truffle/cgi/escape.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright (c) 2019, 2023 Oracle and/or its affiliates. All rights reserved. This
24
# code is released under a tri EPL/GPL/LGPL license. You can use it,
35
# redistribute it and/or modify it under the terms of the:

lib/truffle/complex.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# frozen_string_literal: true
2+
13
# Complex is available by default

lib/truffle/continuation.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
# truffleruby_primitives: true
23

34
# Copyright (c) 2017, 2023 Oracle and/or its affiliates. All rights reserved. This

lib/truffle/coverage.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
# truffleruby_primitives: true
23

34
# Copyright (c) 2015, 2023 Oracle and/or its affiliates. All rights reserved. This

lib/truffle/digest.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
# truffleruby_primitives: true
23

34
# Copyright (c) 2015, 2023 Oracle and/or its affiliates. All rights reserved. This

lib/truffle/digest/bubblebabble.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
# truffleruby_primitives: true
23

34
# Copyright (c) 2015, 2023 Oracle and/or its affiliates. All rights reserved. This

lib/truffle/digest/md5.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# frozen_string_literal: true
2+
13
require 'digest'

lib/truffle/digest/rmd160.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# frozen_string_literal: true
2+
13
require 'digest'

0 commit comments

Comments
 (0)