| |
ID | LAYOUT-11 |
Title | Combine multiple blocks of properties or methods with equal attributes into one. |
Priority | Recommended |
Severity level | 9 |
Description | Combine multiple properties and methods blocks with equal attribute values into one. Do not set attributes to their default values. |
Rationale | Having multiple blocks with the same attributes is unnecessary and decreases the readability of classdef files. |
classdef Rocket
properties (Access = public, Hidden = false, Constant)
Fuel = "Nuclear"
end
properties (Constant = true)
Capacity = 2
end
end
classdef Rocket
properties (Constant)
Fuel = "Nuclear"
Capacity = 2
end
end