mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
chore: migrate from pedantic to lints package
This commit is contained in:
parent
2c28fddcec
commit
145af3054d
6 changed files with 8 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
include: package:pedantic/analysis_options.yaml
|
include: package:lints/recommended.yaml
|
||||||
linter:
|
linter:
|
||||||
rules:
|
rules:
|
||||||
- file_names
|
- file_names
|
||||||
|
|
|
@ -365,9 +365,9 @@ void setWorkdir(
|
||||||
bool updateGitlink,
|
bool updateGitlink,
|
||||||
) {
|
) {
|
||||||
final workdir = path.toNativeUtf8().cast<Int8>();
|
final workdir = path.toNativeUtf8().cast<Int8>();
|
||||||
final update_gitlink = updateGitlink ? 1 : 0;
|
final updateGitlinkC = updateGitlink ? 1 : 0;
|
||||||
final error =
|
final error =
|
||||||
libgit2.git_repository_set_workdir(repo, workdir, update_gitlink);
|
libgit2.git_repository_set_workdir(repo, workdir, updateGitlinkC);
|
||||||
calloc.free(workdir);
|
calloc.free(workdir);
|
||||||
|
|
||||||
if (error < 0) {
|
if (error < 0) {
|
||||||
|
|
|
@ -8,7 +8,6 @@ class LibGit2Error {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
final errorMessage = errorPointer.ref.message.cast<Utf8>().toDartString();
|
return errorPointer.ref.message.cast<Utf8>().toDartString();
|
||||||
return '$errorMessage';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,4 +55,7 @@ class Oid {
|
||||||
return (other is Oid) &&
|
return (other is Oid) &&
|
||||||
(bindings.compare(_oidPointer, other._oidPointer) == 1);
|
(bindings.compare(_oidPointer, other._oidPointer) == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode => _oidPointer.address.hashCode;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ environment:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
pedantic: ^1.11.0
|
lints: ^1.0.1
|
||||||
ffigen: ^3.1.0-dev.1
|
ffigen: ^3.1.0-dev.1
|
||||||
test: ^1.17.5
|
test: ^1.17.5
|
||||||
path: ^1.8.0
|
path: ^1.8.0
|
||||||
|
|
|
@ -157,5 +157,4 @@ void main() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue