:snake: SonarQube Python plugin
Repo SonarSource/sonar-python, read from GitHub 2 h ago. SonarSource has not joined Take My Repo.
SONARPY-2445 Update RSPEC before 4.26 release
SONARPY-2467 Fix performance bottleneck of GlobalSymbolComputation due to DjangoViewsVisitor
SONARPY-2468 IgnoredPureOperationsCheck#checkExpression should reuse TypeCheckers
SONARPY-2072 Compute correct line location when the cells ends with an empty line
SONARPY-2257 Ensure that the type of unary expressions of non-literals propagate
SONARPY-2420 Fix crash because of mismatch between line and pythonLine
SONARPY-2416 Remove old embedded documentation
SONARPY-1522 Update which Python versions are supported
SONARPY-2377 Repair rules reading PythonVisitorContext.pythonFile.contents() on Jupyter notebooks
SONARPY-2370 Fix FP on S5644 for generic types defined through type parameter syntax
SONARPY-2382 Fix FP on S5756 when the unary operator ~ is used
SONARPY-2392 Update custom rule examples
SONARPY-2424 Document limitation on AliasDescriptor to PythonType conversion
SONARPY-2440 Update rules metadata
SONARPY-2014 Fix raising line issues on NotebookFile
SONARPY-2303 Stop running V1 type inference during the indexing phase
SONARPY-2366 Propagate binary expressions of the same type
SONARPY-2414 Introduce AliasDescriptor
SONARPY-2415 Add stubs for pymsql, mysql and pgdb
SONARPY-2209 Avoid duplicating re-exported stub symbols when deserializing stubs
SONARPY-2216 Type of aliased ImportFrom is not propagated
SONARPY-2249 Fix descriptor to symbol conversion when an ambiguous descriptor has multiple candidates having the same fully qualified name
SONARPY-2276 Fix FP on S930 when an object method assigned to a variable
SONARPY-2201 Introduce a type checker to check a type full name
SONARPY-2203 Migrate S2201 IgnoredPureOperationsCheck to the new type model
SONARPY-2204 Migrate S5795 IdentityComparisonWithCachedTypesCheck to the new type model
SONARPY-2207 Migrate S6740 PandasReadNoDataTypeCheck to the new type model
SONARPY-2256 Resolve fully qualified names for class members descriptors
SONARPY-2229 Fix FP on S2201 when instantiating the result of a "type" call
SONARPY-2255 Aliased class types shouldn't create FPs on S5756
SONARPY-2284 Fix FP on S2638 when an imported class has a decorator on a function that is overriden in sub classes.
SONARPY-1772 Represent decorators in FunctionType
SONARPY-2194 Prevent the creation of ObjectType[UnknownType] when converting VariableDescriptor
SONARPY-2199 Remove usage of V1 types in V2 type inference visitor
SONARPY-2200 Rename LazyType#fullyQualifiedName to LazyType#importPath
SONARPY-2296 Fix quality issues: ensure calls to Name#symbolV2 are checked for null
SONARPY-2326 Add Version 3.13 as supported version of Python
SONARPY-2336 Ensure ClassDescriptor and FunctionDescriptor fullyQualifiedName are not nullable
SONARPY-2340 Add tests for Python 3.13 showing error-free parsing
SONARPY-2355 Update license to SONAR Source-Available License v1.0 (SSALv1)
SONARPY-2110 Make the ProjectLevelSymbolTable return the Descriptor model instead of the v1 Symbol model
SONARPY-2111 Implement the creation of Descriptor models out of a file's SymbolV2 / PythonType state map
SONARPY-2187 Extract the SymbolV2 / PythonType state map at the end of a module execution
SONARPY-2188 Introduce the concept of UnresolvedImportType
SONARPY-2189 Represent Django views in the updated project level symbol table
SONARPY-2191 Integrate class definition statements in the Python CFG
SONARPY-2192 Extract the SymbolV2 / PythonType state map in presence of try/except
SONARPY-2215 Extract the SymbolV2 / PythonType state map when the cfg is null
SONARPY-2250 Need to resolve a type when it is pointing to nested class
SONARPY-1572 Fix parse error for challenging unicode characters
SONARPY-1573 Fix parse error of unparenthesized walrus in set literals and comprehension
SONARPY-1727 S5905: Make sure the quick fix removes trailing commas
SONARPY-1792 Cannot parse a file with binary characters that is valid in the Python interpreter
SONARPY-2068 Tabulations (\t) should be handled correctly as an escape character
SONARPY-2081 Array index in hex form should be handled correctly
SONARPY-2120 Ensure coverage report sensor fails gracefully when reports can't be read
SONARPY-2196 Fix off-by-one errors in the highlighting/issue location in Jupyter Notebooks
SONARPY-2005 S1721 : Update rule for in (...)
SONARPY-2015 Fix S5654 RSPEC broken link
SONARPY-2016 Make rule examples for S6738 and S6711 module-level
SONARPY-2195 S2068: Update title to "Hard-coded passwords are security-sensitive"
SONARPY-2153 S6978: Fix False Negative related to resolving `torch.nn.Module`
SONARPY-1995 Support Jupyter Delimiter in Jupyter Notebooks lexing
SONARPY-2132 Support Union types in SymbolsModuleTypeProvider#getReturnTypeFromSymbol
SONARPY-2168 FunctionDescriptorToPythonTypeConverter should set STUB type origin
SONARPY-633 FP on rule S5719 when abc.abstractstaticmethod is used
SONARPY-862 S117 (LocalVariableAndParameterNameConventionCheck) shouldn't raise on type aliases
SONARPY-987 S1542 / FunctionNameCheck should not raise on unittest functions 'setUpModule' and 'tearDownModule'
SONARPY-1002 Fix FP on S2275 for nested replacement fields with format specifiers
SONARPY-1018 Fix S5727 to not raise when comparing xml ElementTree.getroot() to None
SONARPY-1531 Verify that private builtins are not serialized.
SONARPY-1711 Rule S5659: do not raise under certain use of get_unverified_header()
SONARPY-1756 FP on rule S5806 when the function name is used
SONARPY-1814 S1481: Fix detection of mutation of dict using the |= operator
SONARPY-1834 S6969 triggers when a Pipeline is used in a ColumnTransformer
SONARPY-1974 S1481: should not raise on an assignment expression occurring in a generator expression
SONARPY-2038 S4790 support usedforsecurity=False in python
SONARPY-2182 Fix FP on S5756 when calling TypedDict
SONARPY-2183 Fix FP on S5708 when the caught object has type "type"
SONARPY-2184 S125: Fix FP when analyzing databricks notebook
SONARPY-1022 Change PythonCustomRuleRepository#checkClasses return type to List<Class<?>>
SONARPY-1913 Update Microsoft stubs
SONARPY-2094 Refactor Python version comparison to PythonVersionsUtils
SONARPY-2095 Update pluginApiMinVersion in pom.xml
SONARPY-2097 S6971: Fix incomplete quickfix message
SONARPY-2164 Update sonar-plugin-api to version 10.11.0.2468
SONARPY-2169 Update logback dependency to 1.5.8
SONARPY-2181 Ensure UnionType can never contain LazyType
SONARPY-2193 Update sonarlint-core.version to v10 (major)
SONARPY-2197 Update protobuf.version to v4 (major)
SONARPY-2198 Update mockito.version to v5 (major)
SONARPY-1750 S6928 : Allow calls to python functions that have the decorator @tf.py_function
SONARPY-2084 S1451 : Improve issue message
SONARPY-2114 Migrate S5707 ExceptionCauseTypeCheck to the V2 type model
SONARPY-2115 Migrate S1244 FloatingPointEqualityCheck to the V2 type model
SONARPY-2161 Replace v2 TypeShed with TypeShedDescriptorsProvider
SONARPY-2163 Migrate S5708 CaughtExceptionsCheck to the V2 type model
SONARPY-2170 SONARPY-2170 Support detailed return types in Descriptor model
SONARPY-2087 Formatted raw strings with double backslashes should be parsed correctly
SONARPY-2136 Remove microsoft_stub test
SONARPY-2147 Fix Message of Rule S6973
SONARPY-2077 S2068: Update documentation to not recommend the customization
SONARPY-2078 S6418: Create RSPEC S6418 for Python (this rule already exists for Java)
SONARPY-2151 S6982: Fix fn when import torch is used instead of the full import name torch.nn
SONARPY-2152 Lower entropy for S6418
SONARPY-1513 Rule S6795: Generic type statement should not use TypeVars
SONARPY-1898 Rule S6978 : Subclasses of "torch.nn.Module" should call the initializer
SONARPY-1902 Rule S6979: "torch.tensor" should be used instead of "torch.autograd.Variable"
SONARPY-1907 Rule S6983 : The nb_workers parameter should be specified for torch.utils.data.DataLoader
SONARPY-1909 Rule S6984: Einops pattern should be valid
SONARPY-2150 Fix FP on S6982 when method is used on optimizers
SONARPY-1337 Use sonar-plugin-api to fetch input file hashes
SONARPY-1588 Deprecate rule S4792
SONARPY-1899 Add relevant projects to Peach
SONARPY-2080 S6418: Move ShannonEntropy to analyzer commons
SONARPY-2083 Fix parsing error when encountering `#@title` in a notebook cell
SONARPY-2140 Add containsSpreadOperator to Expresions utils class
SONARPY-2148 Add pytorch and torchvision custom stubs
SONARPY-1900 Rule S6973: Implement PyTorch Hyperparameter detection
SONARPY-1910 Rule S6982: module mode should be set after load_state_dict
SONARPY-1914 Rule S6985: Usage of "torch.load" can lead to untrusted code execution
SONARPY-1915 Expand S6929: add Pytorch and quickfix
SONARPY-2079 S6418: Implementation for Python
SONARPY-2143 S6985: Check if spreaded arguments are present in the "torch.load" call
SONARPY-2019 Fix NPE for workDir in IPynbSensorTest
SONARPY-2025 PythonScanner parses the wrong file when given a GeneratedFile
SONARPY-2027 IPynbParser should create new lines when parsing multiline strings code cells
SONARPY-2045 Fix incorrect count of escaped chars
SONARPY-2046 Fix missing enrichment of tokens
SONARPY-2049 Remove extra line break when the last line of a source array ends with \n
SONARPY-2051 Single quotes should not count as escaped characters in TokenEnricher or IPynbNotebookParser
SONARPY-2057 Markdown content should not leak in the generated file
SONARPY-2058 Fix offset computation on single line JSON files
SONARPY-2061 Fix bug when no code is present in the notebook
SONARPY-2063 Multiline strings should have a correct end position
SONARPY-2066 IPython help command should be parsed correctly
SONARPY-2067 First line of the first cell of notebooks should end at the correct location
SONARPY-2076 Fix highlighting of single line Jupyter Notebook
SONARPY-2053 Investigate FP on S6999
SONARPY-2056 IPython line magics starting with numbers or special characters should be parsed correctly
SONARPY-1983 Implement IPythonNotebook parser
SONARPY-1986 The IPythonSensor should register to .ipynb files
SONARPY-2018 Only analyze notebooks with a Python kernel
SONARPY-1987 IPynbSensor should not crash when an error occurs during the parsing of notebooks
SONARPY-1991 Adapt metrics computation for IPython files
SONARPY-1992 Add Jupyter notebooks to our Ruling tests
SONARPY-1993 Add plugin tests for the analysis of notebooks
SONARPY-1994 Add projects with notebooks to Peach
SONARPY-2002 Implement basic notebook parser with support for array code cells
SONARPY-2003 Implement basic notebook parser with support for multiline string code cells
SONARPY-2004 Track escaped characters correctly in notebook parser
SONARPY-2006 Verify the parsing of notebooks works with the whole json on a single line.
SONARPY-2012 IPynbParser should return a GeneratedIPythonFile
SONARPY-2032 Adapt (executable) lines of code metric for Jupyter Notebooks
SONARPY-2033 Adapt Highlighter for Jupyter Notebooks
SONARPY-2035 Update TokenLocation to make use of the correct location for reporting
SONARPY-2040 Add the sonar.ipynb.file.suffixes property
SONARPY-2041 Implement orchestrator cache
SONARPY-2042 Feed IPythonTreeMaker with GeneratedIPythonFile data
SONARPY-2043 Deactivate CPD for Notebooks
SONARPY-2059 PythonScanner should log the parsing exception on the correct line for notebooks
SONARPY-1988 Create an interface to wrap InputFile
SONARPY-1989 Extend Token to hold original and virtual locations
SONARPY-1990 Map JSON locations to python locations in IPythonTreeMaker
SONARPY-2001 Create GeneratedIPythonFile to hold offset data
SONARPY-2036 Enrich EOF tokens
SONARPY-2047 Enrich trivia tokens