Skip to content

Commit 462a0dc

Browse files
committed
pylint: Fix pylint error for sink analyser
Signed-off-by: Arthur Chan <[email protected]>
1 parent 1a5b10f commit 462a0dc

File tree

2 files changed

+247
-238
lines changed

2 files changed

+247
-238
lines changed

src/fuzz_introspector/analyses/data/cwe_data.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
"""Common sink functions for Top 10 CWE in different languages."""
1415

15-
from typing import Any, Dict
16+
from typing import Any
1617

17-
SINK_FUNCTION: Dict[str, Dict[str, Dict[str, Any]]] = {
18+
SINK_FUNCTION: dict[str, dict[str, dict[str, Any]]] = {
1819
'CWE78': {
1920
'metadata': {
2021
'id': 78,
@@ -313,8 +314,8 @@
313314
('django.middleware.csrf.CsrfViewMiddleware', 'process_response')
314315
],
315316
'jvm':
316-
[('org.springframework.security.config.annotation.web.builders.HttpSecurity',
317-
'csrf')]
317+
[(('org.springframework.security.config.annotation.web.'
318+
'builders.HttpSecurity'), 'csrf')]
318319
}
319320
},
320321
'CWE434': {

0 commit comments

Comments
 (0)