Skip to content

Commit

Permalink
SONARPY-1783 Migrate ArgumentNumberCheck to the new type model
Browse files Browse the repository at this point in the history
  • Loading branch information
maksim-grebeniuk-sonarsource committed Apr 26, 2024
1 parent bd2b352 commit ba7c745
Show file tree
Hide file tree
Showing 15 changed files with 459 additions and 192 deletions.
195 changes: 182 additions & 13 deletions its/ruling/src/test/resources/expected/python-S930.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,209 @@
{
'project:buildbot-0.8.6p1/buildbot/db/pool.py': [
"project:biopython/Bio/Align/substitution_matrices/__init__.py": [
62,
106
],
"project:buildbot-0.8.6p1/buildbot/db/pool.py": [
46
],
'project:mypy-0.782/misc/touch_checker.py': [
"project:buildbot-0.8.6p1/buildbot/process/properties.py": [
137,
156,
160,
177
],
"project:buildbot-0.8.6p1/buildbot/test/unit/test_steps_source_oldsource_Source.py": [
37
],
"project:django-2.2.3/django/db/models/manager.py": [
22
],
"project:django-2.2.3/django/forms/forms.py": [
36
],
"project:django-2.2.3/django/forms/models.py": [
216
],
"project:django-2.2.3/django/forms/widgets.py": [
186
],
"project:django-2.2.3/django/test/selenium.py": [
26
],
"project:django-2.2.3/django/utils/deconstruct.py": [
16
],
"project:django-2.2.3/django/utils/deprecation.py": [
48
],
"project:django-cms-3.7.1/cms/app_base.py": [
34
],
"project:django-cms-3.7.1/cms/test_utils/util/fuzzy_int.py": [
5
],
"project:docker-compose-1.24.1/compose/config/config.py": [
176
],
"project:mypy-0.782/misc/touch_checker.py": [
122
],
'project:mypy-0.782/mypy/config_parser.py': [
"project:mypy-0.782/mypy/config_parser.py": [
57
],
'project:mypy-0.782/mypyc/test/test_commandline.py': [
"project:mypy-0.782/mypyc/test/test_commandline.py": [
63
],
'project:pecos/examples/qp2q/eval/eval_pred_latency.py': [
"project:numpy-1.16.4/numpy/_globals.py": [
70
],
"project:pecos/examples/qp2q/eval/eval_helper.py": [
27
],
"project:pecos/examples/qp2q/eval/eval_pred_latency.py": [
151,
153
],
'project:pecos/examples/qp2q/eval/gen_pred_data.py': [
"project:pecos/examples/qp2q/eval/gen_pred_data.py": [
95,
95
],
'project:pecos/examples/qp2q/utils/analyse_eval_results.py': [
"project:pecos/examples/qp2q/models/pecosq2q.py": [
42
],
"project:pecos/examples/qp2q/utils/analyse_eval_results.py": [
241
],
'project:twisted-12.1.0/doc/historic/2003/pycon/deferex/deferex-listing0.py': [
4
"project:pecos/pecos/__init__.py": [
30
],
"project:pecos/pecos/utils/featurization/text/vectorizers.py": [
31
],
"project:pecos/pecos/xmc/base.py": [
45
],
"project:tensorflow/python/compiler/tensorrt/trt_convert.py": [
175
],
"project:tensorflow/python/distribute/distribute_config.py": [
44
],
"project:tensorflow/python/distribute/distribute_lib.py": [
601,
639
],
"project:tensorflow/python/distribute/values_test.py": [
525,
526,
526,
526,
527
],
'project:twisted-12.1.0/twisted/conch/manhole.py': [
"project:tensorflow/python/eager/context.py": [
287
],
"project:tensorflow/python/eager/forwardprop_util.py": [
39
],
"project:tensorflow/python/feature_column/feature_column.py": [
2495,
2497,
2498,
2499,
2500,
2501,
2502,
2503,
2504,
2505
],
"project:tensorflow/python/feature_column/feature_column_v2.py": [
2805,
2807,
2808,
2809,
2810,
2811,
2812,
2813,
2814,
2815,
3130,
3132,
3133,
3134,
3135,
3136
],
"project:tensorflow/python/keras/metrics.py": [
163
],
"project:tensorflow/python/keras/utils/version_utils.py": [
56,
65,
80
],
"project:tensorflow/python/ops/distributions/bijector_impl.py": [
63
],
"project:tensorflow/python/ops/lookup_ops.py": [
874
],
"project:tensorflow/python/ops/parsing_config.py": [
219,
294,
314,
349
],
"project:tensorflow/python/platform/benchmark.py": [
200
],
"project:tensorflow/python/profiler/profiler_v2.py": [
73
],
"project:tensorflow/python/tpu/tpu_embedding.py": [
138,
175,
210,
251
],
"project:tensorflow/python/tpu/tpu_system_metadata.py": [
67
],
"project:tensorflow/python/training/session_run_hook.py": [
211
],
"project:tensorflow/python/training/tracking/data_structures_test.py": [
625,
664
],
"project:tensorflow/python/training/warm_starting_util.py": [
126
],
"project:tornado-2.3/tornado/httpclient.py": [
149
],
"project:twisted-12.1.0/twisted/application/service.py": [
386
],
"project:twisted-12.1.0/twisted/conch/manhole.py": [
285
],
'project:twisted-12.1.0/twisted/lore/slides.py': [
"project:twisted-12.1.0/twisted/lore/slides.py": [
260
],
'project:twisted-12.1.0/twisted/persisted/aot.py': [
"project:twisted-12.1.0/twisted/persisted/aot.py": [
224
],
'project:twisted-12.1.0/twisted/python/htmlizer.py': [
"project:twisted-12.1.0/twisted/persisted/sob.py": [
184
],
"project:twisted-12.1.0/twisted/python/htmlizer.py": [
81
],
"project:twisted-12.1.0/twisted/python/test/test_components.py": [
117,
258
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"LibCST:libcst/testing/utils.py": [
170
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"airflow:airflow/executors/kubernetes_executor.py": [
71
],
"airflow:airflow/models/baseoperator.py": [
532
],
"airflow:airflow/models/taskmixin.py": [
102
],
"airflow:airflow/providers_manager.py": [
268
]
}
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
{
'calibre:src/calibre/ebooks/docx/writer/styles.py':[
175,
"calibre:src/calibre/ebooks/lrf/html/convert_from.py": [
339
],
'calibre:src/calibre/ebooks/lrf/html/convert_from.py':[
339,
"calibre:src/calibre/ebooks/oeb/base.py": [
235
],
'calibre:src/calibre/ebooks/lrf/pylrs/pylrs.py':[
2389,
"calibre:src/calibre/ebooks/oeb/iterator/spine.py": [
52
],
'calibre:src/calibre/ebooks/oeb/base.py':[
235,
"calibre:src/calibre/ebooks/pdf/reflow.py": [
143
],
'calibre:src/calibre/ebooks/pdf/reflow.py':[
143,
],
'calibre:src/calibre/ebooks/rtf2xml/table.py':[
222,
],
'calibre:src/calibre/library/database2.py':[
1738,
],
'calibre:src/calibre/library/prefs.py':[
105,
],
'calibre:src/calibre/utils/certgen.py':[
63,
"calibre:src/calibre/srv/opts.py": [
23
],
"calibre:src/calibre/utils/certgen.py": [
63
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
{
'celery:celery/app/task.py': [
542
"celery:celery/backends/cache.py": [
155
],
"celery:celery/backends/cassandra.py": [
232
],
"celery:celery/backends/database/__init__.py": [
222
],
"celery:celery/backends/filesystem.py": [
59
],
"celery:celery/backends/mongodb.py": [
263
],
"celery:celery/backends/redis.py": [
571
],
"celery:celery/backends/rpc.py": [
319
],
"celery:celery/bootsteps.py": [
279
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"django-shop:shop/deferred.py": [
91
],
"django-shop:shop/models/fields.py": [
54
],
"django-shop:shop/models/order.py": [
124
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
'indico:indico/util/string.py':[
475,
"indico:indico/modules/events/registration/stats.py": [
81,
109
],
"indico:indico/util/string.py": [
475
]
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
'saleor:saleor/core/tests/test_core.py':[
330,
],
'saleor:saleor/csv/tasks.py':[
27,
],
"saleor:saleor/graphql/core/dataloaders.py": [
27
]
}

0 comments on commit ba7c745

Please sign in to comment.