mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-24 07:16:00 +00:00
More additions to .rubocop.yml, minor code tweaks
This commit is contained in:
19
.rubocop.yml
19
.rubocop.yml
@@ -79,6 +79,11 @@ Security/MarshalLoad:
|
|||||||
Style/AccessorGrouping:
|
Style/AccessorGrouping:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
# The assign_to_condition style looks awful, indenting loads of lines and
|
||||||
|
# increasing the separation between variable and value being assigned to it.
|
||||||
|
Style/ConditionalAssignment:
|
||||||
|
EnforcedStyle: assign_inside_condition
|
||||||
|
|
||||||
# Check with yard instead.
|
# Check with yard instead.
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
@@ -101,6 +106,12 @@ Style/HashSyntax:
|
|||||||
Style/NegatedIf:
|
Style/NegatedIf:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
# Following this just means that calls to an affected method need to know what
|
||||||
|
# that method calls its parameters, which is ridiculous. Keep things short and
|
||||||
|
# simple.
|
||||||
|
Style/OptionalBooleanParameter:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
# has_key? and has_value? are far more readable than key? and value?
|
# has_key? and has_value? are far more readable than key? and value?
|
||||||
Style/PreferredHashMethods:
|
Style/PreferredHashMethods:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
@@ -125,11 +136,13 @@ Style/SingleLineMethods:
|
|||||||
Style/StringLiterals:
|
Style/StringLiterals:
|
||||||
EnforcedStyle: double_quotes
|
EnforcedStyle: double_quotes
|
||||||
|
|
||||||
# This cop requires arrays of symbols to be written like %i[BULBASAUR IVYSAUR].
|
# This cop requires arrays of symbols/text to be written like %i[a b c]. We
|
||||||
# We don't need that nonsense. [:BULBASAUR, :IVYSAUR] is clearer and introduces
|
# don't need that nonsense. ["a", "b", "c"] is clearer and introduces no
|
||||||
# no additional syntax to confuse people.
|
# additional syntax to confuse people.
|
||||||
Style/SymbolArray:
|
Style/SymbolArray:
|
||||||
EnforcedStyle: brackets
|
EnforcedStyle: brackets
|
||||||
|
Style/WordArray:
|
||||||
|
EnforcedStyle: brackets
|
||||||
|
|
||||||
# Patentheses around the condition in a ternary operator helps to differentiate
|
# Patentheses around the condition in a ternary operator helps to differentiate
|
||||||
# it from the true/false results.
|
# it from the true/false results.
|
||||||
|
|||||||
@@ -726,8 +726,8 @@ module PluginManager
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
echoln ""
|
|
||||||
if scripts.length > 0
|
if scripts.length > 0
|
||||||
|
echoln ""
|
||||||
Console.echo_h2("Successfully loaded #{scripts.length} plugin(s)", text: :green)
|
Console.echo_h2("Successfully loaded #{scripts.length} plugin(s)", text: :green)
|
||||||
else
|
else
|
||||||
Console.echo_h2("No plugins found", text: :green)
|
Console.echo_h2("No plugins found", text: :green)
|
||||||
|
|||||||
@@ -522,6 +522,7 @@ def pbMessageDisplay(msgwindow, message, letterbyletter = true, commandProc = ni
|
|||||||
signWaitTime = Graphics.frame_rate / 2
|
signWaitTime = Graphics.frame_rate / 2
|
||||||
haveSpecialClose = false
|
haveSpecialClose = false
|
||||||
specialCloseSE = ""
|
specialCloseSE = ""
|
||||||
|
startSE = nil
|
||||||
controls.length.times do |i|
|
controls.length.times do |i|
|
||||||
control = controls[i][0]
|
control = controls[i][0]
|
||||||
param = controls[i][1]
|
param = controls[i][1]
|
||||||
|
|||||||
Reference in New Issue
Block a user