BACK TO LIST

Ruby rules

Codiga provides multiple sets of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.

Attribute

Design
Warning

Detect writable attributes

Learn more

BooleanParameter

Error prone
Warning

Detect boolean parameters (instead, the boolean should be used to call the function)

ClassVariable

Error prone
Warning

Do not use class variables

FeatureEnvy

Design
Warning

Use of a data from another class too much (data may be moved to another class)

InstanceVariableAssumption

Design
Warning

Assume too much on class content

LongParameterList

Best practice
Warning

Too many parameters

NestedIterators

Error prone
Warning

contains iterators nested 4 deep

RepeatedConditional

Design
Warning

Repeated conditional

SubclassedFromCoreClass

Design
Warning

Inherit from Core Class

UncommunicativeMethodName

Error prone
Warning

has the name 'valid\_payment\_2'

UncommunicativeParameterName

Error prone
Warning

Paramter not descriptive

UncommunicativeVariableName

Error prone
Warning

Variable name not descriptive

UnusedParameters

Error prone
Warning

Unused parameter

UtilityFunction

Design
Warning

Data does not depend on instance state

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.