Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bombsimon/wsl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.7.0
Choose a base ref
...
head repository: bombsimon/wsl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.0
Choose a head ref
  • 10 commits
  • 113 files changed
  • 1 contributor

Commits on Jun 6, 2025

  1. wsl v5 - a complete rewrite ✍️ (#169)

    * Initial boilerplate for rewrite
    
    * Update dependencies, improve leading whitespace
    
    * Add `Cursor`, explore `*ast.IfStmt`
    
    * Handle force error checking
    
    * Handle if statements
    
    * Improve cursor states, add test
    
    * WIP: Cursor
    
    * Fix multiple if
    
    * Simplify resetting cursor
    
    * Improve handling of if
    
    * Add support to force error cuddlig
    
    * Add check for return
    
    * Add test for else/else-if
    
    * For, range, switch
    
    * Type switch
    
    * Branch
    
    * Decl, check types config
    
    * More exploration with CheckType
    
    * Improve leading whitespace check
    
    * Add initial expression statement check
    
    * Go stmt
    
    * Reorganize tests
    
    * Defer
    
    * Support to enable/disable more checks
    
    * Trailing newline
    
    * Case clause leading newline
    
    * Append check and some refactoring
    
    * IncDec
    
    * Assign and call (not really...) cuddle
    
    * Improved decl
    
    * More decl testing
    
    * Some config work
    
    * Support to cuddling if used anywhere in block
    
    * Whole block and first statement config
    
    * First in block improvements and config
    
    * Config and comments updates
    
    * Add case max lines
    
    * Add more types to detect idents
    
    * Fix false positives found on wsl
    
    * Add support for exclusive declarations
    
    * Fix broken tests
    
    * Linting and versioning
    
    * Some more types
    
    * Fix if false positives
    
    * Label statement
    
    * Improve/add select
    
    * More assign test
    
    * Improve defer
    
    * Rework finding idents
    
    * Drop `FirstInBlockMaxDepth` + fixes
    
    * Update golangci-lint and fix issues
    
    * Remove `allIdents`, support disable IncDec
    
    * Update dependencies
    
    * Add test with all checks disabled
    
    * Update github actions
    
    * Skip cgo files
    
    * Comments and cleanup
    
    * Add support for send, update conifg
    
    * Update README
    
    * Configuration and flag changes
    
    * Move send test to test with config
    
    * Update README
    
    * WIP: Rules
    
    * More docs and small fixes
    
    * Add check type to diagnostic, make branch a single check
    
    * Add fix for label statement (actually check statement)
    
    * Update tests with failed check
    
    * Use preset instead of two bools
    
    * Rename preset to default to align with `golangci-lint`
    
    * Add migration tool for `.golangci.yml`
    
    * Use more sensible default in example
    
    * Report leading and trailing whitespace on the empty line
    
    * Ensure we never remove user comments
    
    * Don't report whitespace issues on the same line
    
    * Doc updates
    
    * Bump version
    
    * Update LICENSE year
    
    * Rename faulty struct names
    
    * Test updates
    
    * Doc updates
    
    * Remove tests
    
    * Refactor cuddling check with intersection
    
    * Improve decl check
    
    * Branch and return fixes
    
    * More descriptive diagnostic
    
    * Improve labeled statement handling
    
    * Improve send handling
    
    * Add `default` as valid default, enable `send` by default
    
    * Remove TODO comment
    
    * Remove config migration comment
    
    * Move `send` test
    
    * Clarify cuddling without intersection
    
    * Rename function
    
    * Fix copy-paste mistake
    
    * Make all wsl types and functions private
    
    * Improve `CompositeLit`
    
    * Ignore more expr
    
    * Add test for else-if/else blocks
    
    * Add test for multiline case
    
    * Don't check block list for switch
    
    * Keep and convert `AllowAssignAndCall` to check
    
    * Docs sorting
    
    * Fix lint issues
    
    * Remove print statements used for debugging
    
    * Change badge branch
    
    * Remove no longer valid deprecation log
    
    * Support Go 1.23
    
    * Don't use `SplitSq` when supporting Go 1.23
    
    * Rename `RULES.md` to `CHECKS.md`
    
    * Improve documentation
    
    * Header is lowercase only
    
    * More docs updates
    bombsimon authored Jun 6, 2025
    Configuration menu
    Copy the full SHA
    9885e30 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0643590 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2025

  1. Port test for #153 (#172)

    bombsimon authored Jun 13, 2025
    Configuration menu
    Copy the full SHA
    9bcfb87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dacbaad View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2025

  1. Configuration menu
    Copy the full SHA
    e18f93d View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2025

  1. Improve fixer for DeclStmt (#175)

    * Improve fixer for `DeclStmt`
    
    * Stop when hitting an empty line or comment
    
    * Add test with comments above and after
    
    * Add test for type spec
    
    * Update docs
    
    * Add test mixing statement types
    
    * Clean up decl grouping impl
    
    * Avoid overlapping fixes when checking for intersection
    
    * Clarify test comment
    
    * Add comment explaining why we skip nodes with comments
    bombsimon authored Jun 22, 2025
    Configuration menu
    Copy the full SHA
    0423af1 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2025

  1. Update docs, enable err by default (#178)

    * Update docs, enable `err` by default
    
    * Update default test
    bombsimon authored Jun 24, 2025
    Configuration menu
    Copy the full SHA
    7329c34 View commit details
    Browse the repository at this point in the history
  2. Improve err checking, ensure working isolated (#179)

    - Always run `err` checking even if `if` is disabled
    - Don't force cuddling if no errors are checked
    - Don't force cuddling if no variables intersect
    - Only check cuddling if previous node is assign or decl
    - Move test to default testing
    bombsimon authored Jun 24, 2025
    Configuration menu
    Copy the full SHA
    4ab9357 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2025

  1. Configuration menu
    Copy the full SHA
    a90e48f View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2025

  1. Configuration menu
    Copy the full SHA
    2c8844f View commit details
    Browse the repository at this point in the history
Loading