forked from tomaae/homeassistant-mikrotik_router
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsonar-project.properties
More file actions
47 lines (43 loc) · 2.31 KB
/
Copy pathsonar-project.properties
File metadata and controls
47 lines (43 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sonar.organization=jnctech
sonar.projectKey=jnctech_homeassistant-mikrotik_router
sonar.sources=custom_components
sonar.tests=tests
sonar.python.version=3.13
sonar.python.coverage.reportPaths=coverage.xml
# Exclude HA platform wiring files (require a running HA instance — not unit testable)
# and pure data descriptor files (no executable logic to measure).
sonar.coverage.exclusions=\
custom_components/mikrotik_router/__init__.py,\
custom_components/mikrotik_router/config_flow.py,\
custom_components/mikrotik_router/diagnostics.py,\
custom_components/mikrotik_router/binary_sensor.py,\
custom_components/mikrotik_router/sensor.py,\
custom_components/mikrotik_router/switch.py,\
custom_components/mikrotik_router/device_tracker.py,\
custom_components/mikrotik_router/button.py,\
custom_components/mikrotik_router/update.py,\
custom_components/mikrotik_router/binary_sensor_types.py,\
custom_components/mikrotik_router/sensor_types.py,\
custom_components/mikrotik_router/switch_types.py,\
custom_components/mikrotik_router/button_types.py,\
custom_components/mikrotik_router/device_tracker_types.py,\
custom_components/mikrotik_router/update_types.py,\
custom_components/mikrotik_router/iface_attributes.py,\
custom_components/mikrotik_router/const.py,\
custom_components/mikrotik_router/exceptions.py
# sensor_types.py and coordinator.py contain intentional structural repetition:
# - sensor_types.py: repeated sensor descriptor blocks per interface/hardware type
# - coordinator.py: same host-processing pattern repeated per data source (capsman/wireless/dhcp/arp)
# tests/ excluded: test files inherently repeat assertion patterns across test functions
sonar.cpd.exclusions=\
custom_components/mikrotik_router/sensor_types.py,\
custom_components/mikrotik_router/coordinator.py,\
tests/**
# Issue ignores
# python:S1172 — diagnostics.py's `hass` parameter is required by Home Assistant's
# diagnostics platform signature (HA core calls async_get_config_entry_diagnostics(
# hass, config_entry) positionally). It is unused in the body but cannot be removed
# without breaking the contract — a false positive for this rule.
sonar.issue.ignore.multicriteria=e1
sonar.issue.ignore.multicriteria.e1.ruleKey=python:S1172
sonar.issue.ignore.multicriteria.e1.resourceKey=custom_components/mikrotik_router/diagnostics.py