Comments (4)
https://twitter.com/sanpo_shiho/status/1307235663465517056?s=20
from wastedassign.
type-switchをそもそも全て弾く実装にしたいけどssaレベルだとswitch文検知できない(気がする)のでどうしようかな
from wastedassign.
- 同一のPosで同じ名前の変数に対するStore命令が発生している
- 片一方は報告対象でなかった(=wastedではなかった
が同時に成立する際はtype-switch時誤報告とみなして良い気がする…
from wastedassign.
↑これで判断するのは怪しそう
astでtype-switchを先に探して、位置を持っておき、その行に対するエラーは全て無効にする
from wastedassign.
Related Issues (20)
- 無限に再帰してpanicするケースがある HOT 3
- 報告する際に変数名も入れたい
- golangci-lintに対応したい HOT 3
- false-positive: reassign inside an infinite loop and not use after exiting loop HOT 1
- Report with variable name HOT 2
- false-positive: variable dependencies in for loop HOT 1
- False positive in loops HOT 2
- complex c style for loop false positive HOT 1
- Suspected false positive: operator assignment inside loop HOT 1
- False positive with switch and function call HOT 3
- 他の変数のStoreに用いられているときは使用されているとみなす HOT 1
- support auto fix
- Ignore variable declaration if it's the zero value HOT 4
- if-elseif文の対応が甘い HOT 3
- Panic case HOT 5
- SSA and generics (go1.18) HOT 7
- Document difference to `ineffassign` linter?
- 連続ループがあると無限待ちになる気がする
- 関数の引数で取得した物を比較でしか使ってないと"reassigned, but never used afterwards"が出る HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wastedassign.