-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ruby] refactor: Partial fix of odd linting space rules from templates (
#178) * Fix excess mis-styled spacing when description is nil * Fix styling * Remove final duplicate line break * Remove duplicate space inbetween generated classes and single space after opening classes * Fix styling for top level class documentation to have no excess padding * Remove all traces of spare redundant lines * Manual fixes to message serialization files * Add some names to some complex logic to improve legibility * Regenerate messages based on changes * Add the extra line conditionally * Fix erroneous final newline after final class
- Loading branch information
Showing
7 changed files
with
149 additions
and
388 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
|
||
<% @enums.each do |enum| -%> | ||
class Cucumber::Messages::<%= enum[:name] %> | ||
<%- enum[:values].each_with_index do |value, index| -%> | ||
<%- enum[:values].each_with_index do |value, index| -%> | ||
<%= enum_constant(value) %> = '<%= value %>' | ||
<%- end -%> | ||
<%- end -%> | ||
end | ||
|
||
<%= "\n" unless enum == @enums.last -%> | ||
<%- end -%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.