From e76edfa8c331960e26b4c0045ea641dc3abfdb3e Mon Sep 17 00:00:00 2001 From: Hans Kokx Date: Fri, 4 Oct 2024 13:57:05 +0200 Subject: [PATCH] Prepare for distribution Signed-off-by: Hans Kokx --- LICENSE | 29 ++++++++++++++++++++++++++++- analysis_options.yaml | 2 +- example/lib/main.dart | 2 +- lib/arcane_analysis.dart | 2 +- pubspec.yaml | 10 ++++++++-- 5 files changed, 39 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index ba75c69..aea1567 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,28 @@ -TODO: Add your license here. +BSD 3-Clause License + +Copyright (c) 2024, Hans Kokx + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/analysis_options.yaml b/analysis_options.yaml index 0092317..a4bfc29 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1 +1 @@ -include: lib/analyysis_options.yaml +include: lib/analysis_options.yaml diff --git a/example/lib/main.dart b/example/lib/main.dart index cfd520d..8cc1945 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -4,7 +4,7 @@ void main() { /// The following line would normally show a lint warning /// but we can disable the lint rule for this line using the following syntax. - var greeting = 'hello world'; // ignore: prefer_final_locals + var greeting = "hello world"; // ignore: prefer_final_locals /// The following line would normally show a lint warning /// but we can disable the lint rule for this file using `ignore_for_file`. diff --git a/lib/arcane_analysis.dart b/lib/arcane_analysis.dart index 7307124..58d33a8 100644 --- a/lib/arcane_analysis.dart +++ b/lib/arcane_analysis.dart @@ -1,2 +1,2 @@ /// Arcane's Dart analyser settings and best practices -library arcane_analysis; +library; diff --git a/pubspec.yaml b/pubspec.yaml index bd2baef..b6388d9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,8 +5,14 @@ homepage: https://github.com/hanskokx/arcane_analysis repository: https://github.com/hanskokx/arcane_analysis documentation: https://github.com/hanskokx/arcane_analysis issue_tracker: https://github.com/hanskokx/arcane_analysis/issues -topics: [lints, analyzer, analysis, linting rules, linter, arcane_framework, arcane] + +topics: + - lints + - analysis + - linter + - arcane-framework environment: sdk: ^3.5.3 - +dev_dependencies: + flutter_lints: ^5.0.0