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: v5.3.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.4.0
Choose a head ref
  • 18 commits
  • 34 files changed
  • 2 contributors

Commits on Nov 3, 2025

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

Commits on Nov 24, 2025

  1. Add renovate.json (#205)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 24, 2025
    Configuration menu
    Copy the full SHA
    ac14674 View commit details
    Browse the repository at this point in the history
  2. chore(deps): update coverallsapp/github-action action to v1.2.5 (#206)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 24, 2025
    Configuration menu
    Copy the full SHA
    4077c53 View commit details
    Browse the repository at this point in the history
  3. fix(deps): update module github.com/stretchr/testify to v1.11.1 (#210)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 24, 2025
    Configuration menu
    Copy the full SHA
    ef60262 View commit details
    Browse the repository at this point in the history
  4. chore(deps): update jandelgado/gcov2lcov-action action to v1.2.0 (#209)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 24, 2025
    Configuration menu
    Copy the full SHA
    1632d47 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2025

  1. chore(deps): update actions/checkout action to v6 (#212)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 29, 2025
    Configuration menu
    Copy the full SHA
    2f953b1 View commit details
    Browse the repository at this point in the history
  2. chore(deps): update golangci/golangci-lint-action action to v9 (#215)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 29, 2025
    Configuration menu
    Copy the full SHA
    6d475b9 View commit details
    Browse the repository at this point in the history
  3. chore(deps): update coverallsapp/github-action action to v2 (#214)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 29, 2025
    Configuration menu
    Copy the full SHA
    c3e92a0 View commit details
    Browse the repository at this point in the history
  4. chore(deps): update actions/setup-go action to v6 (#213)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Nov 29, 2025
    Configuration menu
    Copy the full SHA
    4ac8ac5 View commit details
    Browse the repository at this point in the history
  5. fix(deps): update module golang.org/x/tools to v0.39.0 (#211)

    * fix(deps): update module golang.org/x/tools to v0.39.0
    
    * Bump `golangci-lint` and fix issues
    
    ---------
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Simon Sawert <simon@sawert.se>
    renovate[bot] and bombsimon authored Nov 29, 2025
    Configuration menu
    Copy the full SHA
    aae714b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    efc6fc2 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2025

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

Commits on Jan 6, 2026

  1. Allow cuddling mutex locking/unlocking (#219)

    * Allow cuddling mutex locking/unlocking
    
    Restore removed support to more tightly cuddle mutex locking and
    unlocking. This is no longer configurable and hard coded to the selected
    few defaults from before.
    
    It is not limited to a set number of statements between and it is not
    restricted to specific type of statements, basically anything can be
    cuddled below `Lock` and the statement calling `Unlock` can be cuddled
    with anything.
    
    Fixes #218
    
    * Address linting
    
    * Update docs
    
    * Don't decent into blocks
    
    * Exit as early as possible looking for selector
    bombsimon authored Jan 6, 2026
    Configuration menu
    Copy the full SHA
    e696bdb View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2026

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

Commits on Jan 21, 2026

  1. Add support for newline-after-block (#221)

    * Add support for `newline-after-block`
    
    This adds a new check type to enforce newline after any block (closing
    `}`). In addition, it also makes the check for empty line while using
    `case-max-lines` a bit more strict by now _not_ counting a trailing
    comment as an empty line.
    
    While doing this, there's a new column based logic to figure out where
    the newline should go in the end of a case. If it's aligned with the
    last statement of the case body the line is inserted after. If it's
    aligned with then next case arm, the line is inserted before the
    comment.
    
    While working on this we're also moving to a line based check that uses
    `LineStart` to make replacements and with that simplifying some comment
    parsing since we only need to know the pos where the line starts. This
    also allowed to add support to fix removal of whitespaces both before
    _and_ after leading comments in blocks.
    
    * Use `ast.Pos` when checking comments
    
    We don't need to check line number to find relevant comments, if we
    instead use the `ast.Pos` as long as possible we save a ton of
    conversions and gets some speed improvement.
    
    * Make `isErrNotNilCheck` check stmt type
    
    Removes extra check for statement type before calling function.
    
    Also adds a more detailed comment to why we skip complex groups.
    
    * Don't create `CommentMap` for file
    
    * Improve trailing case comments handling
    
    * Add support to remove newline after left-aligned comment
    
    Similar to how we do support trailing comments in a block, but no
    newline after the comment, we want to support left-aligned comments in
    case bodies but keep them flush against the next case.
    
    * Improve method name
    
    * Use constant instead of magic number
    
    * Improve finding comments after blocks
    
    * Consider comments when checking case total lines
    
    * Remove more `NewCommentMap` calls
    
    * Skip `FuncLit` for newline after block
    bombsimon authored Jan 21, 2026
    Configuration menu
    Copy the full SHA
    456abcf View commit details
    Browse the repository at this point in the history
  2. Avoid creating CommentMap (#225)

    We don't really need a `CommentMap` to find comments. In fact, creating
    a `CommentMap` is still iterating over all comments in a file to build
    it. Instead of deferring that and allocating a map, we can just iterate
    like this ourselves.
    
    This will improve performance, especially in the cases where we created
    a `CommentMap` _before_ we decided if a check was enabled and it wasn't.
    bombsimon authored Jan 21, 2026
    Configuration menu
    Copy the full SHA
    6afd151 View commit details
    Browse the repository at this point in the history
  3. Use ast.Inspect instead of checkExpr and manually calls (#226)

    We only have `checkExpr` to recursively find `ast.FuncList` to check its
    block. We do this both recursively but also for each known node that has
    an expression.
    
    Since we only care about the `FuncLit` it's better to just use
    `ast.Inspect` and check block for both `FuncDecl` and `FuncLit` already
    in `Run`.
    
    This removes a lot of code and might also be faster potentially. We
    might get diagnostics out of order but we never guaranteed a specific
    order.
    bombsimon authored Jan 21, 2026
    Configuration menu
    Copy the full SHA
    07549b2 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2026

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