Luni-4
bb1a53f568
cli: Fix warning caused by a deprecated function
...
With update of Cargo.lock, a cli function has become deprecated
2022-06-01 17:21:24 +02:00
Luni-4
a001428f4a
web: Remove an allocation
2022-06-01 17:21:24 +02:00
Luni-4
29546a3048
web: Update command line interface
2022-06-01 17:21:24 +02:00
Marco Ballario
f98ade0445
Add ABC checks to web server tests
2022-05-30 09:53:27 +02:00
Marco Ballario
3ad38c7032
Dump ABC metric stats
2022-05-30 09:53:27 +02:00
Marco Ballario
a191dff590
Add ABC metric implementation for Java
2022-05-30 09:53:27 +02:00
Devon Burriss
4987e9093f
Implement Halstead for Java ( #811 )
2022-05-29 18:39:30 +02:00
Luni-4
b5496f8878
Do not use profile options in packages
2022-05-25 10:19:19 +02:00
Luni-4
f33b9de883
Fix clippy lints
2022-05-25 10:19:19 +02:00
Marco Ballario
04bbeff63e
Dump WMC metric
2022-05-10 09:42:39 +02:00
Marco Ballario
d1d16a75e2
Add WMC implementation
2022-05-10 09:42:39 +02:00
Marco Ballario
c6e46b7880
Add WMC to traits
2022-05-10 09:42:39 +02:00
Marco Ballario
6039c8a108
Consider Java constructors as spaces of type function
2022-05-10 09:42:39 +02:00
Devon Burriss
f3b5dc1b4e
Add exit metric for Java ( #822 )
2022-04-15 08:31:49 +02:00
Devon Burriss
7b9d158a51
Java nom metrics ( #823 )
...
* Closure to checker for nom
* Adds a simpler test
* Removed debug statement
2022-04-14 19:23:48 +02:00
Luni-4
d24a558fe3
Clean up code ( #824 )
...
* Fix clippy warnings
* Ignore downloaded test repositories
2022-04-14 10:04:30 +02:00
Devon Burriss
0cc9bcdf51
Interface SpaceKind ( #810 )
...
* Adds Interface SpaceKind
* Enables Java interface function space
* Enables TS & TSX interface function space
2022-03-29 15:22:16 +02:00
Devon Burriss
bcb3ca8f7a
Java LoC metric ( #694 )
...
* WIP of Java LoC metric
* Enables 2 passing simple tests
* Adds more individual loc tests
* Initial impl of JavaCode Getter trait
get_space_kind was needed to fix an off by one issue with ploc
* Test cleanup
* Fix test
* Fixes handling of for loops
* Adds while
* Remove println
* Ran fmt
* Reduce to handle only SLOC off by 1
* Adds ternary lloc to test
* Adds expression grammar lloc
* Removes expressions from count
* Do not count expressions in for loop
* Removes debugging lines
* Fixes for the recent Stats changes
* Defines space kinds
* Adds interface space
2022-03-23 10:11:08 +01:00
Thomas Praxl
08c61f48ad
fix: hanging server ( #806 )
...
Since the update to actix-rt@2.3 (f413996a
), the web server hasn't been
started, when we executed `cargo run -p rust-code-analysis-web`.
It froze once `actix_rt::System::new().run()?;` was called,
effectively preventing the execution of the code below.
By looking at the actix-rt examples and changing the code to be more
like the examples, I was able to fix this.
The webserver now behaves as expected.
2022-03-21 10:39:57 +01:00
giovannitangredi
97e576b90a
Added minimum and maximum implementation for Loc ( #793 )
...
* Fixed a bug for Exit metric
* Added min and max implementation for Loc
* Do not export compute_minmax functions as public
2022-03-18 12:15:55 +01:00
Marco Ballario
d506539f07
Add Java anonymous class unit test to Cyclomatic Complexity metric
2022-03-11 17:05:09 +01:00
Luni-4
62667c6190
Reduce binaries size ( #798 )
...
* Use Rust stripped binaries option
With the new Rust 1.59 version, it is possible to strip standard library
debug symbols directly from Cargo
* Update cargo udeps
This update is necessary to support the new Rust strip option
2022-03-04 12:01:11 +01:00
giovannitangredi
fd348f23c4
Make compute_minmax an inline function
2022-03-04 11:38:42 +01:00
giovannitangredi
ec0183a00f
Move metrics sum computation into a new function
2022-03-04 11:38:42 +01:00
giovannitangredi
7c21e1419f
Do not export internal metric functions as public
2022-03-04 11:38:42 +01:00
Luni-4
98538cbab2
Fix clippy warnings ( #794 )
2022-03-02 09:59:55 +01:00
Marco Ballario
d488b6eb5b
Add Cyclomatic Complexity implementation for Java
2022-02-11 10:02:02 +01:00
Luni-4
e378b60a9e
Update grcov
2022-02-10 17:30:53 +01:00
Marco Ballario
97d07e1d8c
Add more integration tests ( #724 )
...
* Consider blank lines at the end of a file
* Add integration tests
2022-01-19 12:20:51 +01:00
Luni-4
e4d489eee9
enums: Remove extern crate keywords
2022-01-19 11:05:06 +01:00
Luni-4
a6654d2712
lib: Remove extern crate keywords
2022-01-19 11:05:06 +01:00
Luni-4
f963922052
lib: Remove extern crate keywords for num crate
2022-01-19 11:05:06 +01:00
Luni-4
30da721ce7
web: Remove extern crate keywords
2022-01-19 11:05:06 +01:00
Luni-4
450a0358a5
cli: Remove extern crate keywords
2022-01-19 11:05:06 +01:00
Luni-4
ef080b621c
Update serde_json
2022-01-19 11:05:06 +01:00
Luni-4
0eb85bc15c
Update clap
2022-01-19 11:05:06 +01:00
Luni-4
f82ac03801
Update actix-rt
2022-01-19 11:05:06 +01:00
Luni-4
4d7f6b2019
Update json-minimal-tests to 0.1.9 ( #761 )
2022-01-14 12:54:18 +01:00
Luni-4
c58e895809
Publish crates before creating a cargo package ( #758 )
...
The `cargo package` command uses the crates from crates.io to build
a package, so it is necessary to publish the new crates versions as
first thing.
2022-01-14 12:50:51 +01:00
Luni-4
1f19a542b2
Update json-minimal-tests to 0.1.8 ( #760 )
2022-01-14 12:15:48 +01:00
Luni-4
3eb896051e
Drop no longer needed C++ modification ( #757 )
...
* mozcpp: Drop no longer needed C++ modification
* Update mozcpp version
2022-01-13 19:59:09 +01:00
Luni-4
73f5e1ddde
Update tree-sitter-mozcpp to 0.20 ( #754 )
...
* Pick first grep occurrence
* enums: Update tree-sitter deps
* Update tree-sitter-mozcpp
* Fix grammar enums
* Update mozcpp grammar to 0.20
* Add loc test for namespace
2022-01-12 13:54:04 +01:00
Marco Ballario
1c3c663d99
Add averages for Loc metrics ( #737 )
2022-01-11 08:27:04 -08:00
Luni-4
c4e75b5a24
Update typescript grammar to 0.20 ( #752 )
2022-01-11 12:09:06 +01:00
Marco Ballario
25349e7f9a
Add averages for Nom metrics ( #736 )
2022-01-11 02:06:40 -08:00
Marco Ballario
736f379b95
Add missing LLOC checks ( #739 )
2022-01-10 11:49:13 +01:00
dependabot[bot]
33d27d9653
Bump serde from 1.0.132 to 1.0.133 ( #743 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.132 to 1.0.133.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.133 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-10 11:48:15 +01:00
dependabot[bot]
bcc7bcdb75
Bump actix-rt from 2.5.0 to 2.5.1 ( #742 )
...
Bumps [actix-rt](https://github.com/actix/actix-net ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/actix/actix-net/releases )
- [Commits](https://github.com/actix/actix-net/compare/rt-v2.5.0...rt-v2.5.1 )
---
updated-dependencies:
- dependency-name: actix-rt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-10 11:47:54 +01:00
dependabot[bot]
96d2ebfcb8
Bump serde_json from 1.0.73 to 1.0.74 ( #741 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.73 to 1.0.74.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.73...v1.0.74 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-10 11:47:48 +01:00
dependabot[bot]
8f953f7bc8
Bump askama from 0.10.5 to 0.11.0 in /enums ( #735 )
...
Bumps [askama](https://github.com/djc/askama ) from 0.10.5 to 0.11.0.
- [Release notes](https://github.com/djc/askama/releases )
- [Commits](https://github.com/djc/askama/commits/0.11.0 )
---
updated-dependencies:
- dependency-name: askama
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-10 11:47:39 +01:00