Skip to content

Commit a7d6bee

Browse files
committed
Fix rubocop Style/FrozenStringLiteralComment
Addressing: C: Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true
1 parent 4e8a1f0 commit a7d6bee

Some content is hidden

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

42 files changed

+46
-402
lines changed

Rakefile

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
require 'bundler'
24

35
Bundler::GemHelper.install_tasks :name => 'openscap'

lib/openscap.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#
2-
# Copyright (c) 2014 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
require 'openscap/openscap'
134
require 'openscap/exceptions'

lib/openscap/ds/arf.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#
2-
# Copyright (c) 2014--2016 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
require 'openscap/ds/sds'
134
require 'openscap/source'

lib/openscap/ds/sds.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#
2-
# Copyright (c) 2014 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
require 'openscap/source'
134

lib/openscap/exceptions.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#
2-
# Copyright (c) 2014 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
module OpenSCAP
134
class OpenSCAPError < StandardError

lib/openscap/libc.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#
2-
# Copyright (c) 2014 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
require 'ffi'
134

lib/openscap/openscap.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#
2-
# Copyright (c) 2014--2016 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
require 'ffi'
134

lib/openscap/source.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#
2-
# Copyright (c) 2014--2016 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
require 'openscap'
134

lib/openscap/text.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
#
2-
# Copyright (c) 2014 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
module OpenSCAP
134
class Text

lib/openscap/version.rb

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
#
2-
# Copyright (c) 2014--2018 Red Hat Inc.
3-
#
4-
# This software is licensed to you under the GNU General Public License,
5-
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
6-
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
7-
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
8-
# along with this software; if not, see
9-
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
10-
#
1+
# frozen_string_literal: true
112

123
module OpenSCAP
13-
VERSION = '0.4.8'.freeze
4+
VERSION = '0.4.8'
145
end

0 commit comments

Comments
 (0)