Browse Source

Merge pull request #978 from nextcloud/refactor/neon_lints

Refactor/neon lints
pull/992/head
Nikolas Rimikis 1 year ago committed by GitHub
parent
commit
d060f7d8d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/app/lib/apps.dart
  2. 3
      packages/app/lib/branding.dart
  3. 2
      packages/neon/neon/analysis_options.yaml
  4. 4
      packages/neon/neon_files/analysis_options.yaml
  5. 4
      packages/neon/neon_news/analysis_options.yaml
  6. 4
      packages/neon/neon_notes/analysis_options.yaml
  7. 4
      packages/neon/neon_notifications/analysis_options.yaml
  8. 2
      packages/neon_lints/lib/flutter.yaml
  9. 5
      packages/neon_lints/lib/flutter_package.yaml

1
packages/app/lib/apps.dart

@ -4,6 +4,7 @@ import 'package:neon_news/neon_news.dart';
import 'package:neon_notes/neon_notes.dart'; import 'package:neon_notes/neon_notes.dart';
import 'package:neon_notifications/neon_notifications.dart'; import 'package:neon_notifications/neon_notifications.dart';
/// The collection of clients enabled for the Neon app.
final Set<AppImplementation> appImplementations = { final Set<AppImplementation> appImplementations = {
FilesApp(), FilesApp(),
NewsApp(), NewsApp(),

3
packages/app/lib/branding.dart

@ -3,11 +3,13 @@ import 'dart:ui';
import 'package:neon/theme.dart'; import 'package:neon/theme.dart';
import 'package:vector_graphics/vector_graphics.dart'; import 'package:vector_graphics/vector_graphics.dart';
/// The custom theme used in the Neon app.
const neonTheme = NeonTheme( const neonTheme = NeonTheme(
branding: branding, branding: branding,
colorScheme: colorScheme, colorScheme: colorScheme,
); );
/// The custom branding used in the Neon app.
const branding = Branding( const branding = Branding(
name: 'Nextcloud Neon', name: 'Nextcloud Neon',
logo: VectorGraphic( logo: VectorGraphic(
@ -22,6 +24,7 @@ const branding = Branding(
legalese: 'Copyright © 2023, provokateurin\nUnder GPLv3 license', legalese: 'Copyright © 2023, provokateurin\nUnder GPLv3 license',
); );
/// The custom color scheme used in the Neon app.
const colorScheme = NeonColorScheme( const colorScheme = NeonColorScheme(
primary: Color(0xFFF37736), primary: Color(0xFFF37736),
); );

2
packages/neon/neon/analysis_options.yaml

@ -1,4 +1,4 @@
include: package:neon_lints/flutter_package.yaml include: package:neon_lints/flutter.yaml
linter: linter:
rules: rules:

4
packages/neon/neon_files/analysis_options.yaml

@ -1,5 +1,9 @@
include: package:neon_lints/flutter.yaml include: package:neon_lints/flutter.yaml
linter:
rules:
public_member_api_docs: false
analyzer: analyzer:
exclude: exclude:
- lib/l10n/** - lib/l10n/**

4
packages/neon/neon_news/analysis_options.yaml

@ -1,5 +1,9 @@
include: package:neon_lints/flutter.yaml include: package:neon_lints/flutter.yaml
linter:
rules:
public_member_api_docs: false
analyzer: analyzer:
exclude: exclude:
- lib/l10n/** - lib/l10n/**

4
packages/neon/neon_notes/analysis_options.yaml

@ -1,5 +1,9 @@
include: package:neon_lints/flutter.yaml include: package:neon_lints/flutter.yaml
linter:
rules:
public_member_api_docs: false
analyzer: analyzer:
exclude: exclude:
- lib/l10n/** - lib/l10n/**

4
packages/neon/neon_notifications/analysis_options.yaml

@ -1,5 +1,9 @@
include: package:neon_lints/flutter.yaml include: package:neon_lints/flutter.yaml
linter:
rules:
public_member_api_docs: false
analyzer: analyzer:
exclude: exclude:
- lib/l10n/** - lib/l10n/**

2
packages/neon_lints/lib/flutter.yaml

@ -2,6 +2,4 @@ include: package:neon_lints/src/base.yaml
linter: linter:
rules: rules:
public_member_api_docs: false
library_private_types_in_public_api: false
avoid_print: true avoid_print: true

5
packages/neon_lints/lib/flutter_package.yaml

@ -1,5 +0,0 @@
include: package:neon_lints/src/base.yaml
linter:
rules:
avoid_print: true
Loading…
Cancel
Save