Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.05 KB

cleanup_source.md

File metadata and controls

23 lines (16 loc) · 1.05 KB

Cleanup/remove trailing whitespace and tabs/spaces

Various task to replace, remove tabs/[double] spaces/trailing whitespaces

Installation

  • copy cleanup_source.rake to lib/tasks/cleanup_source.rake

Usage

rake -T

rake source:cssattrspace                      # experiment - Add one whitespace between CSS attribute and value rule
rake source:decurlysbracketspace              # wip - Rewrite curly brackets without leading/trailing space for single line blocks
rake source:derocket                          # Rewrite hash rocket syntax for all symbol hash keys
rake source:despace                           # Replace two spaces in source code files with tab
rake source:detab                             # Replace all tabs in source code files with two spaces
rake source:detrail                           # Remove trailing whitespace on the ends of lines
rake source:doublespace                       # Remove double whitespace between words in a line
rake source:gsub[pattern,result]              # Replace all instances of {pattern} with {result}