dbstyleguidechecker library

Classes

ConsoleStyleGuideCheckReporter
Create a DBStyleGuideCheckReporter that report violation to the console.
DartAnalyzerViolationParser
Dart analyzer violation parser.
DartProjectStyleGuideChecker
Dart project style guide linter.
DBStyleGuideChecker
Style guide linter. [...]
DBStyleGuideCheckReporter
Style guide check reporter. [...]
DBStyleGuideViolationParser
Style guide violation parser. [...]
FlutterProjectStyleGuideChecker
Flutter project style guide linter.
GithubPullRequestStyleGuideCheckReporter
Github pull request style guide check reporter.

Constants

exitFileDiffParsingError → const int
Process exit because file diff parsing error.
27
exitGithubApiError → const int
Process exit because of github server api error.
26
exitInvalidArgument → const int
Process exit code for invalid command line argument.
5
exitMissingRequiredArgument → const int
Process exit code for missing required command line argument.
6
exitPackageUpdatedFailed → const int
Process exit code when flutter packages get or pub get failed.
14
exitParsingViolationFailed → const int
Process exit code when parsing violations failed.
19
exitUnexpectedError → const int
Process exit code when an unexpected error occurred.
25

Functions

findViolationLineInFileDiff(String patch, int lineNumber) Future<int>
Find the violation lineNumber in the file diff path.
getFileRelativePath(String filePath, String projectDir) String
Get the relative path of a file from it's parent directory.
getGithubRepoName(String repoUrl) String
Get the github repository name from repoUrl.
getGithubRepoOwner(String repoUrl) String
Get the github repository owner name from repoUrl.
getResolvedProjectDir(String projectDir) Directory
Get the project Directory with a full path.
getStyleGuideFile(String filePath, String projectDir) File
Get the style guide file from the filePath provided.
isSameFilePath(String filePath1, String filePath2) Future<bool>
Check if the file paths are the or pointing to the same location.

Exceptions / Errors

UnrecoverableException
A class that represent a exception that can't be recovered.