-
Notifications
You must be signed in to change notification settings - Fork 31
DART-259 Modify rule S6291: Add Dart language #4990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please adjust the comments in the code samples to be consistent with other rules
import 'package:sqflite/sqflite.dart'; | ||
|
||
void openDb() async { | ||
final db = await openDatabase("test.db"); // Noncompliant: no password support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final db = await openDatabase("test.db"); // Noncompliant: no password support | |
final db = await openDatabase("test.db"); // Sensitive - no password support |
import 'package:sqflite_sqlcipher/sqflite.dart'; | ||
|
||
void openDb() async { | ||
final db = await openDatabase("test.db"); // Noncompliant: missing password |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final db = await openDatabase("test.db"); // Noncompliant: missing password | |
final db = await openDatabase("test.db"); // Sensitive - missing password |
import 'package:sqflite_sqlcipher/sqflite.dart'; | ||
|
||
void openDb() async { | ||
final db = await openDatabase("test.db", password: "password"); // Compliant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final db = await openDatabase("test.db", password: "password"); // Compliant | |
final db = await openDatabase("test.db", password: "password"); |
Closing this PR since, during investigation work on Firestore, it was determined that the rule may not be relevant anymore in modern code, where Android takes care by default of local DB encryption. |
DART-259
Review
A dedicated reviewer checked the rule description successfully for: