1
0
mirror of https://github.com/mgechev/revive.git synced 2025-01-08 03:13:27 +02:00
revive/lint
dominiquelefevre 4242f24f4d
Add support for the new implementation of for loop variables in go 1.22. (#993)
* Add support for the new behaviour of for loops in go 1.22.

Go 1.22 has changed the behaviour of for loops. Every iteration
makes new loop variables. It is now safe to take their addresses
because they are guaranteed to be unique. Similarly, it is now
safe to capture loop variables in functions.

* adds documentation for public function

---------

Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2024-06-02 11:55:26 +02:00
..
config.go Load config from different locations prefer XDG_CONFIG_HOME before HOME (#912) 2023-10-03 20:07:00 +02:00
doc.go Code cleaunp (#905) 2023-09-23 10:41:34 +02:00
failure.go refactor: remove URL field from the failure struct 2018-10-30 15:37:27 -07:00
file.go per-rule file exclude filters (#850) (#857) 2023-08-12 08:21:11 +02:00
filefilter_test.go per-rule file exclude filters (#850) (#857) 2023-08-12 08:21:11 +02:00
filefilter.go per-rule file exclude filters (#850) (#857) 2023-08-12 08:21:11 +02:00
formatter.go Conf reason rule disabling (#193) 2019-08-02 08:21:33 -07:00
linter.go Add support for the new implementation of for loop variables in go 1.22. (#993) 2024-06-02 11:55:26 +02:00
package.go Add support for the new implementation of for loop variables in go 1.22. (#993) 2024-06-02 11:55:26 +02:00
rule.go format sources w/ gofumpt (#643) 2022-03-02 08:24:55 +01:00
utils.go feat: capitalise var naming to IDs (#964) 2024-01-17 14:01:40 +01:00