github-actions[bot]
ef9ace8117
Create rule S7430: splitn
should not be used with a limit of 0 or 1 ( #4771 )
...
* Create rule S7430
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:55 +00:00
github-actions[bot]
fd50acb2e3
Create rule S7431: size_of::<T>
should not be used to count elements of type T
( #4772 )
...
* Create rule S7431
* Update RSPEC
* Update snippets
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:51 +00:00
github-actions[bot]
6edd31ee99
Create rule S7432: Reversed ranges and slices should not be empty ( #4773 )
...
* Create rule S7432
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:47 +00:00
github-actions[bot]
26f042cc83
Create rule S7436: Redundant comparisons should be removed ( #4779 )
...
* Create rule S7436
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:43 +00:00
github-actions[bot]
6919fdfd79
Create rule S7440: Formatting trait implementations should not be recursive ( #4783 )
...
* Create rule S7440
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:39 +00:00
github-actions[bot]
314d4b0ed2
Create rule S7441: Lines read from the standard input should be trimmed ( #4784 )
...
* Create rule S7441
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:36 +00:00
github-actions[bot]
32d452498a
Create rule S7442: unwrap()
should only be used when there is a value to unwrap ( #4785 )
...
* Create rule S7442
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:31 +00:00
github-actions[bot]
0360734651
Create rule S7444: checked_add
and overflowing_add
should be used to prevent overflows ( #4788 )
...
* Create rule S7444
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:24 +00:00
github-actions[bot]
cb4497e15d
Create rule S7445: env!
should be preferred over option_env!
( #4789 )
...
* Create rule S7445
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:20 +00:00
github-actions[bot]
c008bdb1a8
Create rule S7446: Functions expecting raw pointer arguments should be marked as unsafe ( #4790 )
...
* Create rule S7446
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:16 +00:00
github-actions[bot]
0b46bc20f9
Create rule S7447: File open options should be consistent ( #4791 )
...
* Create rule S7447
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:12 +00:00
github-actions[bot]
b294a06b26
Create rule S7448: Unix file permissions should be set with octal values ( #4792 )
...
* Create rule S7448
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:06:06 +00:00
github-actions[bot]
28e7cab961
Create rule S7451: Remainder operations with 1
or -1
should be avoided ( #4797 )
...
* Create rule S7451
* Update RSPEC
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 13:05:34 +00:00
github-actions[bot]
40b6cf5d12
Create rule S3723: Array elements should be separated by commas ( #4688 )
...
* Add rust to rule S3723
* Update RSPEC
* Remove tag
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 11:21:29 +00:00
github-actions[bot]
8ae7a510c0
Create rule S2589: Boolean expressions should not be gratuitous ( #4683 )
...
* Add rust to rule S2589
* Update RSPEC
* Remove tag
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 11:21:00 +00:00
github-actions[bot]
3c466262f6
Create rule S1656: Variables should not be self-assigned ( #4679 )
...
* Add rust to rule S1656
* Update RSPEC
* Remove tag
---------
Co-authored-by: yassin-kammoun-sonarsource <yassin-kammoun-sonarsource@users.noreply.github.com>
Co-authored-by: yassin-kammoun-sonarsource <yassin.kammoun@sonarsource.com>
2025-03-19 11:12:17 +00:00
guillem-bartrina-sonarsource
a9fc281e99
CPP-6230 Modify rule S1172: Mention new exceptional options introduced in C23 ( #4750 )
2025-03-19 08:23:22 +00:00
SonarTech
a4428806a8
update coverage information
2025-03-19 02:45:22 +00:00
Antonio Aversa
152a2d8c47
DART-124 Modify rules S3512, S7066, S7107, S7109: Update message ( #4798 )
2025-03-18 16:53:08 +00:00
Jonas Wielage
aa7f7e600d
Modify rule S4423 for Go: Add examples for HTTP servers ( #4800 )
...
* Revert "SONARGO-393 Modify rule S4423 for Go: remove examples for HTTP server…"
This reverts commit e7c5865c645d1d0268b89a1c9e6ec005c056545e.
* Adjusted text about go version
2025-03-18 15:34:53 +01:00
Egon Okerman
a025ef5394
Modify rule S7207: Add additional documentation ( #4749 )
...
* Add an extra reference
* Fix error due to reference placement
2025-03-18 14:37:50 +01:00
github-actions[bot]
3891361829
Create rule S7435: Processing persistent unique identifiers is security-sensitive ( #4776 )
2025-03-18 14:37:33 +01:00
Egon Okerman
c485ec3dc3
Modify rule S3330: Add FastAPI (APPSEC-1260) ( #3414 )
...
* Fix Flask docs
* Add FastAPI example
2025-03-18 14:37:05 +01:00
github-actions[bot]
f7e3f45cf3
Create rule S7200: Avoid resizing a vector to zero using vec.resize(0, value)
( #4677 )
2025-03-18 13:40:42 +01:00
Egon Okerman
734c90357c
Modify rule S2092: Add FastAPI (APPSEC-1260) ( #3413 )
...
* Fix Flask docs
* Add FastAPI example
2025-03-18 09:59:43 +00:00
Pierre-Loup
1dc3769b22
Modify rule S3649: Add databases support (APPSEC-1251) ( #3381 )
2025-03-18 09:31:43 +00:00
SonarTech
c02b8cfead
update coverage information
2025-03-18 02:45:20 +00:00
github-actions[bot]
7be11bd842
Modify S3649: add Kotlin (SONARSEC-6147) ( #4796 )
2025-03-17 14:50:30 +00:00
Antonio Aversa
3d015e3518
Update rule S6474: Update message and highlighting (SONARKT-600) ( #4723 )
2025-03-17 13:59:11 +00:00
github-actions[bot]
697e49fc2c
Create rule S7410: Keyboard cache should be disabled for password inputs (SONARKT-583) ( #4724 )
2025-03-17 13:51:06 +00:00
Pierre-Loup
0884cdba3c
Apply review suggestion
2025-03-17 14:32:34 +01:00
pierre-loup-tristant-sonarsource
99d5ce6339
Create rule S7416
2025-03-17 14:32:34 +01:00
Pierre-Loup
429661e018
Update issue messages for S6474 ( #4758 )
2025-03-17 12:43:15 +00:00
Pierre-Loup
d608b6dedb
Revert "Update S4507: Add kotlin code examples (SONARKT-580) ( #4708 )" ( #4755 )
...
This reverts commit d63f01a9b137c9a010f1f81a29cf800fba5cf438.
2025-03-17 12:36:22 +00:00
Eric Morand
7c9aad50bf
RULEAPI-836 - Add compatibleLanguages
to javascript rule manifests ( #4731 )
2025-03-17 09:58:46 +00:00
lpilastri
693507a8ed
Modify rule S7190: improve code examples ( #4795 )
2025-03-17 10:53:53 +01:00
Ilia Kebets
c7f2158161
JS-641 Modify S3516 description: improve example ( #4778 )
2025-03-17 07:10:53 +01:00
SonarTech
f284ff36ad
update coverage information
2025-03-15 02:43:13 +00:00
lpilastri
6507098d55
Modify rule S7180: improve description ( #4777 )
2025-03-14 16:50:45 +01:00
erwan-serandour
5b2ef9ae42
Modify rule S7186: update description to focus more explicitly on the Data Repository ( #4787 )
2025-03-14 16:30:40 +01:00
Massimo Paladin
85743bd38f
GH actions: use ubuntu-latest instead of ubuntu-20.04
2025-03-14 16:19:47 +01:00
Egon Okerman
0c99d2979a
Change metadata ( #4748 )
2025-03-14 08:15:43 +00:00
SonarTech
13017974d0
update coverage information
2025-03-14 02:43:53 +00:00
SonarTech
69a0045069
update coverage information
2025-03-13 02:45:03 +00:00
github-actions[bot]
c6cbb0a4bd
Create rule S7134 ( #4740 )
...
Co-authored-by: Marco Kaufmann <marco.kaufmann@sonarsource.com>
2025-03-12 17:55:17 +01:00
github-actions[bot]
51dd4ca773
Create rule S7197 ( #4739 )
2025-03-12 17:44:22 +01:00
github-actions[bot]
b6559d9c46
Create rule S7409: Exposing Java interfaces in WebViews is security-sensitive (SONARKT-571) ( #4721 )
...
* Create rule S7409
* Initial commit
* Use double code tags everywhere
* Rephrase the Ask Yourself Whether section
---------
Co-authored-by: egon-okerman-sonarsource <egon-okerman-sonarsource@users.noreply.github.com>
Co-authored-by: Egon Okerman <egon.okerman@sonarsource.com>
2025-03-12 10:05:03 +01:00
SonarTech
29c60e929f
update coverage information
2025-03-12 02:44:08 +00:00
Peter Trifanov
db6114afab
SONARGO-126 S1764 Improve RSPEC to cover a check for NaN ( #4738 )
2025-03-11 13:04:12 +00:00
tomasz-tylenda-sonarsource
d204203515
SONARJAVA-5401 S6809 Fix incomplete code in an example ( #4737 )
2025-03-11 11:55:00 +01:00