Method name snake_case (ARCH6002)
هذا المحتوى غير متوفر بلغتك بعد.
Key ruby.naming.method-name-snakecase · Severity warning · Category naming
Flags method names that do not use snake_case. Ruby convention requires methods to be lowercase with underscores.
Incorrect
Section titled “Incorrect”class Cart def CalculateTotal @items.sum endendCorrect
Section titled “Correct”class Cart def calculate_total @items.sum endendRename the method to lowercase words separated by underscores (snake_case). This rule can be disabled per project/workspace in the panel.