{"repo":"bombsimon/wsl","free":true,"listed":false,"github":"https://github.com/bombsimon/wsl","clone":"git clone https://github.com/bombsimon/wsl.git","description":"␊ whitespace linter - Forces you to use empty lines!","language":"Go","stars":359,"topics":["linter","whitespace-linter","hacktoberfest"],"license":"MIT","category":"dev-tools","readme_excerpt":"wsl - whitespace linter wsl ( w hite s pace l inter) is a linter that wants you to use empty lines to separate grouping of different types to increase readability. There are also a few places where it encourages you to remove whitespaces which is at the start and the end of blocks or between assigning and error checking. Checks and configuration Each check can be disabled or enabled individually to the point where no checks can be run. The idea with this is to attract more users. Some checks have configuration that affect how they work but most of them can only be turned on or off. Checks This is an exhaustive list of all the checks that can be enabled or disabled and their default value. The names are the same as the Go AST type name for built-ins. The base rule is that statements that has a block (e.g. for , range , switch , if etc) should only be cuddled with variables that are used in the block. By default only a single cuddled statement is allowed, but this can be changed with cuddle-max-statements . For more details and examples, see CHECKS. ✅ = enabled by default, ❌ = disabled by default Built-ins and keywords - ✅ assign - Assignments should only be cuddled with other assignments, or increment/decrement - ✅ branch - Branch statement ( break , continue , fallthrough , goto ) should only be cuddled if the block is less than n lines where n is the value of branch-max-lines - ✅ decl - Declarations should never be cuddled - ✅ defer - Defer should only be cuddled with other ","default_branch":null,"files":null,"tree":[],"storefront":"/r/bombsimon","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bombsimon/wsl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}