Skip to content

Commit 648c199

Browse files
authored
Merge pull request #2528 from geoffw0/hiddenqueries
CPP: Resolve some hidden queries
2 parents 9b6c394 + 91af51c commit 648c199

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

change-notes/1.24/analysis-cpp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The following changes in version 1.24 affect C/C++ analysis in all applications.
1313

1414
| **Query** | **Expected impact** | **Change** |
1515
|----------------------------|------------------------|------------------------------------------------------------------|
16+
| Hard-coded Japanese era start date (`cpp/japanese-era/exact-era-date`) | | This query is no longer run on LGTM. |
1617
| No space for zero terminator (`cpp/no-space-for-terminator`) | Fewer false positive results | This query has been modified to be more conservative when identifying which pointers point to null-terminated strings. This approach produces fewer, more accurate results. |
1718

1819
## Changes to libraries

cpp/ql/src/Architecture/FeatureEnvy.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description A function that uses more functions and variables from another file than functions and variables from its own file. This function might be better placed in the other file, to avoid exposing internals of the file it depends on.
44
* @kind problem
55
* @problem.severity recommendation
6-
* @precision high
6+
* @precision medium
77
* @id cpp/feature-envy
88
* @tags maintainability
99
* modularity

cpp/ql/src/Architecture/InappropriateIntimacy.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description Two files share too much information about each other (accessing many operations or variables in both directions). It would be better to invert some of the dependencies to reduce the coupling between the two files.
44
* @kind problem
55
* @problem.severity recommendation
6-
* @precision high
6+
* @precision medium
77
* @id cpp/file-intimacy
88
* @tags maintainability
99
* modularity

cpp/ql/src/Architecture/Refactoring Opportunities/ClassesWithManyFields.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @description Finds classes with many fields; they could probably be refactored by breaking them down into smaller classes, and using composition.
44
* @kind problem
55
* @problem.severity recommendation
6-
* @precision high
6+
* @precision medium
77
* @id cpp/class-many-fields
88
* @tags maintainability
99
* statistical

cpp/ql/src/Best Practices/Magic Constants/JapaneseEraDate.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @kind problem
55
* @problem.severity warning
66
* @id cpp/japanese-era/exact-era-date
7-
* @precision medium
7+
* @precision low
88
* @tags reliability
99
* japanese-era
1010
*/

0 commit comments

Comments
 (0)