chore: migrate from pedantic to lints package

This commit is contained in:
Aleksey Kulikov 2021-07-20 16:59:26 +03:00
parent 2c28fddcec
commit 145af3054d
6 changed files with 8 additions and 7 deletions

View file

@ -1,4 +1,4 @@
include: package:pedantic/analysis_options.yaml
include: package:lints/recommended.yaml
linter:
rules:
- file_names

View file

@ -365,9 +365,9 @@ void setWorkdir(
bool updateGitlink,
) {
final workdir = path.toNativeUtf8().cast<Int8>();
final update_gitlink = updateGitlink ? 1 : 0;
final updateGitlinkC = updateGitlink ? 1 : 0;
final error =
libgit2.git_repository_set_workdir(repo, workdir, update_gitlink);
libgit2.git_repository_set_workdir(repo, workdir, updateGitlinkC);
calloc.free(workdir);
if (error < 0) {

View file

@ -8,7 +8,6 @@ class LibGit2Error {
@override
String toString() {
final errorMessage = errorPointer.ref.message.cast<Utf8>().toDartString();
return '$errorMessage';
return errorPointer.ref.message.cast<Utf8>().toDartString();
}
}

View file

@ -55,4 +55,7 @@ class Oid {
return (other is Oid) &&
(bindings.compare(_oidPointer, other._oidPointer) == 1);
}
@override
int get hashCode => _oidPointer.address.hashCode;
}

View file

@ -8,7 +8,7 @@ environment:
dependencies:
dev_dependencies:
pedantic: ^1.11.0
lints: ^1.0.1
ffigen: ^3.1.0-dev.1
test: ^1.17.5
path: ^1.8.0

View file

@ -157,5 +157,4 @@ void main() {
});
});
});
;
}