Scott Gress and Copilot Autofix powered by AI
4daed869ad
Add API param linter ( #44045 )
...
Adds a linter to ensure we don't add new instances of `team` or `query`
in API params. This will be used incrementally, but this PR also adds
`nolint` directives to places that still have these terms, both to avoid
false-positives later and to help with full migration away from these
terms in in Fleet 5.
Example:
```
server/fleet/campaigns.go:51:16: json tag "team_id": uses deprecated "team"/"teams" — use "fleet"/"fleets" instead (apiparamcheck)
Team *uint `json:"team_id,omitempty"`
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a new static analyzer (apiparamcheck) to flag deprecated API
parameter names ("team/teams") and improper usages of "query/queries".
* **Chores**
* Integrated the new check into CI tooling and configuration.
* Added analyzer tests and plugin registration.
* Applied targeted lint-suppression annotations across code and tests
where legacy parameter names must remain.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-05-11 08:46:02 -05:00
..
2026-04-06 10:11:07 -05:00
2026-03-26 10:59:42 -03:00
2026-04-30 11:24:31 -04:00
2026-04-29 11:14:50 -04:00
2026-03-30 16:37:18 -05:00
2026-03-10 12:55:42 -05:00
2026-03-17 15:04:33 -04:00
2026-04-10 11:12:38 -04:00
2026-05-08 13:41:23 -05:00
2026-05-08 13:41:23 -05:00
2026-03-26 12:12:41 -06:00
2026-05-01 11:38:08 -06:00
2026-04-20 09:14:52 -04:00
2026-05-07 15:16:31 +01:00
2026-05-07 15:16:31 +01:00
2026-03-11 13:42:33 -03:00
2026-03-11 13:42:33 -03:00
2026-05-08 12:08:10 -04:00
2026-05-08 12:08:10 -04:00
2026-03-16 15:51:28 -05:00
2026-05-06 14:43:09 -05:00
2026-05-06 14:43:09 -05:00
2026-05-06 14:43:09 -05:00
2026-03-13 08:38:55 -05:00
2026-05-06 15:20:53 +02:00
2026-05-05 18:18:08 +02:00
2026-03-16 15:51:28 -05:00
2026-03-26 10:59:42 -03:00
2026-04-08 11:07:06 -03:00
2026-03-26 10:59:42 -03:00
2026-03-26 10:59:42 -03:00
2026-04-28 09:12:43 -03:00
2026-04-07 11:04:08 -03:00
2026-03-26 10:59:42 -03:00
2026-04-13 16:02:23 -03:00
2026-04-28 09:12:43 -03:00
2026-05-05 18:47:16 -04:00
2026-04-06 09:59:32 -05:00
2026-04-28 09:12:43 -03:00
2026-05-05 11:12:23 -05:00
2026-03-26 10:59:42 -03:00
2026-04-16 11:11:39 -04:00
2026-05-07 09:38:25 +02:00
2026-03-16 16:09:43 -05:00
2026-05-08 12:08:10 -04:00
2026-04-03 09:58:03 -05:00
2026-03-12 18:06:54 -04:00
2026-05-05 10:26:47 -04:00
2026-03-12 18:06:54 -04:00
2026-03-12 18:06:54 -04:00
2026-05-11 09:39:52 -03:00
2026-05-11 09:39:52 -03:00
2026-05-08 12:08:10 -04:00
2026-03-26 07:04:18 -04:00
2026-04-24 14:34:37 -05:00
2026-05-07 06:36:30 -04:00
2026-05-06 14:43:09 -05:00
2026-04-08 11:14:19 -06:00
2026-03-30 16:37:18 -05:00
2026-05-11 09:39:52 -03:00
2026-05-11 08:46:02 -05:00
2026-03-26 10:59:42 -03:00
2026-03-08 21:54:06 -05:00
2026-04-13 16:02:23 -03:00
2026-05-01 14:01:46 -06:00
2026-04-20 14:05:21 -04:00
2026-05-11 08:46:02 -05:00
2026-04-13 12:17:23 -05:00
2026-05-04 15:43:34 +02:00
2026-03-30 16:37:18 -05:00
2026-04-14 09:39:26 -05:00
2026-05-07 06:36:30 -04:00
2026-05-08 12:08:10 -04:00
2026-04-08 11:07:06 -03:00
2026-04-01 15:00:08 -03:00
2026-04-28 09:12:43 -03:00
2026-05-05 16:19:41 -04:00
2026-05-05 16:19:41 -04:00
2026-03-18 13:58:58 -05:00
2026-03-17 09:59:03 -05:00
2026-05-11 08:46:02 -05:00
2026-04-22 17:53:59 -05:00
2026-04-30 15:44:19 -05:00
2026-03-10 17:15:09 +00:00
2026-04-28 15:37:43 -05:00
2026-05-06 14:26:58 -05:00
2026-05-06 14:26:58 -05:00
2026-05-06 14:26:58 -05:00
2026-04-13 12:17:23 -05:00
2026-05-06 14:26:58 -05:00
2026-05-06 14:26:58 -05:00
2026-05-05 18:18:08 +02:00
2026-05-06 15:20:53 +02:00
2026-05-08 12:08:10 -04:00
2026-05-08 12:08:10 -04:00
2026-04-24 15:21:34 -03:00
2026-04-06 11:51:39 -05:00
2026-05-11 09:39:52 -03:00
2026-04-30 11:28:30 -04:00
2026-05-05 15:13:22 -04:00
2026-04-28 15:37:43 -05:00
2026-04-13 16:02:23 -03:00
2026-04-28 09:12:43 -03:00
2026-04-28 09:12:43 -03:00
2026-05-07 10:24:18 -04:00
2026-05-05 14:42:52 +02:00
2026-03-10 10:15:01 -03:00
2026-03-24 12:17:21 +00:00
2026-05-06 14:26:58 -05:00
2026-04-28 13:35:50 -05:00
2026-05-05 13:27:57 -05:00
2026-04-28 09:12:43 -03:00
2026-05-05 13:27:57 -05:00
2026-03-18 13:27:53 -04:00
2026-03-13 08:38:55 -05:00
2026-05-05 13:27:57 -05:00
2026-04-06 12:36:47 -04:00
2026-03-30 21:33:21 -07:00
2026-03-11 13:42:33 -03:00
2026-05-11 09:39:52 -03:00
2026-05-11 09:39:52 -03:00
2026-04-13 16:02:23 -03:00
2026-05-05 11:12:23 -05:00
2026-04-07 15:23:59 -05:00
2026-05-05 18:18:08 +02:00
2026-04-29 10:43:39 -03:00
2026-05-05 10:26:47 -04:00
2026-04-16 11:11:39 -04:00
2026-04-16 11:11:39 -04:00
2026-05-05 13:27:57 -05:00
2026-03-19 13:02:42 -04:00
2026-03-12 15:36:44 -05:00
2026-04-02 13:18:15 -05:00