simulator_eurl_sasu 0.0.12

  • Readme
  • Changelog
  • Installing
  • 42

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:

  simulator_eurl_sasu: ^0.0.12

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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:simulator_eurl_sasu/simulator_eurl_sasu.dart.

Health issues and suggestions

Document public APIs. (-1 points)

311 out of 311 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/charge_sas_linear.dart. (-1.49 points)

Analysis of lib/src/models/sasu/charges/charge_sas_linear.dart reported 3 hints:

line 6 col 10: Don't explicitly initialize variables to null.

line 7 col 10: Don't explicitly initialize variables to null.

line 9 col 93: Use = to separate a named parameter from its default value.

Fix lib/src/models/sasu/charges/charge_sas.dart. (-1 points)

Analysis of lib/src/models/sasu/charges/charge_sas.dart reported 2 hints:

line 15 col 87: Use = to separate a named parameter from its default value.

line 15 col 123: Use = to separate a named parameter from its default value.

Fix lib/src/models/sasu/charges/charge_sas_thresholds.dart. (-1 points)

Analysis of lib/src/models/sasu/charges/charge_sas_thresholds.dart reported 2 hints:

line 9 col 135: Use = to separate a named parameter from its default value.

line 9 col 165: Use = to separate a named parameter from its default value.

Fix additional 26 files with analysis or formatting issues. (-2.50 points)

Additional issues in the following files:

  • lib/src/services/sasu/service_salary.dart (2 hints)
  • lib/src/services/service_util.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/dividend.dart (Run dartfmt to format lib/src/models/dividend.dart.)
  • lib/src/models/eurl/charges/charge_eurl.dart (Run dartfmt to format lib/src/models/eurl/charges/charge_eurl.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/eurl/charges/charges_eurl.dart (Run dartfmt to format lib/src/models/eurl/charges/charges_eurl.dart.)
  • lib/src/models/eurl/remuneration.dart (Run dartfmt to format lib/src/models/eurl/remuneration.dart.)
  • lib/src/models/eurl/simulation_eurl.dart (Run dartfmt to format lib/src/models/eurl/simulation_eurl.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.)
  • lib/src/models/sasu/charges/charges_sas.dart (Run dartfmt to format lib/src/models/sasu/charges/charges_sas.dart.)
  • lib/src/models/sasu/salary.dart (Run dartfmt to format lib/src/models/sasu/salary.dart.)
  • lib/src/models/sasu/simulation_sasu.dart (Run dartfmt to format lib/src/models/sasu/simulation_sasu.dart.)
  • lib/src/services/eurl/service_remuneration.dart (Run dartfmt to format lib/src/services/eurl/service_remuneration.dart.)
  • lib/src/services/eurl/service_simulation_eurl.dart (Run dartfmt to format lib/src/services/eurl/service_simulation_eurl.dart.)
  • lib/src/services/sasu/service_simulation_sasu.dart (Run dartfmt to format lib/src/services/sasu/service_simulation_sasu.dart.)
  • lib/src/services/service_dividend.dart (Run dartfmt to format lib/src/services/service_dividend.dart.)
  • lib/src/services/service_ir_is.dart (Run dartfmt to format lib/src/services/service_ir_is.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/

For more information see the pub package layout conventions.


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.0
logging ^0.11.3+2 0.11.3+2
test ^1.0.0 1.9.2
Transitive dependencies
analyzer 0.38.5
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
crypto 2.1.3
csslib 0.16.1
front_end 0.1.27
glob 1.2.0
html 0.14.0+3
http 0.12.0+2
http_multi_server 2.1.0
http_parser 3.1.3
io 0.3.3
js 0.6.1+1
kernel 0.3.27
matcher 0.12.5
meta 1.1.7
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.8.0+1
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.5.5
stack_trace 1.9.3
stream_channel 2.0.0
string_scanner 1.0.5
term_glyph 1.1.0
test_api 0.2.9
test_core 0.2.13
typed_data 1.1.6
vm_service 1.2.0 2.1.1
watcher 0.9.7+12
web_socket_channel 1.1.0
yaml 2.2.0