summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/stylesheet
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-05 17:19:41 +0200
committerGeremia Taglialatela <[email protected]>2023-04-06 09:55:10 +0200
commit633141067e99fd1798d3591293fe2ac53d157682 (patch)
treea5488f00eeced9b1c6f5b4d3fff9983defb8fbf4 /lib/axlsx/stylesheet
parentdc579ba8d01720e0ccfa8b7ba5e86be0bc518056 (diff)
downloadcaxlsx-633141067e99fd1798d3591293fe2ac53d157682.tar.gz
caxlsx-633141067e99fd1798d3591293fe2ac53d157682.zip
Fix Style/Encoding offenses
``` rubocop --only Style/Encoding -a ```
Diffstat (limited to 'lib/axlsx/stylesheet')
-rw-r--r--lib/axlsx/stylesheet/border.rb1
-rw-r--r--lib/axlsx/stylesheet/border_pr.rb1
-rw-r--r--lib/axlsx/stylesheet/cell_alignment.rb1
-rw-r--r--lib/axlsx/stylesheet/cell_protection.rb1
-rw-r--r--lib/axlsx/stylesheet/cell_style.rb1
-rw-r--r--lib/axlsx/stylesheet/color.rb1
-rw-r--r--lib/axlsx/stylesheet/dxf.rb1
-rw-r--r--lib/axlsx/stylesheet/fill.rb1
-rw-r--r--lib/axlsx/stylesheet/font.rb1
-rw-r--r--lib/axlsx/stylesheet/gradient_fill.rb1
-rw-r--r--lib/axlsx/stylesheet/gradient_stop.rb1
-rw-r--r--lib/axlsx/stylesheet/num_fmt.rb1
-rw-r--r--lib/axlsx/stylesheet/pattern_fill.rb1
-rw-r--r--lib/axlsx/stylesheet/styles.rb1
-rw-r--r--lib/axlsx/stylesheet/table_style.rb1
-rw-r--r--lib/axlsx/stylesheet/table_style_element.rb1
-rw-r--r--lib/axlsx/stylesheet/table_styles.rb1
-rw-r--r--lib/axlsx/stylesheet/xf.rb1
18 files changed, 0 insertions, 18 deletions
diff --git a/lib/axlsx/stylesheet/border.rb b/lib/axlsx/stylesheet/border.rb
index 0a823c7a..bf342c7f 100644
--- a/lib/axlsx/stylesheet/border.rb
+++ b/lib/axlsx/stylesheet/border.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# This class details a border used in Office Open XML spreadsheet styles.
class Border
diff --git a/lib/axlsx/stylesheet/border_pr.rb b/lib/axlsx/stylesheet/border_pr.rb
index cba0e475..7c32af13 100644
--- a/lib/axlsx/stylesheet/border_pr.rb
+++ b/lib/axlsx/stylesheet/border_pr.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# A border part.
class BorderPr
diff --git a/lib/axlsx/stylesheet/cell_alignment.rb b/lib/axlsx/stylesheet/cell_alignment.rb
index f1675141..8f93f4d7 100644
--- a/lib/axlsx/stylesheet/cell_alignment.rb
+++ b/lib/axlsx/stylesheet/cell_alignment.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
diff --git a/lib/axlsx/stylesheet/cell_protection.rb b/lib/axlsx/stylesheet/cell_protection.rb
index ac32cb96..94648de3 100644
--- a/lib/axlsx/stylesheet/cell_protection.rb
+++ b/lib/axlsx/stylesheet/cell_protection.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# CellProtection stores information about locking or hiding cells in spreadsheet.
# @note Using Styles#add_style is the recommended way to manage cell protection.
diff --git a/lib/axlsx/stylesheet/cell_style.rb b/lib/axlsx/stylesheet/cell_style.rb
index 2e8da880..e1d4e0ff 100644
--- a/lib/axlsx/stylesheet/cell_style.rb
+++ b/lib/axlsx/stylesheet/cell_style.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# CellStyle defines named styles that reference defined formatting records and can be used in your worksheet.
# @note Using Styles#add_style is the recommended way to manage cell styling.
diff --git a/lib/axlsx/stylesheet/color.rb b/lib/axlsx/stylesheet/color.rb
index 2b6c126f..32f18063 100644
--- a/lib/axlsx/stylesheet/color.rb
+++ b/lib/axlsx/stylesheet/color.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# The color class represents a color used for borders, fills an fonts
class Color
diff --git a/lib/axlsx/stylesheet/dxf.rb b/lib/axlsx/stylesheet/dxf.rb
index 758b0869..b5423b2a 100644
--- a/lib/axlsx/stylesheet/dxf.rb
+++ b/lib/axlsx/stylesheet/dxf.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# The Dxf class defines an incremental formatting record for use in Styles. The recommended way to manage styles for your workbook is with Styles#add_style
# @see Styles#add_style
diff --git a/lib/axlsx/stylesheet/fill.rb b/lib/axlsx/stylesheet/fill.rb
index 7bb5a437..4fa58aef 100644
--- a/lib/axlsx/stylesheet/fill.rb
+++ b/lib/axlsx/stylesheet/fill.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# The Fill is a formatting object that manages the background color, and pattern for cells.
# @note The recommended way to manage styles in your workbook is to use Styles#add_style.
diff --git a/lib/axlsx/stylesheet/font.rb b/lib/axlsx/stylesheet/font.rb
index 48d2b584..8a52c810 100644
--- a/lib/axlsx/stylesheet/font.rb
+++ b/lib/axlsx/stylesheet/font.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# The Font class details a font instance for use in styling cells.
# @note The recommended way to manage fonts, and other styles is Styles#add_style
diff --git a/lib/axlsx/stylesheet/gradient_fill.rb b/lib/axlsx/stylesheet/gradient_fill.rb
index b077d497..46098b53 100644
--- a/lib/axlsx/stylesheet/gradient_fill.rb
+++ b/lib/axlsx/stylesheet/gradient_fill.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# A GradientFill defines the color and positioning for gradiant cell fill.
# @see Open Office XML Part 1 §18.8.24
diff --git a/lib/axlsx/stylesheet/gradient_stop.rb b/lib/axlsx/stylesheet/gradient_stop.rb
index a76da6a6..63778b58 100644
--- a/lib/axlsx/stylesheet/gradient_stop.rb
+++ b/lib/axlsx/stylesheet/gradient_stop.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# The GradientStop object represents a color point in a gradient.
# @see Open Office XML Part 1 §18.8.24
diff --git a/lib/axlsx/stylesheet/num_fmt.rb b/lib/axlsx/stylesheet/num_fmt.rb
index 1072d18a..3f99d8d4 100644
--- a/lib/axlsx/stylesheet/num_fmt.rb
+++ b/lib/axlsx/stylesheet/num_fmt.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# A NumFmt object defines an identifier and formatting code for data in cells.
# @note The recommended way to manage styles is Styles#add_style
diff --git a/lib/axlsx/stylesheet/pattern_fill.rb b/lib/axlsx/stylesheet/pattern_fill.rb
index 059f15bb..96614ecd 100644
--- a/lib/axlsx/stylesheet/pattern_fill.rb
+++ b/lib/axlsx/stylesheet/pattern_fill.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# A PatternFill is the pattern and solid fill styling for a cell.
# @note The recommended way to manage styles is with Styles#add_style
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb
index 188f0960..72706e3b 100644
--- a/lib/axlsx/stylesheet/styles.rb
+++ b/lib/axlsx/stylesheet/styles.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
require 'axlsx/stylesheet/border.rb'
require 'axlsx/stylesheet/border_pr.rb'
diff --git a/lib/axlsx/stylesheet/table_style.rb b/lib/axlsx/stylesheet/table_style.rb
index d330beb2..6be6a9a2 100644
--- a/lib/axlsx/stylesheet/table_style.rb
+++ b/lib/axlsx/stylesheet/table_style.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# A single table style definition and is a collection for tableStyleElements
# @note Table are not supported in this version and only the defaults required for a valid workbook are created.
diff --git a/lib/axlsx/stylesheet/table_style_element.rb b/lib/axlsx/stylesheet/table_style_element.rb
index 593c5950..1b7b3db9 100644
--- a/lib/axlsx/stylesheet/table_style_element.rb
+++ b/lib/axlsx/stylesheet/table_style_element.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# an element of style that belongs to a table style.
# @note tables and table styles are not supported in this version. This class exists in preparation for that support.
diff --git a/lib/axlsx/stylesheet/table_styles.rb b/lib/axlsx/stylesheet/table_styles.rb
index 6ef07c51..f6c6a415 100644
--- a/lib/axlsx/stylesheet/table_styles.rb
+++ b/lib/axlsx/stylesheet/table_styles.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# TableStyles represents a collection of style definitions for table styles and pivot table styles.
# @note Support for custom table styles does not exist in this version. Many of the classes required are defined in preparation for future release. Please do not attempt to add custom table styles.
diff --git a/lib/axlsx/stylesheet/xf.rb b/lib/axlsx/stylesheet/xf.rb
index 0633da7d..3eb3da06 100644
--- a/lib/axlsx/stylesheet/xf.rb
+++ b/lib/axlsx/stylesheet/xf.rb
@@ -1,4 +1,3 @@
-# encoding: UTF-8
module Axlsx
# The Xf class defines a formatting record for use in Styles. The recommended way to manage styles for your workbook is with Styles#add_style
# @see Styles#add_style