Skip to content

Commit 442cfec

Browse files
Manually fixing linter failures
1 parent 1b2c7f5 commit 442cfec

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

arch/csr/menvcfg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: menvcfg
66
address: 0x30A
77
long_name: Machine Environment Configuration
88
description: |
9-
Contains fields that control certain characteristics of the execution environment
9+
Contains fields that control certain characteristics of the execution environment
1010
for modes less privileged than M-mode.
1111
1212
The `menvcfg` CSR controls

lib/arch_obj_models/extension.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ def initialize(data)
558558
end
559559
end
560560

561-
def mandatory? = (@presence == "mandatory")
561+
def mandatory? = (@presence == "mandatory")
562562
def optional? = (@presence == "optional")
563563

564564
# Class methods
@@ -648,7 +648,7 @@ def <=>(other)
648648
# @overload >(other)
649649
# @param other [ExtensionPresence] An extension presence object
650650
# @return [Boolean] Whether or not this ExtensionPresence is greater-than the other
651-
def >(other)
651+
def >(other)
652652
raise ArgumentError, "ExtensionPresence is only comparable to other ExtensionPresence classes" unless other.is_a?(ExtensionPresence)
653653
(self.mandatory? && other.optional?)
654654
end
@@ -659,20 +659,20 @@ def >(other)
659659
def >=(other)
660660
raise ArgumentError, "ExtensionPresence is only comparable to other ExtensionPresence classes" unless other.is_a?(ExtensionPresence)
661661
(self > other) || (self == other)
662-
end
662+
end
663663

664664
# @overload <(other)
665665
# @param other [ExtensionPresence] An extension presence object
666666
# @return [Boolean] Whether or not this ExtensionPresence is less-than the other
667-
def <(other)
667+
def <(other)
668668
raise ArgumentError, "ExtensionPresence is only comparable to other ExtensionPresence classes" unless other.is_a?(ExtensionPresence)
669669
(self.optional? && other.mandatory?)
670670
end
671671

672672
# @overload <=(other)
673673
# @param other [ExtensionPresence] An extension presence object
674674
# @return [Boolean] Whether or not this ExtensionPresence is less-than or equal to the other
675-
def <=(other)
675+
def <=(other)
676676
raise ArgumentError, "ExtensionPresence is only comparable to other ExtensionPresence classes" unless other.is_a?(ExtensionPresence)
677677
(self < other) || (self == other)
678678
end
@@ -795,4 +795,4 @@ def <=>(other)
795795

796796
@name <=> other.name
797797
end
798-
end
798+
end

lib/arch_obj_models/profile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def extension_presence(ext_name)
121121
profiles.each do |profile|
122122
presence = profile.extension_presence_obj(ext_name)
123123

124-
unless presence.nil?
124+
unless presence.nil?
125125
if greatest_presence.nil?
126126
greatest_presence = presence
127127
elsif presence > greatest_presence

0 commit comments

Comments
 (0)