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: dominikh/go-tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2020.2
Choose a base ref
...
head repository: dominikh/go-tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2020.2.1
Choose a head ref
  • 12 commits
  • 20 files changed
  • 2 contributors

Commits on Dec 14, 2020

  1. dist: update build script

    darwin/386 is no longer supported by Go.
    dominikh committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    cdfeb40 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2021

  1. doc: update docs to reflect recent 'unused' changes

    (cherry picked from commit 3c24ef8)
    dominikh committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    82fcb65 View commit details
    Browse the repository at this point in the history
  2. lintcmd: don't mention the -explain flag

    Mentioning the flag on every run that produces diagnostics has turned
    out to be too annoying. Most users will remember that the flag exists
    after the first time we've told them about it. After that, we're just
    making output longer and more noisy for people. This is especially
    evident when run from inside editors.
    
    Instead of adding more heuristics or flags to control this behavior,
    remove it. We'll have to figure out a better way of teaching our users.
    
    This reverts 9cc924a,
    9b21780 and 08a27f4.
    
    (cherry picked from commit 731fdc8)
    dominikh committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    947c2e7 View commit details
    Browse the repository at this point in the history
  3. SA4020: fix false positive for nil in a case statement

    Closes: gh-892 [via git-merge-pr]
    (cherry picked from commit b4fb836)
    programmer04 authored and dominikh committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    256a52c View commit details
    Browse the repository at this point in the history
  4. staticcheck: teach checks how to handle sigma nodes

    When we added sigma nodes, a bunch of checks stopped working in
    branches, because we naively type-asserted to our desired IR types,
    without looking through sigma nodes.
    
    Closes gh-855
    
    (cherry picked from commit 5047034)
    dominikh committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    6ad3234 View commit details
    Browse the repository at this point in the history
  5. staticcheck: teach extractConsts about sigma nodes

    See 5047034.
    
    (cherry picked from commit ce187b4)
    dominikh committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    6dba964 View commit details
    Browse the repository at this point in the history
  6. staticcheck: improve extractConsts helper

    In commit ae60410 we changed
    extractConsts to not collect all distinct constants from phi nodes. We
    didn't notice that the function no longer returned more than one
    constant and didn't need to return a slice anymore.
    
    In this change, we change the signature and name, and replace all
    looping with a single if != nil check.
    
    Additionally, we introduce the extractConstExpectKind helper, which
    takes care of checking that the constant is of the right kind, and not
    untyped nil. This helper removes a lot of boilerplate.
    
    (cherry picked from commit 1735532)
    dominikh committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    7643f65 View commit details
    Browse the repository at this point in the history
  7. S1025: don't simplify for types that are formatters

    Closes gh-898
    
    (cherry picked from commit da78760)
    dominikh committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    267d147 View commit details
    Browse the repository at this point in the history
  8. Run go mod tidy

    (cherry picked from commit c69da86)
    dominikh committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    90cfbce View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2021

  1. Configuration menu
    Copy the full SHA
    6da2419 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c560d3b View commit details
    Browse the repository at this point in the history
  3. Version 2020.2.1 (v0.1.1)

    dominikh committed Jan 20, 2021
    Configuration menu
    Copy the full SHA
    341a1b1 View commit details
    Browse the repository at this point in the history
Loading