simulator_eurl_sasu 0.0.14

  • Readme
  • Changelog
  • Installing
  • 50

simulator_eurl_sasu #

Ce projet est un simulateur de charges pour les EURL / SASU. Il a été créé dans le but d'appréhender les mécanismes de calcul des différentes charges. Ces derniers évoluant rapidement, n'hésitez pas à proposer une pull-request si vous notez des corrections à apporter.

Usage #

Vous pouvez réaliser une simulation facilement :

    import 'package:simulator_eurl_sasu/simulator_eurl_sasu.dart';

    main() {
      print(serviceSimulationEurl.findBestSimulation(100000.00, 6000.00));
      print(serviceSimulationSasu.findBestSimulation(100000.00, 6000.00));
    }

Changelog #

0.0.1 #

  • Initial version, created by Matthieu Maquevice

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  simulator_eurl_sasu: ^0.0.14

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:simulator_eurl_sasu/simulator_eurl_sasu.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
31
Health:
Code health derived from static analysis. [more]
74
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4

Health issues and suggestions

Document public APIs. (-1 points)

319 out of 319 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/models/sasu/charges/charges_sas.dart. (-11.78 points)

Analysis of lib/src/models/sasu/charges/charges_sas.dart reported 25 hints, including:

line 7 col 19: Unnecessary new keyword.

line 12 col 5: Unnecessary new keyword.

line 13 col 5: Unnecessary new keyword.

line 14 col 5: Unnecessary new keyword.

line 15 col 5: Unnecessary new keyword.

Fix lib/src/models/eurl/charges/charges_eurl.dart. (-5.84 points)

Analysis of lib/src/models/eurl/charges/charges_eurl.dart reported 12 hints, including:

line 3 col 27: Unnecessary new keyword.

line 7 col 5: Unnecessary new keyword.

line 8 col 5: Unnecessary new keyword.

line 9 col 5: Unnecessary new keyword.

line 11 col 5: Unnecessary new keyword.

Fix lib/src/services/eurl/service_remuneration.dart. (-3.45 points)

Analysis of lib/src/services/eurl/service_remuneration.dart reported 7 hints, including:

line 4 col 43: Unnecessary new keyword.

line 8 col 19: Unnecessary new keyword.

line 13 col 72: Unnecessary new keyword.

line 17 col 71: Prefer to use whereType on iterable.

line 18 col 30: Unnecessary new keyword.

Fix additional 27 files with analysis or formatting issues. (-31.27 points)

Additional issues in the following files:

  • lib/src/services/sasu/service_salary.dart (7 hints)
  • lib/src/services/service_ir_is.dart (7 hints)
  • lib/src/models/sasu/charges/charge_sas.dart (5 hints)
  • lib/src/models/sasu/salary.dart (5 hints)
  • lib/src/services/service_util.dart (5 hints)
  • lib/src/models/eurl/remuneration.dart (4 hints)
  • lib/src/services/eurl/service_dividend_eurl.dart (4 hints)
  • lib/src/services/eurl/service_simulation_eurl.dart (4 hints)
  • lib/src/services/sasu/service_simulation_sasu.dart (4 hints)
  • lib/src/models/eurl/charges/charge_eurl.dart (3 hints)
  • lib/src/models/sasu/charges/charge_sas_linear.dart (3 hints)
  • lib/src/services/service_dividend.dart (3 hints)
  • lib/src/models/dividend.dart (2 hints)
  • lib/src/models/eurl/simulation_eurl.dart (2 hints)
  • lib/src/models/sasu/charges/charge_sas_thresholds.dart (2 hints)
  • lib/src/models/sasu/simulation_sasu.dart (2 hints)
  • lib/src/models/sasu/charges/charge_sas_fixed.dart (1 hint)
  • lib/simulator_eurl_sasu.dart (Run dartfmt to format lib/simulator_eurl_sasu.dart.)
  • lib/src/models/eurl/charges/charge_eurl_allocation_familiale.dart (Run dartfmt to format lib/src/models/eurl/charges/charge_eurl_allocation_familiale.dart.)
  • lib/src/models/eurl/charges/charge_eurl_csg_crds.dart (Run dartfmt to format lib/src/models/eurl/charges/charge_eurl_csg_crds.dart.)
  • lib/src/models/eurl/charges/charge_eurl_formation_professionnelle.dart (Run dartfmt to format lib/src/models/eurl/charges/charge_eurl_formation_professionnelle.dart.)
  • lib/src/models/eurl/charges/charge_eurl_invalidite_deces.dart (Run dartfmt to format lib/src/models/eurl/charges/charge_eurl_invalidite_deces.dart.)
  • lib/src/models/eurl/charges/charge_eurl_rate.dart (Run dartfmt to format lib/src/models/eurl/charges/charge_eurl_rate.dart.)
  • lib/src/models/eurl/charges/charge_eurl_retraite_complementaire.dart (Run dartfmt to format lib/src/models/eurl/charges/charge_eurl_retraite_complementaire.dart.)
  • lib/src/models/eurl/charges/charge_eurl_threshold.dart (Run dartfmt to format lib/src/models/eurl/charges/charge_eurl_threshold.dart.)
  • lib/src/models/sasu/charges/charge_sas_csg_crds.dart (Run dartfmt to format lib/src/models/sasu/charges/charge_sas_csg_crds.dart.)
  • lib/src/models/sasu/charges/charge_sas_gmp.dart (Run dartfmt to format lib/src/models/sasu/charges/charge_sas_gmp.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (intl).

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and simulator_eurl_sasu.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
args ^1.5.1 1.5.2
intl ^0.15.8 0.15.8 0.16.1
logging ^0.11.3+2 0.11.4
test ^1.0.0 1.11.1
Transitive dependencies
_fe_analyzer_shared 1.0.3
analyzer 0.39.4
async 2.4.0
boolean_selector 1.0.5
charcode 1.1.2
collection 1.14.12
convert 2.1.1
coverage 0.13.3+3
crypto 2.1.4
csslib 0.16.1
glob 1.2.0
html 0.14.0+3
http 0.12.0+4
http_multi_server 2.1.0
http_parser 3.1.3
io 0.3.3
js 0.6.1+1
matcher 0.12.6
meta 1.1.8
mime 0.9.6+3
multi_server_socket 1.0.2
node_interop 1.0.3
node_io 1.0.1+2
node_preamble 1.4.8
package_config 1.1.0
package_resolver 1.0.10
path 1.6.4
pedantic 1.9.0
pool 1.4.0
pub_semver 1.4.2
shelf 0.7.5
shelf_packages_handler 1.0.4
shelf_static 0.2.8
shelf_web_socket 0.2.3
source_map_stack_trace 1.1.5
source_maps 0.10.8
source_span 1.6.0
stack_trace 1.9.3
stream_channel 2.0.0
string_scanner 1.0.5
term_glyph 1.1.0
test_api 0.2.13
test_core 0.2.18
typed_data 1.1.6
vm_service 2.3.1
watcher 0.9.7+13
web_socket_channel 1.1.0
yaml 2.2.0