instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
Desbordante__desbordante-core__160
Desbordante/desbordante-core
160
defect
fbe89b6223dd68d88046bb414e2809eec392dc76
f0e44b1bdfb06b87ce5643a9686b96831bd18be1
Python bindings
Mostly implemented Python bindings. CsvStats (now DataStats) results are only available through a string, since the type system there is somewhat convoluted. TypoMiner is not available. Added the option to use a pandas.Dataframe to read data
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b29cfd658..c5d3d48904 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,7 @@ include_directories(SYSTEM "lib/easyloggingpp/src" "lib/better-enums/") # adding submodules add_subdirectory("lib/googletest") +add_subdirectory("lib/pybind11") set( CMAKE_...
13
13
0
[{"id": "G0", "claim": "PyFD::ToString should be marked [[nodiscard]] like the neighbouring getters.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "option.h should include <typeinfo> directly, since the code added there uses typeid/std::type_index.", "ca...
null
Desbordante__desbordante-core__172
Desbordante/desbordante-core
172
defect
49d9367e9d2306240bce6eb1c731f9e31464f770
fbb49f6ed0ae01060be7fc60d9be68340682ecc1
Change 'data' field type, refactor 'main.cpp' file
* Change type for `data` from `std::string` to `std::filesystem::path` (closes #105) * Refactor `main.cpp` Motivation: A program has been written for the web server that uses desbordante as a library. At the moment, this program stores information about all fields for algorithm configurations, and logic is also impl...
diff --git a/src/algorithms/algo_factory.h b/src/algorithms/algo_factory.h index 3a7a5cdadc..87765da63d 100644 --- a/src/algorithms/algo_factory.h +++ b/src/algorithms/algo_factory.h @@ -44,8 +44,7 @@ ACAlgorithm::Config CreateAcAlgorithmConfigFromMap(ParamsMap params) { namespace onam = config::names; ACAlgo...
12
10
2
[{"id": "G0", "claim": "The repeated `fs::current_path() / \"input_data\"` construction in the tests (including new occurrences after the rebase onto main) should be extracted into tests/datasets.h and used everywhere.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, ...
null
Desbordante__desbordante-core__190
Desbordante/desbordante-core
190
defect
c71acbf24489bca9bc13d28dac14503628fe4967
307725077249e91e22bb922fc4f182efe5b9040f
Add exceptions collecting to ACAlgorithm
This commit provides functionality of discovering exceptional records (rows) for ACAlgorithm. The row is exceptional, if for at least one pair of columns binary operation on values from that row didn't belong to ranges, that were previosly found by the algorithm. Also `ReconstructRangesByColumns` method was added.
diff --git a/src/algorithms/ac_algorithm.cpp b/src/algorithms/ac_algorithm.cpp index c80085f67e..b1f4c6ffca 100644 --- a/src/algorithms/ac_algorithm.cpp +++ b/src/algorithms/ac_algorithm.cpp @@ -47,7 +47,7 @@ std::vector<std::byte const*> ACAlgorithm::Sampling(std::vector<model::TypedColu size_t new_k_bumps = 1; ...
16
11
1
[{"id": "G0", "claim": "This PR reformats pre-existing code (e.g. descriptions.h) alongside its feature work; old code should not be reformatted here — only the diff should be formatted, or the reformatting belongs in a separate commit.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope":...
null
Desbordante__desbordante-core__209
Desbordante/desbordante-core
209
defect
ff8a9e7d21b6eea5971dc3337c7a7e1098e48692
e1e705cc7ffa97d3bbd451a2f4ba8418bad82e4e
Inherit ACAlgorithm from Algorithm
This PR deletes pairing_rule option from ACAlgorithm, because implementation was intended only for trivial pairing rule. Also it inherits ACAlgorithm from Algorithm class
diff --git a/src/algorithms/algebraic_constraints/ac_algorithm.cpp b/src/algorithms/algebraic_constraints/ac_algorithm.cpp index d07e31f9fc..f5ecc4d7a7 100644 --- a/src/algorithms/algebraic_constraints/ac_algorithm.cpp +++ b/src/algorithms/algebraic_constraints/ac_algorithm.cpp @@ -7,10 +7,84 @@ #include <easyloggin...
8
7
2
[{"id": "G0", "claim": "The src/algorithms/legacy_*.h files should also be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The concatenated option description is missing a space after 'that', so the help text would read 'thatlie'; the ...
null
Desbordante__desbordante-core__212
Desbordante/desbordante-core
212
defect
15053d64c23934eb936d0ac999e20f52f452ca93
52597f4e56461b18f9bba15fdfc68b1b9e15aa66
Rename `Fit` to `LoadData`
This was a misnomer. A method in a Python data science library was named `fit`, so that's what ended up here, but this is bound to create more confusion as algorithms aren't necessarily machine learning models that need to be fitted. `LoadData` is more appropriate.
diff --git a/python_bindings/bindings.cpp b/python_bindings/bindings.cpp index 59d0620fb1..f48e3d8145 100644 --- a/python_bindings/bindings.cpp +++ b/python_bindings/bindings.cpp @@ -99,13 +99,13 @@ PYBIND11_MODULE(desbordante, module) { &FDHighlight::GetMostFrequentRhsValueProportio...
1
1
0
[{"id": "G0", "claim": "The name `LoadPreparedData` is unclear ('Prepared' is confusing); rename the method to `LoadData` or `LoadParsedData`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Desbordante__desbordante-core__220
Desbordante/desbordante-core
220
defect
ddfddae42bf5480a35b94d223a0a45fc45019cd2
b6107bd4847f27adf2b2a85254ca1cbd0a541462
Implement parallel version of HyUCC
Implements multithreaded version of HyUCC with `Validator` parallelized and with initialization step of `Sampler` parallelized. Also adds tests for multithreaded UCC algorithms. `Sampler` is the same for HyUCC and HyFD, but before using it in HyFD we should check how parallelized `Sampler` version performs for HyFD.
diff --git a/src/algorithms/hycommon/all_column_combinations.cpp b/src/algorithms/hycommon/all_column_combinations.cpp index 6a57b2bd34..b79fc77bef 100644 --- a/src/algorithms/hycommon/all_column_combinations.cpp +++ b/src/algorithms/hycommon/all_column_combinations.cpp @@ -7,8 +7,12 @@ namespace algos::hy { void A...
1
1
0
[{"id": "G0", "claim": "The added comment '// split current_level on 4 spans' is inaccurate and should refer to 'threads_num_' spans instead of a hardcoded 4 (the code posts one task per vertex and sizes the pool by threads_num_).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr...
null
Desbordante__desbordante-core__243
Desbordante/desbordante-core
243
defect
b89cf53b8f18fe1b37e6be6d4df4d7464b0ed9fe
1a08942151b1ab16f7c8b7678c6b3b55dfc6b219
Minor bug fixes
Minor bug fixes: * fix option names in `build.sh` script output * remove duplication 'ac' in the description of the algo option * fix 'toJSON' method for FD model (object keys must be in double quotes)
diff --git a/build.sh b/build.sh index e88d9baaa2..b4c204a9b8 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,8 @@ function print_help() { cat << EOF -Usage: ./build.sh [-h|--help] [-p|--pybind] [-t|--tests] [-u|--unpack] [-jN|--jobs=N] +Usage: ./build.sh [-h|--help] [-p|--pybind] [-n|--no-test] + ...
2
1
1
[{"id": "G0", "claim": "The hash values for CIPublicHighway.csv, EpicVitals.csv, iowa1kk.csv and LegacyPayors.csv are left stale and marked \"TODO: update hash\" because hashes are computed from the FD's JSON string representation, whose format this PR changed by quoting the keys, and these TODOs should be fixed right ...
null
Desbordante__desbordante-core__246
Desbordante/desbordante-core
246
defect
d6c87cc1bd66a5d8335b1b9a1d3d2d3c20877c57
d534b18bf04c0e125cef1798226b2de67e8f7c64
Introduce new CFD class
CFD fixes: * rename algorithm-specific class (`CFD` --> `ItemsetCFD`); * add new user-friendly class `CFD` with serialization method `ToJSON`. Resolves #245 issue. Output example: ``` /* for CFD: (edible=p) => cap-shape=x */ {"lhs":[{"attribute":0,"value":"p"}],"rhs":{"attribute":1,"value":"x"}} /* for C...
diff --git a/src/core/algorithms/cfd/cfd_discovery.cpp b/src/core/algorithms/cfd/cfd_discovery.cpp index f660bd1975..4b9e5ced79 100644 --- a/src/core/algorithms/cfd/cfd_discovery.cpp +++ b/src/core/algorithms/cfd/cfd_discovery.cpp @@ -50,11 +50,36 @@ int CFDDiscovery::NrCfds() const { return (int)cfd_list_.size();...
12
12
2
[{"id": "G0", "claim": "The new header cfd_raw.h lacks an include guard and should start with `#pragma once`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "All code must live in a non-global namespace, at minimum `algos`, but the new CFD class in c...
null
Desbordante__desbordante-core__247
Desbordante/desbordante-core
247
defect
d6c87cc1bd66a5d8335b1b9a1d3d2d3c20877c57
9c7016b124f69f2df7efbc6651f1f12bfa8b87cd
Implement conversion mechanism from model::INumericType
Each inheritor of model::INumericType can be casted to any other INumericType inheritor and any builtin type, that improves working experience with custom type system.
diff --git a/src/core/model/types/double_type.h b/src/core/model/types/double_type.h index b97eef9a8f..b386fe98fe 100644 --- a/src/core/model/types/double_type.h +++ b/src/core/model/types/double_type.h @@ -3,11 +3,30 @@ #include "numeric_type.h" namespace model { - class DoubleType final : public NumericType<Doub...
23
21
4
[{"id": "G0", "claim": "The new test file triggers clang-analyzer/clang-tidy diagnostics - memory allocated with raw `new` (val, res, get_val, arithmetic results) is potentially leaked on failing assertions, and there are unused variables and dead stores - so the tests should manage that memory with RAII.", "category":...
null
Desbordante__desbordante-core__250
Desbordante/desbordante-core
250
defect
e55b0293c282027ee40c19219899c1b34bf7511f
c607d67577556289d8707b41943c8700708edd48
Fix float divisions by zero in ACAlgorithm
Fixes division by zero issues found by UB sanitizer
diff --git a/src/core/algorithms/algebraic_constraints/ac_algorithm.cpp b/src/core/algorithms/algebraic_constraints/ac_algorithm.cpp index 22bbb468e7..aaba21f6ac 100644 --- a/src/core/algorithms/algebraic_constraints/ac_algorithm.cpp +++ b/src/core/algorithms/algebraic_constraints/ac_algorithm.cpp @@ -43,8 +43,11 @@ vo...
2
1
0
[{"id": "G0", "claim": "Since p_fuzz can no longer be set to 1, the tests that used to pass 1 should pass the nearest representable value to 1 (std::nextafter) instead of the arbitrary 0.9.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In SetConditiona...
null
Desbordante__desbordante-core__252
Desbordante/desbordante-core
252
defect
d4c051d8efc0059bd45afd39dfe882e8c7055648
4b9a91f2203f3062741362227359672e4a9cccc3
Date type implementation and tests
Added class DateType that inherits class Type for working with custom type-system. DateType operates with objects of boost::gregorian::date that supports converting date to/from string, subtracting dates, adding dates, adding date_duration (represents days) to a date. Added tests.
diff --git a/src/core/model/types/builtin.h b/src/core/model/types/builtin.h index 43ece592e4..d9a07cb777 100644 --- a/src/core/model/types/builtin.h +++ b/src/core/model/types/builtin.h @@ -13,7 +13,7 @@ namespace model { using Int = int64_t; /* Type of any integer value that fits into int64 */ namespace details { ...
11
10
3
[{"id": "G0", "claim": "The new DateParsingParam test code does not compile: the constructor declares `mo::TimeUnitd` (a typo for `mo::TimeUnit`) and its initializer list uses an undeclared identifier `d`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim...
null
Desbordante__desbordante-core__267
Desbordante/desbordante-core
267
defect
080ef66e272698516873b5d46b838717c5144b60
79c0f16c97ea5509cd35234647ffdbeef9147662
Change model::DoubleType::Compare
model::DoubleType::Compare returns kEqual if Double values are close enough.
diff --git a/src/core/model/types/double_type.h b/src/core/model/types/double_type.h index b97eef9a8f..dc6554cd7b 100644 --- a/src/core/model/types/double_type.h +++ b/src/core/model/types/double_type.h @@ -4,6 +4,38 @@ namespace model { +namespace { +/* + Algorithm has been taken from + https://randomascii.word...
7
7
3
[{"id": "G0", "claim": "The unqualified abs() is given a long argument and may truncate the ULP difference; std::abs should be used instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The union-based ULP algorithm reads an inactive union member ...
null
Desbordante__desbordante-core__290
Desbordante/desbordante-core
290
defect
957adcb4e8f1b1896a8603912dd1a48dcfc30ad8
9eff38ee9ccd9625cf1cd465af1a40357a1e180f
Add UUCVerifier with python bindings
Completed PR #216 Fix naming, adapt to the current version of the project, add new tests, add default implementation for `IndicesOption` in `UCCVerifier`
diff --git a/src/core/algorithms/algorithm_types.h b/src/core/algorithms/algorithm_types.h index fe0a2f4308..f9812d7e33 100644 --- a/src/core/algorithms/algorithm_types.h +++ b/src/core/algorithms/algorithm_types.h @@ -9,7 +9,7 @@ namespace algos { using AlgorithmTypes = std::tuple<Depminer, DFD, FastFDs, FDe...
19
19
0
[{"id": "G0", "claim": "The empty line between the class comment and the class declaration in ucc_verifier.h is redundant and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The method GetNumRowsNotUCC and the field num_rows_no...
null
Desbordante__desbordante-core__303
Desbordante/desbordante-core
303
defect
f447dde1c11dc2d402e2253ba3266f7039926062
4f04a146bea8d711819b45a187ca1a8c6ea4f87a
Add datasets info for `tests`
In this pull request, a datasets info file has been added, which should contain information about all datasets in order to avoid code duplication in each test file. It is important to note that this pull request does not aim to unify all test files, but is limited to only a part of the tests (namely `fd` and `ucc`). ...
diff --git a/src/tests/all_datasets_info.cpp b/src/tests/all_datasets_info.cpp new file mode 100644 index 0000000000..5d60e838f7 --- /dev/null +++ b/src/tests/all_datasets_info.cpp @@ -0,0 +1,36 @@ +#include "all_datasets_info.h" + +namespace tests { +extern DatasetInfo const kWDC_astronomical{"WDC_astronomical.csv", '...
7
6
0
[{"id": "G0", "claim": "test_data_dir should be inside the `tests` namespace instead of sitting at global scope in datasets.h.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "DatasetInfo is too general a name and should be renamed to something that indica...
null
Desbordante__desbordante-core__333
Desbordante/desbordante-core
333
defect
f187179ee56eac1c2fd1e5efd2882bb3c6f28721
621bdbc1bfdde9801ee9cb65a2cfbedef06b39f2
Fix max_lhs option
Processing of the max_lhs option is now supported by all fd algorithms. The typed test for it was added.
diff --git a/src/core/algorithms/fd/dfd/dfd.cpp b/src/core/algorithms/fd/dfd/dfd.cpp index c13ebb2eac..6c4b525c50 100644 --- a/src/core/algorithms/fd/dfd/dfd.cpp +++ b/src/core/algorithms/fd/dfd/dfd.cpp @@ -3,6 +3,7 @@ #include <boost/asio.hpp> #include <easylogging++.h> +#include "config/max_lhs/option.h" #includ...
8
7
2
[{"id": "G0", "claim": "FDAlgorithm::MakeExecuteOptsAvailable should be declared with `override` instead of a plain `virtual` method.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The blank line in FDAlgorithm::GetKeys should not have been remo...
null
Desbordante__desbordante-core__334
Desbordante/desbordante-core
334
defect
f187179ee56eac1c2fd1e5efd2882bb3c6f28721
aff4df946727fec63f98a242cad5e2dd2c56e30d
Fix CSVParser issues
- Add the last newline ignoring (closes #287) - Fix CSVParser::Reset() - Fix double quote parsing (closes #288) - Add tests for CSVParser methods
diff --git a/src/core/parser/csv_parser/csv_parser.cpp b/src/core/parser/csv_parser/csv_parser.cpp index 6ee949e0bf..99bef00af3 100644 --- a/src/core/parser/csv_parser/csv_parser.cpp +++ b/src/core/parser/csv_parser/csv_parser.cpp @@ -77,6 +77,9 @@ void CSVParser::Reset() { if (has_header_) { SkipLine(); ...
10
10
2
[{"id": "G0", "claim": "Use `std::size_t` instead of `size_t`, which the standard does not guarantee to define, and add `#include <cstddef>`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Save `s.size()` to a variable instead of calling it in e...
null
Desbordante__desbordante-core__342
Desbordante/desbordante-core
342
defect
76a49902fff0748b3835c093765a73adc5860194
d42bc30460ac4f3d46517364bf1802f7464e9341
Add new column statistics
Add new string statistics and corresponding python bindigs. Change the implemetation of some DataStats methods.
diff --git a/src/core/algorithms/statistics/data_stats.cpp b/src/core/algorithms/statistics/data_stats.cpp index d79af2342d..19b8811713 100644 --- a/src/core/algorithms/statistics/data_stats.cpp +++ b/src/core/algorithms/statistics/data_stats.cpp @@ -212,36 +212,16 @@ size_t DataStats::Distinct(size_t index) { } st...
9
7
4
[{"id": "G0", "claim": "The new per-character statistics (GetVocab, the CountIfInColumn-based counts and GetNumberOfChars) iterate every row without an IsNullOrEmpty check, so null values contribute the characters of the string \"NULL\" to the results; the reviewer asks to skip nulls and use TypedColumnData::GetValue t...
null
Desbordante__desbordante-core__356
Desbordante/desbordante-core
356
defect
23d212d92c207611abcb1bb1ea9d187890a4b7fd
f7ee6c418d2ffaa44f08ad058081a1da06b46d69
Introduce `CSVConfig` structure
This pull request is a logical continuation of the pull request #303. Currently, tables config that are passed to create input tables for algorithms that run on a set of tables (IND algorithms) are subject to some configuration restrictions: tables must have one separator and either all must have a header or none mu...
diff --git a/src/core/algorithms/algo_factory.cpp b/src/core/algorithms/algo_factory.cpp index ac4439a087..f72ba4fb8a 100644 --- a/src/core/algorithms/algo_factory.cpp +++ b/src/core/algorithms/algo_factory.cpp @@ -16,7 +16,7 @@ namespace { boost::any GetAnyFromMap(StdParamsMap const& options, std::string_view optio...
2
2
0
[{"id": "G0", "claim": "The Config struct should be defined at the top level (e.g. CSVConfig) instead of nested inside CSVParser — is nestedness needed?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The configs-to-tables loop in algo_factory.cpp would b...
null
Desbordante__desbordante-core__374
Desbordante/desbordante-core
374
defect
a2b7db05fd7cc2516623fa6f0a92b66bec35332e
de45fa79e16d51ee4b4a12a67bccb9f4a7567606
Implement Split algorithm
Implement Split algorithm for mining of differential dependencies
diff --git a/src/core/algorithms/algorithm_types.h b/src/core/algorithms/algorithm_types.h index 3e81fe6bd9..170970d839 100644 --- a/src/core/algorithms/algorithm_types.h +++ b/src/core/algorithms/algorithm_types.h @@ -10,7 +10,7 @@ using AlgorithmTypes = std::tuple<Depminer, DFD, FastFDs, FDep, Fd_mine, Pyro,...
62
55
0
[{"id": "G0", "claim": "The `pair_compare` lambda captures `index` but never uses it, producing a clang-tidy warning; drop the capture.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The dif-table datasets should be moved out of src/core into th...
null
Desbordante__desbordante-core__376
Desbordante/desbordante-core
376
defect
f3b06b5f1724d239da5814ef6827404dcb3a48c1
63788217b547bed6fcfaf02ce1fc63300fa307ad
Display table and column names in INDs
Add methods and bindings for displaying table and column names instead of indices in IND algorithms' output
diff --git a/src/core/algorithms/ind/faida/candidate_generation/apriori_candidate_generator.cpp b/src/core/algorithms/ind/faida/candidate_generation/apriori_candidate_generator.cpp index c291416a87..914e850398 100644 --- a/src/core/algorithms/ind/faida/candidate_generation/apriori_candidate_generator.cpp +++ b/src/core...
3
3
1
[{"id": "G0", "claim": "ColumnCombination should not have two constructors where one sets table_name_ and column_names_ and the other leaves them empty.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "IND's string methods should be named ToShortString and...
null
Desbordante__desbordante-core__378
Desbordante/desbordante-core
378
defect
2b876acc176e150a773cdff2a97cac0eeedb53bc
9b3495c1476f32bb56a81123117974cda13ee335
Refactor TANE-based algorithms
Generalize Tane and PFDTane, add additional tests. In order to check if the refactoring caused any performance loss, following experiments were performed. The discovery task was run as `cli.py --task=afd --algo=tane --error=0.05 --table=...` with new and original versions of TANE implementation. Following heavy da...
diff --git a/cli/cli.py b/cli/cli.py index 6617f3aff2..9af1c4ac61 100644 --- a/cli/cli.py +++ b/cli/cli.py @@ -13,6 +13,7 @@ class Task(StrEnum): fd = auto() afd = auto() + pfd = auto() fd_verification = auto() afd_verification = auto() mfd_verification = auto() @@ -21,6 +22,7 @@ class Task...
16
14
0
[{"id": "G0", "claim": "The new CalculateFdError declaration overrides a virtual member function but is not marked 'override' (clang-tidy inconsistent-missing-override), unlike the neighbouring CalculateZeroAryFdError override.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introdu...
null
Desbordante__desbordante-core__38
Desbordante/desbordante-core
38
defect
5bfd33a37c8d70a8639d31a7b440aa9c02c8d2e8
24d5055036352274322745389bf32995669b551e
FastFDs improvements: progress bar in FastFDs and FDAlgorithm interface, first part of FastFDs parallelism, new methods for generating agree sets and max. representation
Closes #31, closes #12, closes #17, partially implements FastFDs parallelism #10 (need to add parallel algorithm for agree sets generation and fix data races in genMCParallel()).
diff --git a/CMakeLists.txt b/CMakeLists.txt index 492f7d3bf4..0fc088c528 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ endif() # configuring boost set(Boost_USE_STATIC_LIBS ON) -find_package(Boost 1.65.1 REQUIRED COMPONENTS container program_options) +find_package(Boost 1.65.1 REQUIRED COMPONE...
2
2
0
[{"id": "G0", "claim": "The progress value should also be asserted non-negative in addProgress and setProgress, since progress_ changed from unsigned to double and the remaining asserts were inherited from the old unsigned code.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
Desbordante__desbordante-core__403
Desbordante/desbordante-core
403
defect
49c14502728088d705266b9494895470c475db74
77b5823960c2989644dd173754538f9b594f4621
10 simple stats for strings
The 10 statistics are: 1. words - unique words in the column 2. topKChars - k top used symbols 3. topKWords - k top used words 4. minWords - the lowest amount of words in the column 5. maxWords - the highest amount of words in the column 6. wordCount - total amount of words in the column 7. minChars - the lowe...
diff --git a/examples/data_stats.py b/examples/data_stats.py index b6e91a12f8..ac726fecf8 100644 --- a/examples/data_stats.py +++ b/examples/data_stats.py @@ -19,7 +19,13 @@ def main() -> None: "Min": data_stats.get_min, "Max": data_stats.get_max, "Distinct": data_stats.get_number_of_distinct...
15
14
2
[{"id": "G0", "claim": "The whitespace-only reformatting of existing code in GetMin, GetSum, GetAvg and similar places (e.g. `const&` changed to `const &`) looks wrong and should be returned to how it was in all places.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {...
null
Desbordante__desbordante-core__421
Desbordante/desbordante-core
421
defect
f692cbaabb4cc40982e2dc95ca66d7bf1aaafab5
47079aca2f13d8d9e072e3028fcaf4f00431f7e0
Implement new column type deduction methods
- Add new method for column type deduction - Add more complex type checking (also closes #343) - Add undelimited dates support - Change some old tests and add new ones
diff --git a/src/core/model/table/typed_column_data.cpp b/src/core/model/table/typed_column_data.cpp index f6d910e803..11521932cf 100644 --- a/src/core/model/table/typed_column_data.cpp +++ b/src/core/model/table/typed_column_data.cpp @@ -1,5 +1,8 @@ #include "typed_column_data.h" +#include <bitset> +#include <cstdd...
2
2
1
[{"id": "G0", "claim": "Add a kDate entry to the kTypeIdToBitset map, which the new deduction logic leaves out and special-cases with a hardcoded bit instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining why the break after the...
null
Desbordante__desbordante-core__433
Desbordante/desbordante-core
433
defect
34282b3ef23adde7bd801d009187f6bdb99ae376
6950875848a64b3a3a2246034a0a4927429ce6db
Add MacOS (Apple silicon) support and dependencies installation guide (Ubuntu + MacOS) to README
Change platform-specific flag in build.sh script, set GCC as default compiler in CMakeLists.txt. Refactor some system-specific code to C++ standard. Add dependencies installation guide to README.md.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b38a3c75c..44dcbf418f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,6 @@ cmake_minimum_required(VERSION 3.10) +set(CMAKE_C_COMPILER "gcc") +set(CMAKE_CXX_COMPILER "g++") project(Desbordante) option(COPY_PYTHON_EXAMPLES "Copy Python examples" OFF) di...
5
3
0
[{"id": "G0", "claim": "Simplify the MacOS installation guide and avoid the symbolic-link commands in it, ideally following how other C++ projects handle MacOS builds.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Avoid requiring users to install...
null
Desbordante__desbordante-core__458
Desbordante/desbordante-core
458
defect
cac53cd151cf9b964d253db9c06187bbc3884c37
bebe754eadaccca83a043d9813e2e2a2b2441f85
Add new measures to Tane
This pr implements mining of afds based on error measures pdep, tau, mu_plus, rho as in "Measuring Approximate Functional Dependencies: A Comparative Study"
diff --git a/src/core/algorithms/fd/tane/enums.h b/src/core/algorithms/fd/tane/enums.h index 30f6f9c569..bb36cda518 100644 --- a/src/core/algorithms/fd/tane/enums.h +++ b/src/core/algorithms/fd/tane/enums.h @@ -3,5 +3,5 @@ #include <enum.h> namespace algos { -BETTER_ENUM(ErrorMeasure, char, per_tuple = 0, per_value...
22
22
2
[{"id": "G0", "claim": "The newly added rhs_pli parameter of PFDTane::CalculateFdError is unused.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new switch on error_measure_ in Tane::CalculateFdError does not handle the g1, per_tuple and per_val...
null
Desbordante__desbordante-core__463
Desbordante/desbordante-core
463
defect
94027b1f50c8447d6113419738417602e3f4ef57
28f2f0478e1110802678602c1dc85a39e3ba9d56
Add PFD verification
This PR implements PFD verification algorithm along with some tests, python bindings and examples.
diff --git a/examples/basic/verifying_pfd.py b/examples/basic/verifying_pfd.py new file mode 100644 index 0000000000..43c57acc4a --- /dev/null +++ b/examples/basic/verifying_pfd.py @@ -0,0 +1,32 @@ +import desbordante + +ERROR = 0.2 +PER_TUPLE = 'per_tuple' +PER_VALUE = 'per_value' +TABLE = 'examples/datasets/glitchy_s...
5
5
1
[{"id": "G0", "claim": "The reviewer is not sure a separate PFDHolds() function and the stored max_fd_error_ are needed, since afd_verifier just returns the error to the user and pfd is much like an afd, and asks that this be settled with the maintainers.", "category": "design", "verdict": "supported", "priority": "P3"...
null
Desbordante__desbordante-core__483
Desbordante/desbordante-core
483
defect
f1e0bddab486af9344b63b971a0340f6bebb5760
8948c8252c846a4602dba9eb67e893b3f8610509
Fix CORDS tests
Added option fixed_sample that indicates that cords uses sample consisting of sample_size first rows of the given table, instead of random generated one, false by default. Add all related implementation fixes.
diff --git a/src/core/algorithms/fd/sfd/cords.cpp b/src/core/algorithms/fd/sfd/cords.cpp index f69e293faf..27de4420eb 100644 --- a/src/core/algorithms/fd/sfd/cords.cpp +++ b/src/core/algorithms/fd/sfd/cords.cpp @@ -67,6 +67,8 @@ void Cords::RegisterOptions() { RegisterOption( Option{&max_amount_of_cat...
1
1
0
[{"id": "G0", "claim": "RegisterOption for kFixedSample should pass a default value (false) for the option.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Desbordante__desbordante-core__50
Desbordante/desbordante-core
50
defect
79c004080e66710a1b585e4e6eed8a6bb62f13bb
c23785cdcb7c7578e20d160681c41910a4e04fee
FastFDs parallelism
Closes #10. Implements parallelism in agree sets generation. To properly implement maximal representation generation parallel algorithm from Metanome concurrent data structures are required: unordered map, unordered set etc. It was decided to leave it as it is for now without using of third-party libraries. This should...
diff --git a/src/algorithms/FastFDs.cpp b/src/algorithms/FastFDs.cpp index 40447b1f17..ec6d43dc48 100644 --- a/src/algorithms/FastFDs.cpp +++ b/src/algorithms/FastFDs.cpp @@ -11,14 +11,15 @@ #include "AgreeSetFactory.h" #include "logging/easylogging++.h" +#include "ParallelFor.h" using std::vector, std::set; ...
6
4
1
[{"id": "G0", "claim": "No move actually happens when transferring the per-thread agree sets into agree_sets, because thread_as.begin()/end() return const iterators, so elements are copied; to move them the code should iterate over thread_as explicitly and use extract plus move.", "category": "performance", "verdict": ...
null
Desbordante__desbordante-core__614
Desbordante/desbordante-core
614
defect
eb977ec009a5483a83a0ecb8a9e01c9802b90b44
268fe48d0752314486ea5f3b7638fd6491809dbd
Implement afd metric calculator and singletons to PLI
## Summary This PR implements the AFD metric calculator and complements the Position List Index (PLI) with singletons, building upon the initial work started by Stepan Manannikov in [his fork](https://github.com/Aviu00/Desbordante/tree/new-metrics). ## Changes This implementation consists of three main parts: ...
diff --git a/src/core/algorithms/fd/afd_metric/afd_metric.h b/src/core/algorithms/fd/afd_metric/afd_metric.h new file mode 100644 index 0000000000..5266633a33 --- /dev/null +++ b/src/core/algorithms/fd/afd_metric/afd_metric.h @@ -0,0 +1,9 @@ +#pragma once + +#include <enum.h> + +namespace algos::afd_metric_calculator {...
10
5
2
[{"id": "G0", "claim": "The added converter registration references config::ErrorMeasureType, which does not exist in namespace config, so clang-tidy reports a compile error on that line.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "It looks like ...
null
Desbordante__desbordante-core__623
Desbordante/desbordante-core
623
defect
86b72c81f5827ca8d1814c081c93697c060b1e55
fe2ab2107df1585bfd961bfa2aafa4e84047217e
Fix some performance tests issues
- Add date labels in performace tests plots to make reding these plot easier; - Raise threshold for all algorithms by 5% (or higher for some specific algorithms) to prevent them from eventually failing; - Use datasets with one less attribute for TANE algorithm, because it has failed several times on datasets used bef...
diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml index 5508fe2113..9cd21c935d 100644 --- a/.github/workflows/performance-tests.yml +++ b/.github/workflows/performance-tests.yml @@ -49,23 +49,30 @@ jobs: mkdir -p old-results for (( i = 0; i < ${{ env.nu...
8
7
0
[{"id": "G0", "claim": "Use standard json.load instead of the j_load alias when reading the results file, as it is more concise.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Define Results as a class based on @dataclass instead of a namedtuple...
null
Desbordante__desbordante-core__644
Desbordante/desbordante-core
644
defect
8661561cf7b59bf146c599e6b36f992a4944ffaa
732153b76776afd55a1d1fb71d02bc7e380ebfef
Remove extra clang-format off(on)
- Remove from files with BETTER_ENUM and INSTANTIATE_TEST_SUITE_P clang-format off(on) - Add options in .clang-format file
diff --git a/.clang-format b/.clang-format index cf919c2481..a9a3bbe868 100644 --- a/.clang-format +++ b/.clang-format @@ -5,6 +5,11 @@ IndentWidth: 4 ContinuationIndentWidth: 8 ColumnLimit: 100 AllowShortFunctionsOnASingleLine: Empty + +WhitespaceSensitiveMacros: + - BETTER_ENUM + - INSTANTIATE_TEST_SUITE_P + In...
3
1
1
[{"id": "G0", "claim": "Asks whether there is a way to specify specific formatting for some macros instead of ignoring them completely.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commit summaries are too long for the project wiki and the reasoning ...
null
Desbordante__desbordante-core__98
Desbordante/desbordante-core
98
defect
ad3be9e36ebd55ee9b22fa0ce9929d708f0a7ac1
f1ee6356c85a6271e74c9b4dcd3472d539fc98a3
Implement and integrate FUN algo
Closes #20 Partially implements #63 (places algorithms into namespace `algos`)
diff --git a/pull_datasets.sh b/pull_datasets.sh old mode 100644 new mode 100755 diff --git a/run_tests.sh b/run_tests.sh index 2e2345e0e1..08880bb05e 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -18,7 +18,7 @@ do for k in $(seq 1 1) do touch $experiment_name/$j/results_${datasets[i]}.txt - ./Desbordante_run...
16
14
0
[{"id": "G0", "claim": "FunQuadruple declares a virtual destructor although the class has no virtual methods, which is strange and brings overhead; it should be removed for uniformity with the other algorithms.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim...
null
DescentDevelopers__Descent3__179
DescentDevelopers/Descent3
179
defect
47ff6e52cdd2ebd0a4bb47076a05b8967e7cdcea
c5ddba6d08ec71ffae40c86d41c6e70895512b77
Checksum unittests and Osiris types unification
Following #178, implementing Osiris checksum tests to ensure it matches after code updates. Also converted all integer types to stdint to unify them across all platforms.
diff --git a/CMakeLists.txt b/CMakeLists.txt index de02d4fe9..6996dfa0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,14 @@ if(CMAKE_CXX_BYTE_ORDER STREQUAL "BIG_ENDIAN") add_definitions("-DOUTRAGE_BIG_ENDIAN") endif() + +# 64 bit machines have a different game checksum than 32 bit machines +if (C...
7
3
2
[{"id": "G0", "claim": "This pull request should only focus on adding the tests; the Osiris type changes should be moved to their own pull request.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Confirm that the unit test was built and run before the core ...
null
DescentDevelopers__Descent3__471
DescentDevelopers/Descent3
471
defect
b33cc21dce4f020b2c57ce2783d30adc1654e008
8a63b5a8202e019d297520c4a48dd9f287d7f793
Add `-additionaldir` command-line option
## Pull Request Type <!-- Please select which type of change this most aligns with. If more than one type fits, please select multiple. --> - [ ] GitHub Workflow changes - [ ] Documentation or Wiki changes - [ ] Build and Dependency changes - [x] Runtime changes - [ ] Render changes - [ ] Audio changes ...
diff --git a/Descent3/Game2DLL.cpp b/Descent3/Game2DLL.cpp index 229aa5819..9a1216d50 100644 --- a/Descent3/Game2DLL.cpp +++ b/Descent3/Game2DLL.cpp @@ -565,7 +565,7 @@ bool InitGameModule(const char *name, module *mod) { char dll_name[_MAX_PATH * 2]; char tmp_dll_name[_MAX_PATH * 2]; // Make the hog filename ...
18
12
5
[{"id": "G0", "claim": "The optimized lookup code from cf_FindRealFileNameCaseInsensitive() should be kept and reused in the replacement path-lookup implementation rather than dropped, since the new gd_LocatePath() is probably slower.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "uncl...
null
DescentDevelopers__Descent3__72
DescentDevelopers/Descent3
72
defect
65722748836de5234a2f35f1b017df91d14b3dda
21d486a26ab119b01db07e6956bb554dd0de3026
Ensure STDCALL/STDCALLPTR is only invoked on x86
Prevent the code from trying to use stdcall for anything except (32-bit) x86 builds because it's the only platform it's applicable for. This clears up a lot of annoying warning messages. Alteration to CMakeList.txt is only whitespace clean up.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f9db790f..b057333ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,23 @@ -CMAKE_MINIMUM_REQUIRED(VERSION 3.19) +# CMake compatibility issues: don't modify this, please! +CMAKE_MINIMUM_REQUIRED( VERSION 2.4.6 ) + +MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMP...
6
2
0
[{"id": "G0", "claim": "Why does the change revert CMAKE_MINIMUM_REQUIRED from 3.19 back to 2.4.6?", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use ${CMAKE_SOURCE_DIR} instead of the bare relative path in the added include_directories(.) line....
null
DesignLiquido__delegua__1025
DesignLiquido/delegua
1,025
defect
9994e87a3809116e387778357e8109bc04be61c5
7edc1551410927a12e88a6acefffe5a89ea28779
[Pituguês] Implementa estrutura de dados do tipo tupla sem limite de tamanho
Este Pull Request implementa a estrutura de dados Tupla no dialeto Pituguês, conforme solicitado na issue #879, garantindo paridade de comportamento com tuplas do Python. ### O que foi feito - Nova Estrutura: Criação da classe TuplaPitugues. - Avaliador Sintático: - Implementação de lógica para distinguir Agr...
diff --git a/fontes/analisador-semantico/analisador-semantico-base.ts b/fontes/analisador-semantico/analisador-semantico-base.ts index a42d6f73f..f55beefbb 100644 --- a/fontes/analisador-semantico/analisador-semantico-base.ts +++ b/fontes/analisador-semantico/analisador-semantico-base.ts @@ -33,6 +33,7 @@ import { ...
1
1
0
[{"id": "G0", "claim": "The new tuple construct should be named `TuplaN` instead of `TuplaPitugues`, so that Delégua can use the same construct in the future.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DesignLiquido__delegua__1039
DesignLiquido/delegua
1,039
defect
9e3f70fdb23a0e4592a5d51fb52e61b50e61832a
23e1213fa3fd51c44910a563a654d053e8eaf582
Formatacao text operador percentual
# Descrição da Pull Request **Implementação do Operador `%` para Formatação de Strings (estilo Python)** Esta PR adiciona suporte à formatação de strings usando `%`, conforme a issue [#1011]. --- ## Principais mudanças 1. **Método `formatarStringComOperadorPorcentagem()`** - Suporta `%s`, `%d`, `%f`...
diff --git a/fontes/interpretador/interpretador-base.ts b/fontes/interpretador/interpretador-base.ts index 83aae4823..a47870b39 100644 --- a/fontes/interpretador/interpretador-base.ts +++ b/fontes/interpretador/interpretador-base.ts @@ -308,11 +308,18 @@ export class InterpretadorBase implements InterpretadorInterface ...
2
2
1
[{"id": "G0", "claim": "The formatting tests were written for Pituguês while the implementation lives in the base interpreter that serves Delégua and all other dialects, so the tests must also be moved to the base interpreter's test suite.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "int...
null
DesignLiquido__delegua__1041
DesignLiquido/delegua
1,041
defect
fc8d579e650bd78ffabdae77ab7f79fa7082527c
843f7c683f08ee97bd35a9e449af6c7ad265013a
Implementa suporte a caracteres de escape em strings
### O que foi feito Este PR implementa o processamento de caracteres de escape dentro de strings literais para o dialeto Pituguês. Foi refatorada a lógica de analisarTexto no lexador para reconhecer a barra invertida (`\`) e traduzi-la nos caracteres correspondentes: - **`\n`:** Nova linha - **`\t`:** Tabulação -...
diff --git a/fontes/lexador/dialetos/lexador-pitugues.ts b/fontes/lexador/dialetos/lexador-pitugues.ts index 0478a0e8b..a984ffbbd 100644 --- a/fontes/lexador/dialetos/lexador-pitugues.ts +++ b/fontes/lexador/dialetos/lexador-pitugues.ts @@ -182,8 +182,45 @@ export class LexadorPitugues implements LexadorInterface<Simbo...
2
1
1
[{"id": "G0", "claim": "The syntactic analyzer is now asynchronous, but the new tests call avaliadorSintatico.analisar(...) without awaiting it; the reviewer recommends merging main into the branch before updating these calls.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
DesignLiquido__delegua__1055
DesignLiquido/delegua
1,055
defect
e71653e350489bab59175650c4584aa1a1c9f982
2335f2f0483501f9c2e931acf311f141b38f0c8e
[Pituguês] Implementa métodos de primitiva limpar, contar, estender, inserir e indice para vetores
# O que foi feito Este PR implementa cinco novos métodos nativos para a primitiva de vetores no dialeto Pituguês, visando a paridade funcional com as listas de Python. Além da implementação core, foram adicionadas validações rigorosas de argumentos e tipos para garantir a estabilidade do interpretador. Métodos ad...
diff --git a/fontes/bibliotecas/dialetos/pitugues/primitivas-vetor.ts b/fontes/bibliotecas/dialetos/pitugues/primitivas-vetor.ts index 475c7f8ff..563a5a04c 100644 --- a/fontes/bibliotecas/dialetos/pitugues/primitivas-vetor.ts +++ b/fontes/bibliotecas/dialetos/pitugues/primitivas-vetor.ts @@ -3,6 +3,7 @@ import { Interp...
1
1
1
[{"id": "G0", "claim": "The `// VERIFICAR ISSO` marker left in the new vetor.estender() tests flags the object-literal case as unverified — the reviewer asks what it refers to and whether the behavior (extending a vetor with a dicionário) is correct or still requires work.", "category": "correctness", "verdict": "suppo...
null
DesignLiquido__delegua__1094
DesignLiquido/delegua
1,094
defect
89ff0ce4ea372854793c4fedfc9a1f7cb1cbf30e
f0fe2189d0a0de1b3200fb03a1290d3a4d858b77
Aprimoramento da função `intervalo()`
Este PR introduz melhorias na função nativa `intervalo()` em Delégua (e consequentemente no Pituguês), aproximando seu comportamento ao `range()` do Python, conforme solicitado na issue #1092. ## O que foi feito - **Suporte ao parâmetro de passo (step):** Agora a função aceita um terceiro argumento opcional para ...
diff --git a/fontes/bibliotecas/biblioteca-global.ts b/fontes/bibliotecas/biblioteca-global.ts index 1acbcb94d..8715d9aae 100644 --- a/fontes/bibliotecas/biblioteca-global.ts +++ b/fontes/bibliotecas/biblioteca-global.ts @@ -810,47 +810,98 @@ export async function longo( * @param {InterpretadorInterface} interpretado...
2
2
1
[{"id": "G0", "claim": "The new test 'Chamada a função nativa intervalo sem início definido' fails because _saida is never written, so errors in interpretation or an earlier stage (the syntax analyzer) need to be checked, and an intermediate syntax-analyzer test should be added.", "category": "correctness", "verdict": ...
null
DesignLiquido__delegua__1096
DesignLiquido/delegua
1,096
defect
97ef69886fb9d0e72c00f1cd44f7a43470c6f90e
2a7e4d190ddfd3b35bfbd90625672c3c296f7486
Montão para classes.
Para o correto funcionamento por referências, classes precisam ser instanciadas no montão, ao invés de valores na pilha de escopos de execução.
diff --git a/fontes/interpretador/interpretador.ts b/fontes/interpretador/interpretador.ts index d372c73db..ef6e7c52f 100644 --- a/fontes/interpretador/interpretador.ts +++ b/fontes/interpretador/interpretador.ts @@ -175,6 +175,10 @@ export class Interpretador extends InterpretadorBase implements VisitanteDelegua ...
1
1
1
[{"id": "G0", "claim": "Because `visitarExpressaoDeChamada()` registers the heap address in the current scope, an instance created inside a block (e.g. `se`/`enquanto`) and assigned to a variable declared in an outer scope would leave a dangling `ReferenciaMontao` when the block exits and `executarUltimoEscopo()` drops...
null
DesignLiquido__delegua__1099
DesignLiquido/delegua
1,099
defect
b50f6d99f4eab6626a2be66dcc80a9d6a7320581
0ebb868868c453f4c8dee8d97d46ddcc23433ca2
Implementação de polimorfismo de métodos de classes.
Por exemplo: ``` classe Conversor { converter(valor: inteiro) { escreva("inteiro: " + texto(valor)) } converter(valor: texto) { escreva("texto: " + valor) } } var conv = Conversor() conv.converter(42) conv.converter("olá") ``` Até então, não seria possível implementar o...
diff --git a/fontes/bibliotecas/biblioteca-global.ts b/fontes/bibliotecas/biblioteca-global.ts index 8715d9aae..bcd1ea001 100644 --- a/fontes/bibliotecas/biblioteca-global.ts +++ b/fontes/bibliotecas/biblioteca-global.ts @@ -1508,8 +1508,9 @@ export async function tamanho(interpretador: InterpretadorInterface, objeto: ...
1
1
1
[{"id": "G0", "claim": "When a class has overloaded constructors, `metodos.inicializacao` can be an array, and the current code in `tamanho()` falls through to 0, so it should compute the largest parameter count among the overloads that are initializers (or another consistent rule) instead.", "category": "correctness",...
null
DesignLiquido__delegua__1104
DesignLiquido/delegua
1,104
defect
1784da815ff8a0e5e3e757608872d593a446df53
989d432b60356e72024b7f2522075f548fb4cc00
Tipagem explícita em Pituguês.
Pituguês passa a aceitar tipagem explícita. Por exemplo: ```py t: texto[] = ['gggg', 'vvv'] escreva(t) ```
diff --git a/fontes/analisador-semantico/dialetos/analisador-semantico-pitugues.ts b/fontes/analisador-semantico/dialetos/analisador-semantico-pitugues.ts index f7b7dda7a..84028b8d2 100644 --- a/fontes/analisador-semantico/dialetos/analisador-semantico-pitugues.ts +++ b/fontes/analisador-semantico/dialetos/analisador-s...
7
4
3
[{"id": "G0", "claim": "In the 'Variável sem tipo explícito aceita qualquer valor' and 'Reatribuição com mesmo tipo funciona normalmente' interpreter tests, `_saidas[0]` is accessed without first asserting `expect(_saidas).toHaveLength(1)`, which can mask failures such as no output or extra outputs; add the length asse...
null
DesignLiquido__delegua__1150
DesignLiquido/delegua
1,150
defect
c4a4b6ee9d4512486f863e9427dbe0af58e786f6
fdedab5e5d086fd584024526efe64e76a214a9d5
Implementação de bibliotecas de Tenda que podem funcionar sem sistema de arquivos e periféricos
Resolve https://github.com/DesignLiquido/delegua/issues/789.
diff --git a/.gitignore b/.gitignore index b3a6929e1..bf8383b2f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ coverage/ dist/ docs/ node_modules/ +planos/ .vscode/settings.json diff --git a/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-tenda.ts b/fontes/avaliador-sintatico/dialetos/avalia...
8
4
2
[{"id": "G0", "claim": "The 'aleatório() retorna valor entre 0 e 1' test only checks the absence of errors and makes no assertion about the value, which can mask regressions such as NaN or null; it should capture r and assert it is a finite number with 0 <= r < 1.", "category": "testing", "verdict": "supported", "prior...
null
DesignLiquido__delegua__291
DesignLiquido/delegua
291
defect
44c593bbb04a8c822c46a736e7e75c30447b3d5c
276a69bd42c317c18027958b6c3f891e2691677d
Birl
Implementando novas tipagem de birl como *MONSTRAO*, *MONSTRINHO* e *TRAPEZIO DESCENDENTE*. Embora esses tipos representem respectivamente *long int*, *short int* e *double* eles não são utilizados por baixo dos panos. Exemplos as 3 variações de inteiro tem o mesmo tratamento e todos são um int de 8 bytes (64 bit...
diff --git a/fontes/avaliador-sintatico/avaliador-sintatico-base.ts b/fontes/avaliador-sintatico/avaliador-sintatico-base.ts index f427cd852..3025e948a 100644 --- a/fontes/avaliador-sintatico/avaliador-sintatico-base.ts +++ b/fontes/avaliador-sintatico/avaliador-sintatico-base.ts @@ -1,25 +1,25 @@ import { Binario, Ch...
2
2
0
[{"id": "G0", "claim": "The new consumirSemError() helper is unnecessary because verificarSeSimboloEIgualA() already consumes the symbol without errors, so the existing method should be used instead of adding this helper to the base class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
DesignLiquido__delegua__390
DesignLiquido/delegua
390
defect
ceac6835942373d508b4ffa64f0b6417e8aab30b
7f477a2ffa891517d021a5b6a8d5da60d6dc19fe
#384 Melhoria micro lexador e testes para interpolação
Resolve: https://github.com/DesignLiquido/delegua/issues/384
diff --git a/.vscode/launch.json b/.vscode/launch.json index b4e4b531c..9600893c3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -637,7 +637,7 @@ "runtimeArgs": [ "--inspect-brk", "${workspaceRoot}/node_modules/jest/bin/jest.js", - "micro-aval...
11
10
1
[{"id": "G0", "claim": "If only a single promise is being evaluated, the Promise.all wrapper in retirarInterpolacao is unnecessary and should be dropped.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The interpolated variables should be evaluated in par...
null
DesignLiquido__delegua__448
DesignLiquido/delegua
448
defect
766b7958c62d9f249c7d9b5fcdd19866730af744
bac23678167ba6c86cb58cc142c1d10202a65d1a
#446 Método ordenar não está ordenando vetor de textos
Resolve: https://github.com/DesignLiquido/delegua/issues/446
diff --git a/fontes/bibliotecas/primitivas-vetor.ts b/fontes/bibliotecas/primitivas-vetor.ts index 12da3dd9c..61f122b7d 100644 --- a/fontes/bibliotecas/primitivas-vetor.ts +++ b/fontes/bibliotecas/primitivas-vetor.ts @@ -76,7 +76,7 @@ export default { return vetor; } - return vetor.sort((...
1
1
1
[{"id": "G0", "claim": "Replacing the numeric comparator with plain vetor.sort() also removes the correct numeric ordering, so the code must test whether the vector holds numbers or text instead of simply dropping the comparator.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
DesignLiquido__delegua__535
DesignLiquido/delegua
535
defect
d266873d4bdbe874eeeacf6c875f8d21a9ac4116
fef43794b0571ecf2f5abb2ef13b777e317dfeb2
#376 Implementação regex
Resolve: https://github.com/DesignLiquido/delegua/issues/376
diff --git a/fontes/analisador-semantico/analisador-semantico.ts b/fontes/analisador-semantico/analisador-semantico.ts index 3ed04d067..8aef8d4fb 100644 --- a/fontes/analisador-semantico/analisador-semantico.ts +++ b/fontes/analisador-semantico/analisador-semantico.ts @@ -1,4 +1,4 @@ -import { Atribuir, Chamada, FimPar...
1
1
1
[{"id": "G0", "claim": "The semantic analyzer must never throw; the new `visitarExpressaoExpressaoRegular` implementations in `analisador-semantico.ts` and `analisador-semantico-birl.ts` should `return Promise.resolve()` instead of `throw new Error('Método não implementado.')`.", "category": "correctness", "verdict": "...
null
DesignLiquido__delegua__562
DesignLiquido/delegua
562
defect
725e9e2e0213ceb1f53edc2c6d68dd6efdb4e612
7d421e1838ad99bc7485f1c3ceab9b34cf6f0014
Decoradores para classes e métodos
Implementa https://github.com/DesignLiquido/delegua/discussions/559
diff --git a/fontes/avaliador-sintatico/avaliador-sintatico.ts b/fontes/avaliador-sintatico/avaliador-sintatico.ts index 7c6111c3b..0dd5249c4 100644 --- a/fontes/avaliador-sintatico/avaliador-sintatico.ts +++ b/fontes/avaliador-sintatico/avaliador-sintatico.ts @@ -23,6 +23,7 @@ import { Vetor, Isto, Expr...
2
2
1
[{"id": "G0", "claim": "The variable `tamanhoLinhaAtual` in the decorator-parsing loop is misleading — it holds just the current line number (the reviewer asks why a 'line size' matters) — and should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
DesignLiquido__delegua__585
DesignLiquido/delegua
585
defect
011f5dec829ca8328d454a5dd9cd8b66399ee6ca
83e7933ed299fe08af18ab60a81877109fd9d5a1
Analisador semantico visualg
## Descrição da Pull Request ### Funcionalidades Implementadas 1. **Constante/Variável Não Existente** - Implementada a verificação de existência de constantes/variáveis antes do acesso, lançando um erro caso uma constante/variável não declarada seja referenciada. 2. **Atribuição de Tipos Incompatíveis ent...
diff --git a/fontes/analisador-semantico/dialetos/analisador-semantico-visualg.ts b/fontes/analisador-semantico/dialetos/analisador-semantico-visualg.ts new file mode 100644 index 000000000..b4c6540ad --- /dev/null +++ b/fontes/analisador-semantico/dialetos/analisador-semantico-visualg.ts @@ -0,0 +1,394 @@ +import { At...
3
2
0
[{"id": "G0", "claim": "The debug statement console.log(\"Estou verificando\") added at the start of validarSegmentoVar can be removed now.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "verificarDefinicaoTipoAtual checks against Delégua's data ...
null
DesignLiquido__delegua__686
DesignLiquido/delegua
686
defect
ed705b1791699360ea0b0e78036514c233bbc4fb
309e2dfae513237750a36a6e42d6ce94305606bb
685 erro ao usar o operador += em arrays
Nesta PR modifico a lógica para atender ao caso de atribuição em itens de vetor. Essa é uma versão simples, creio que de para melhorar isso.
diff --git a/fontes/avaliador-sintatico/avaliador-sintatico.ts b/fontes/avaliador-sintatico/avaliador-sintatico.ts index b3da413b3..d3dd9abe2 100644 --- a/fontes/avaliador-sintatico/avaliador-sintatico.ts +++ b/fontes/avaliador-sintatico/avaliador-sintatico.ts @@ -1,66 +1,66 @@ -import tiposDeSimbolos from '../tipos-de...
1
1
1
[{"id": "G0", "claim": "The reviewer asks why the 'Aglutinação de argumentos' test was skipped with it.skip in the test file.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DesignLiquido__delegua__745
DesignLiquido/delegua
745
defect
c30a55ea9903efc19ba7ce4080ee9d343256fb26
a6da52dfabe202f45d251c4abed99b0aee3a15be
Atualização em metodologia de tradução para tradutor JS.
Resolve https://github.com/DesignLiquido/delegua/issues/741
diff --git a/fontes/tradutores/tradutor-javascript.ts b/fontes/tradutores/tradutor-javascript.ts index 00b0c9538..e89c1ff68 100644 --- a/fontes/tradutores/tradutor-javascript.ts +++ b/fontes/tradutores/tradutor-javascript.ts @@ -9,6 +9,7 @@ import { Binario, Chamada, Comentario, + Construto, Defi...
5
5
5
[{"id": "G0", "claim": "The unit tests are failing with this change and must be made to pass.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The 'tamanho' case emits Python's len() where the JS string/array property length should be used.", "category": ...
null
DesignLiquido__delegua__937
DesignLiquido/delegua
937
defect
415a56f36e7531f778c3d2229dd8f6f537deb9e0
33ce71da08bbc3ab06c8c17e1b47e01ff6ce43c4
feat(pitugues): adiciona a função de texto 'encontre'
### O que este PR faz? Este PR adiciona a função nativa encontre() ao dialeto Pituguês, permitindo a busca literal de subtextos. O comportamento é inspirado na função find() do Python e inclui um parâmetro opcional para definir o índice de início da busca. ### Resolve a issue: Resolve a issue #934 ### Como foi tes...
diff --git a/fontes/bibliotecas/dialetos/egua-classico/textos.ts b/fontes/bibliotecas/dialetos/egua-classico/textos.ts index 581c84001..5f6446219 100644 --- a/fontes/bibliotecas/dialetos/egua-classico/textos.ts +++ b/fontes/bibliotecas/dialetos/egua-classico/textos.ts @@ -215,3 +215,24 @@ module.exports.apara = functio...
2
2
1
[{"id": "G0", "claim": "The `encontre` function added to fontes/bibliotecas/dialetos/egua-classico/textos.ts should not be added there because the function does not exist in the Égua Clássico dialect.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
DesignLiquido__delegua__948
DesignLiquido/delegua
948
defect
fd570a8bf16706c33422389d0b31358eb093123d
d5f969581a8a09eca62d1da6ddfcca3a0be46f11
adiciona micro lexador pitugues
Cria micro lexador para Pituguês, possibilitando que a interpolação de texto seja feita de forma diferente e independente de Delégua. ## Arquivos modificados - Adicionado: `fontes\lexador\micro-lexador-pitugues.ts` - Adicionado: `testes\pitugues\micro-lexador.test.ts` Fix #939
diff --git a/fontes/lexador/micro-lexador-pitugues.ts b/fontes/lexador/micro-lexador-pitugues.ts new file mode 100644 index 000000000..eedadbf60 --- /dev/null +++ b/fontes/lexador/micro-lexador-pitugues.ts @@ -0,0 +1,240 @@ +import { SimboloInterface } from '../interfaces'; +import { RetornoLexador } from '../interface...
1
1
1
[{"id": "G0", "claim": "Unit tests should be written for the new micro lexer.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DesignLiquido__delegua__966
DesignLiquido/delegua
966
defect
2839ffe7a39c09affa854fbe8a51838a4bb1dd58
3fb851ccfc597ffde370849c84622772a1cd413f
adiciona suporte à interpolação de variáveis em textos
Esta PR adiciona suporte à interpolação de variáveis em textos adicionando f-strings como no Python ## Modificações - Modificado: `fontes\avaliador-sintatico\dialetos\avaliador-sintatico-pitugues.ts`, `testes\pitugues\micro-lexador.test.ts` e `testes\pitugues\interpretador.test.ts` fix #910
diff --git a/fontes/lexador/micro-lexador-pitugues.ts b/fontes/lexador/micro-lexador-pitugues.ts index 4385ed59d..f4cc96e4e 100644 --- a/fontes/lexador/micro-lexador-pitugues.ts +++ b/fontes/lexador/micro-lexador-pitugues.ts @@ -6,6 +6,8 @@ import { palavrasReservadasMicroGramatica as palavrasReservadas } from './palav...
1
1
1
[{"id": "G0", "claim": "The resolverInterpolacoes implementation should not live inside the micro lexador; the author expected it as an override of resolverInterpolacoes in the Pituguês interpreter.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DesignLiquido__delegua__969
DesignLiquido/delegua
969
defect
65fea9cfe377d77ca420be8c761647119e9808d1
d0ac267cfe9ebeb01fe6eed73e33ec8078185b9a
Texto multilinha
Resolve: https://github.com/DesignLiquido/delegua/issues/912 Issue relacionada: https://github.com/DesignLiquido/delegua/issues/968
diff --git a/fontes/lexador/dialetos/lexador-pitugues.ts b/fontes/lexador/dialetos/lexador-pitugues.ts index 4a9a9f6fd..623e3aab8 100644 --- a/fontes/lexador/dialetos/lexador-pitugues.ts +++ b/fontes/lexador/dialetos/lexador-pitugues.ts @@ -138,6 +138,51 @@ export class LexadorPitugues implements LexadorInterface<Simbo...
2
2
2
[{"id": "G0", "claim": "Reading `this.atual + 2`/`proximoSimbolo()` without always testing the end of the code can put the lexer in an error state when a quote marker sits at the end of the input; multiline mode should be entered from `analisarTexto` only after finding an empty text, and missing termination symbols mus...
null
DesignLiquido__delegua__970
DesignLiquido/delegua
970
defect
959de9b0c2a0513c757a4e2cf43b77263d6bdb46
e8be8b3d7db40478c5cd362db9b82f3507807c58
Novo método `encontrar_ultimo`
Resolve: https://github.com/DesignLiquido/delegua/issues/935 Issue relacionada: https://github.com/DesignLiquido/delegua/issues/968
diff --git a/fontes/bibliotecas/dialetos/pitugues/primitivas-texto.ts b/fontes/bibliotecas/dialetos/pitugues/primitivas-texto.ts index b353d9501..40dec5111 100644 --- a/fontes/bibliotecas/dialetos/pitugues/primitivas-texto.ts +++ b/fontes/bibliotecas/dialetos/pitugues/primitivas-texto.ts @@ -167,6 +167,62 @@ export def...
1
1
0
[{"id": "G0", "claim": "Rename the new method `encontre_ultimo` to the infinitive form `encontrar_ultimo`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DetachHead__basedpyright__1151
DetachHead/basedpyright
1,151
defect
57f2e36bc3a22bc017d614b5374ad6928b3cab0f
9ff008e56116d32b039d12ffa4f45ac671f84557
Suggest all non-private variables in autoimport
Fixes #1007
diff --git a/packages/pyright-internal/src/languageService/autoImporter.ts b/packages/pyright-internal/src/languageService/autoImporter.ts index 52b1100a20..eb56a504b9 100644 --- a/packages/pyright-internal/src/languageService/autoImporter.ts +++ b/packages/pyright-internal/src/languageService/autoImporter.ts @@ -577,9...
1
1
1
[{"id": "G0", "claim": "The import suggestion should just always be included (to address #1007) instead of only suggesting public constants, type aliases and __all__ variables.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DetachHead__basedpyright__1199
DetachHead/basedpyright
1,199
defect
83a7572f357f4aa4c265aa35ff53a91fe2db1373
ffee2a3bd9ed78ae1c30ee31e1a241e1c6965df2
Add configurable file enumeration timeout settings
## Description This PR introduces a configuration, * `basedpyright.analysis.fileEnumerationTimeout`: Controls when to show a "slow enumeration" warning (in seconds). Default is 10 seconds. Setting to 0 disables the warning completely. This setting is only applicable to the VS Code extension and only makes sens...
diff --git a/docs/configuration/language-server-settings.md b/docs/configuration/language-server-settings.md index 7ba362db76..fd16ba9bb7 100644 --- a/docs/configuration/language-server-settings.md +++ b/docs/configuration/language-server-settings.md @@ -57,6 +57,8 @@ the following settings are exclusive to basedpyrigh...
1
1
1
[{"id": "G0", "claim": "If serverSettings.fileEnumerationTimeoutInSec is set to 0, the truthiness check skips the assignment so the value silently becomes the default 10 instead of 0; the check should be `!== undefined`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DetachHead__basedpyright__1267
DetachHead/basedpyright
1,267
defect
88b93124939f4b30ea8d9a6a61c1c02a596b949a
bdda9b3d0f661fc14cf03c9060065ae7cbb4114e
improve docstring parsing for parameters
Per #1266, try to do a better job of parsing function docstrings for information about the function parameters. reST and Epytext both separate the type specification from the parameter description. I don't think it would be too bad to extend what I've done here to look for those separate lines and include their cont...
diff --git a/packages/pyright-internal/src/analyzer/docStringUtils.ts b/packages/pyright-internal/src/analyzer/docStringUtils.ts index e1f33c36d0..e5aaab0cd8 100644 --- a/packages/pyright-internal/src/analyzer/docStringUtils.ts +++ b/packages/pyright-internal/src/analyzer/docStringUtils.ts @@ -21,7 +21,7 @@ export func...
6
5
1
[{"id": "G0", "claim": "The `trim` field should be replaced with explicit `prefix`/`suffix` markers so the docstring-type array is less error-prone to update.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment blocks describing the docst...
null
DetachHead__basedpyright__1292
DetachHead/basedpyright
1,292
defect
0e751de8183ed305969274abaa323e4c75a2cd38
6491a465f1b092baadbb3d7ed3b05f2b4c40c445
Do not autocomplete `@override` when `reportExplicitOverride` is disabled
Fixes #1290.
diff --git a/docs/configuration/config-files.md b/docs/configuration/config-files.md index 87434aa4d1..f291a531ea 100644 --- a/docs/configuration/config-files.md +++ b/docs/configuration/config-files.md @@ -267,7 +267,7 @@ The following settings allow more fine grained control over the **typeCheckingMo - <a name="re...
2
2
0
[{"id": "G0", "claim": "The accidental whitespace-only changes in completions.test.ts should be reverted because they can cause unnecessary merge conflicts with upstream.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should use `//...
null
DetachHead__basedpyright__1340
DetachHead/basedpyright
1,340
defect
1662bcda0f8b2af72d0cfdb6d684f187dfcc487b
541fd9d6df3a56535af85cb1aa5e981309ce3b90
Configuration for function parameter inlay hints where the name matches
fixes #1339
diff --git a/docs/configuration/language-server-settings.md b/docs/configuration/language-server-settings.md index ed68dd7560..29878af3f7 100644 --- a/docs/configuration/language-server-settings.md +++ b/docs/configuration/language-server-settings.md @@ -47,6 +47,8 @@ the following settings are exclusive to basedpyrigh...
2
2
0
[{"id": "G0", "claim": "The docs entry for basedpyright.analysis.inlayHints.callArgumentNamesMatching should say the hint shows when the input expression is a variable with the same name as the parameter, not merely when the input matches the argument name.", "category": "documentation", "verdict": "supported", "priori...
null
DetachHead__basedpyright__1437
DetachHead/basedpyright
1,437
defect
fade26f00f56b80fb8f7e5423dd6e130aa3c8a5d
fcb20fc84dbb64909983923b2dafe099d2e94b1d
make "allowedUntypedLibraries" work on overloads
Fixes #1419 I did not find tests related to this rule, so I skipped implementing them. If tests are needed could I get some guidance on how to implement them?
diff --git a/packages/pyright-internal/src/analyzer/typeEvaluator.ts b/packages/pyright-internal/src/analyzer/typeEvaluator.ts index ce5ed3d9a4..75fa611fcc 100644 --- a/packages/pyright-internal/src/analyzer/typeEvaluator.ts +++ b/packages/pyright-internal/src/analyzer/typeEvaluator.ts @@ -15409,11 +15409,16 @@ export ...
4
4
2
[{"id": "G0", "claim": "Tests for the new allowedUntypedLibraries-on-overloads behavior should be placed in typeEvaluatorBased.test.ts, using multiple source files, based on the minimal repro from issue #1419.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim...
null
DetachHead__basedpyright__1451
DetachHead/basedpyright
1,451
defect
23dcdfd0c93927c833bbe55a13423aa5c7f81f5d
9c4a1cb0f988f484357a1cbdac4e0a464f0fe6d1
Semantic Tokens for custom builtins specified in project `__builtins__.pyi`
I really don't like how `getProjectBuiltInType` is implemented. A second look over it would be appreciated. Closes #1450
diff --git a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts index 0bdfd885e2..280268c85b 100644 --- a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts +++ b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts @@ -2...
3
3
2
[{"id": "G0", "claim": "Use CustomSemanticTokenModifiers.builtin for both real builtins and ones defined in __builtins__.pyi, and keep SemanticTokenModifiers.defaultLibrary only for real builtins.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test...
null
DetachHead__basedpyright__1469
DetachHead/basedpyright
1,469
defect
fe1a86cc2fae90ee411a6df5e7db066fc780443a
599325d10b98991a66287147c4c930c90e25151d
Improved Semantic Tokens: Enums, Properties, Constants, and Static Methods
- fixes #1318 - fixes #1391 - fixes #482 - fixes #364 - fixes #262 - fixes #1059 This PR improved semantic tokens and their modifiers in a few ways: - The modifier `declaration` is used instead of `definition` (consistent with Pylance). - Enum classes and their members are now represented using the `enum` a...
diff --git a/packages/pyright-internal/src/analyzer/declarationUtils.ts b/packages/pyright-internal/src/analyzer/declarationUtils.ts index 3caea332e2..66cbde28da 100644 --- a/packages/pyright-internal/src/analyzer/declarationUtils.ts +++ b/packages/pyright-internal/src/analyzer/declarationUtils.ts @@ -431,3 +431,9 @@ e...
11
10
4
[{"id": "G0", "claim": "A test for the new `enum` and `enumMember` token types should be added, or added to an existing test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The magic attribute dunders (`__getattribute__`, `__getattr__`, `__setattr__`, `...
null
DetachHead__basedpyright__1498
DetachHead/basedpyright
1,498
defect
b56fce378214f88c47d9b3f5488054df6ef6d47b
6563911636bb702f7c10b318085a7f76e87b6709
don't report `reportInvalidTypeVarUse` for type var in return type
i have officially declared war on this stupid rule fixes: #1489
diff --git a/docs/benefits-over-pyright/fixes-for-rules.md b/docs/benefits-over-pyright/fixes-for-rules.md index 60c750f9b3..72cda60ff2 100644 --- a/docs/benefits-over-pyright/fixes-for-rules.md +++ b/docs/benefits-over-pyright/fixes-for-rules.md @@ -34,3 +34,12 @@ the reason we added `reportUnreachable` to basedpyrigh...
3
3
2
[{"id": "G0", "claim": "A function whose return type is just the type var itself (e.g. `def f[T]() -> T:`) should probably be considered invalid and reported by `reportInvalidTypeVarUse` rather than exempted, and when it is reported the error message should say to use `Never` instead of `object`.", "category": "correct...
null
DetachHead__basedpyright__1521
DetachHead/basedpyright
1,521
defect
8b22d025c1d64de99764f0e3206024673f1af3d7
8d583897f9ca718c562182e5293ff1281896639e
Use declarations as the primary source of semantic tokens
The main change introduced by this PR is to use the declarations of a given `NameNode` (if basedpyright is able to find any) as the primary source of information when determining semantic tokens instead of using the type of the `NameNode`, while using the type for refining the classification and as a fallback. This ma...
diff --git a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts index 80d7773d9d..f1b3795d26 100644 --- a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts +++ b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts @@ -1...
11
10
2
[{"id": "G0", "claim": "Type aliases should not all be highlighted as `class`: `type` is more suitable where the alias does not refer to a class (e.g. a union like `type Foo = int | str`), and any cases where the wrong token is used should be fixed.", "category": "design", "verdict": "supported", "priority": "P1", "sco...
null
DetachHead__basedpyright__1539
DetachHead/basedpyright
1,539
defect
52f52c7ebc7854e16d4a6ab11f9d6c0949f1b3aa
faf49e3f79e86b0549d54fda2682d4074a69909b
feat(autoImporter): suggest import aliases from user code if explicitly re-exported
fixes #772 ### Why We often use this pattern in our monorepo: Given this structure: ``` components ├── __init__.py └── foo ├── __init__.py ├── internal │ ├── __init__.py │ └── something_internal.py └── public ├── __init__.py └── something_public.py ``` We'...
diff --git a/packages/pyright-internal/src/languageService/autoImporter.ts b/packages/pyright-internal/src/languageService/autoImporter.ts index 37eab8678c..c20f001d6f 100644 --- a/packages/pyright-internal/src/languageService/autoImporter.ts +++ b/packages/pyright-internal/src/languageService/autoImporter.ts @@ -158,9...
2
2
2
[{"id": "G0", "claim": "The auto-import exclusion for import aliases should also skip explicit re-exports (an import-from alias whose name matches the symbol), which would resolve #772, as shown in the suggested condition.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"...
null
DetachHead__basedpyright__1557
DetachHead/basedpyright
1,557
defect
291c86e559ae53ecc43e53923764802a95478716
3a3e569f2ae99aa8789ea578477f876d04e304b5
Type-based descriptor instance highlighting
This PR addresses #1538 by highlighting properties and other descriptor instances based on the type of the value represented by the descriptor. For this, properties need to be handled separately, as querying the `__get__`/`__set__` method of the descriptor instance does not work for properties; instead, information ...
diff --git a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts index c545354ab6..40a913a05f 100644 --- a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts +++ b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts @@ -1...
3
3
0
[{"id": "G0", "claim": "The comment on `_getPropertyInfo` should be turned into a JSDoc block (`/** @returns ... */) like the suggestion proposes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Either the `isWrite` check is redundant with `isReadO...
null
DetachHead__basedpyright__1568
DetachHead/basedpyright
1,568
defect
59839e2ad93af9ef7a53147ac71184666f7332b3
d572250d582ab8e84bb711831f8aa2b9ab1c7bf7
Add experimental `skip_replace` flag to `dataclass_transform`
This PR solves two issues currently present in [based]pyright ## Issue 1 Right now, pyright and basedpyright assume that `dataclass_transform`ed classes support the `__replace__` method introduced in `3.13`. It is not a requirement for `dataclass_transform` to define a `__replace__` method on the class, so I thin...
diff --git a/packages/pyright-internal/src/analyzer/dataClasses.ts b/packages/pyright-internal/src/analyzer/dataClasses.ts index 2b021dc78f..2380e271a9 100644 --- a/packages/pyright-internal/src/analyzer/dataClasses.ts +++ b/packages/pyright-internal/src/analyzer/dataClasses.ts @@ -682,10 +682,6 @@ export function synt...
9
7
0
[{"id": "G0", "claim": "Basedpyright-exclusive functionality like `skip_replace` should be gated behind a new separate setting (something like `enableNonStandardFeatures`, later named `enableBasedFeatures`) so that `enableExperimentalFeatures` stays reserved for features officially in pyright and future breaking change...
null
DetachHead__basedpyright__1581
DetachHead/basedpyright
1,581
defect
66689f77e76c0444e53cfa8213a00745d4365f11
1383eb24ffd9f91f7fe8f8d1b74341ddfaf5015a
Ban default value in `self` and `cls` parameters
[based]pyright currently allows this: ```py class Foo: def instance_method(self=42) -> None: pass @classmethod def class_method(cls=42) -> None: pass ``` It could be just a quirk with the "defaults for a parameter whose type contains a typevar are checked at call site" feature...
diff --git a/packages/pyright-internal/src/analyzer/checker.ts b/packages/pyright-internal/src/analyzer/checker.ts index 8b64ff2054..875da925fb 100644 --- a/packages/pyright-internal/src/analyzer/checker.ts +++ b/packages/pyright-internal/src/analyzer/checker.ts @@ -7386,6 +7386,7 @@ export class Checker extends ParseT...
2
2
1
[{"id": "G0", "claim": "The new diagnostics for a default value on a self/cls parameter should be emitted under a dedicated new diagnostic rule instead of reportGeneralTypeIssues, so users can turn them off separately.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G4"...
null
DetachHead__basedpyright__1632
DetachHead/basedpyright
1,632
defect
1a094f91948a05adf0f366e6ae6809955d706f82
04f4564db6981601d0da5f69e8ff9a78a1f99c4e
Fix issues with highlighting decorators/properties
This PR addresses #1622 and #1623 by adjusting how semantic tokens are determined for descriptors. This includes two changes: - The last parameter of a descriptor `__set__` method is used to determine its type instead of the second parameter, which works in situations in which a dummy in-between parameter is introdu...
diff --git a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts index 386427ab0..36b944cbb 100644 --- a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts +++ b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts @@ -40,...
1
1
0
[{"id": "G0", "claim": "The expected token comment in the test snapshot is misspelled 'sel' and should read 'self'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DetachHead__basedpyright__1636
DetachHead/basedpyright
1,636
defect
f982934bfe1cc2ef54ba50e5223b9b56e198a971
2916d3ca5027cf54f29c17dad7c7c550a3b586ef
implement `textDocument/implementation` to find overrides
This is one of the 2 directions of navigation in: https://github.com/DetachHead/basedpyright/issues/355 A lot of logic is copied from "Find all references", because a lot of what it does is similar. You can right click on a method or class attribute to find all overrides of that method or class attribute. You ca...
diff --git a/packages/pyright-internal/src/languageServerBase.ts b/packages/pyright-internal/src/languageServerBase.ts index c97c858e8e..e433537af3 100644 --- a/packages/pyright-internal/src/languageServerBase.ts +++ b/packages/pyright-internal/src/languageServerBase.ts @@ -52,6 +52,7 @@ import { ExecuteCommandPar...
15
9
1
[{"id": "G0", "claim": "ImplementationsResult duplicates code from ReferencesResult in referencesProvider.ts, so make a common subclass that both extend to remove the duplication.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer wondere...
null
DetachHead__basedpyright__1644
DetachHead/basedpyright
1,644
defect
acfea41d0026bf99fa9084f101776ff9bdf5ca70
2036a05aa64d80ddc2ecaaa3aef4061e9a3f01a0
Useful completions for `Enum` class instances, `bool`, and more literals
This PR addresses #1621 by adding useful completions when assigning to an `Enum` class instance. While this is pretty straightforward in principle, the main challenge is to find the local names of the `Enum` type or, if the `Enum` type is not locally available (because it has not been imported), to determine an approp...
diff --git a/packages/pyright-internal/src/analyzer/typeNameUtils.ts b/packages/pyright-internal/src/analyzer/typeNameUtils.ts new file mode 100644 index 000000000..187eedfcf --- /dev/null +++ b/packages/pyright-internal/src/analyzer/typeNameUtils.ts @@ -0,0 +1,77 @@ +import { getEnclosingClass } from './parseTreeUtils...
10
9
1
[{"id": "G0", "claim": "The `getLocalTypeNames` docstring could benefit from having an example, like `getNestedClassNameParts` does.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment misspells \"the type of\" as \"the tyoe if\" and should...
null
DetachHead__basedpyright__1670
DetachHead/basedpyright
1,670
defect
d3517c102cb735ddf2757ef648f84dcfc546c63f
7ec1d800dbbb98c03c94d165b2545dd0525e0bb8
Improve semantic tokens for `Any`, unknown, and unions
This PR addresses #1646 by improving the handling of `Any`/unknown, which are now always highlighted as a `variable`/`property` (unless the variable/property stores/represents `Any` itself, in which case it is still highlighted as a `type`). While I was at it, I’ve also refined the highlighting of unions of function/o...
diff --git a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts index 36b944cbb..3168e5194 100644 --- a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts +++ b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts @@ -5,1...
6
6
0
[{"id": "G0", "claim": "The variable-declaration token logic should be restructured so the token type is computed in one conditional expression instead of a mutable variable and separate assignments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
DetachHead__basedpyright__1680
DetachHead/basedpyright
1,680
defect
678687b4984307493cecb28448f9b946cab07ba9
0585cb9c60539eb3f23c1302e4e324159d97a807
add code action quick-fix to add `@override`
fixes #1627
diff --git a/packages/pyright-internal/src/languageService/codeActionProvider.ts b/packages/pyright-internal/src/languageService/codeActionProvider.ts index 2a389ce9d..0259cb904 100644 --- a/packages/pyright-internal/src/languageService/codeActionProvider.ts +++ b/packages/pyright-internal/src/languageService/codeActio...
4
4
3
[{"id": "G0", "claim": "The new add-`@override` code action cannot auto-import the `override` decorator, and DetachHead suggests using the same approach he used in the completion provider to get auto imports working.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
DetachHead__basedpyright__1693
DetachHead/basedpyright
1,693
defect
a4030c650bd3f027a4f15bedc74ab4789437bd2f
bc20576dcf0c8aaa0993fd3c20306f35c2813665
Add baselineMode extension setting for workspace for `auto | discard`
Add a baselineMode extension setting at the workspace level for `auto | discard`. Not including `lock` or other settings for now since the behavior it would have in the extension is less clear to me, and `--baselinemode` is referenced as experimental in the cli documentation. So it seems fine to be less aggressive with...
diff --git a/docs/benefits-over-pyright/baseline.md b/docs/benefits-over-pyright/baseline.md index ec01e6f1e..be1086dae 100644 --- a/docs/benefits-over-pyright/baseline.md +++ b/docs/benefits-over-pyright/baseline.md @@ -15,6 +15,10 @@ this file gets automatically updated as errors are removed over time in both the ...
2
2
0
[{"id": "G0", "claim": "The new docs section on disabling automatic baseline updates should mention the setting's CLI availability as well as the language server's, roughly along the lines of the suggested wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
DetachHead__basedpyright__1706
DetachHead/basedpyright
1,706
defect
c94cbcada99e9ca77463958379854aa42a5a88a8
ceb49fa7f59a39efba423a7a2397053415ff4647
No hover messages or jump-to-definition for literals
This PR addresses #1653 by removing hover messages and jump-to-definition for literals when they appear in an operator expression. The only exception are string literals that are used as keys for a `TypedDict`, whose behaviour remains unchanged. The tests have been adapted to reflect the new behaviour.
diff --git a/packages/pyright-internal/src/languageService/definitionProvider.ts b/packages/pyright-internal/src/languageService/definitionProvider.ts index 954c4cb2a..e72a30fed 100644 --- a/packages/pyright-internal/src/languageService/definitionProvider.ts +++ b/packages/pyright-internal/src/languageService/definitio...
2
2
1
[{"id": "G0", "claim": "The `isLiteralNode` docstring could be clarified to note that it does not cover all node types allowed in a `Literal` type (e.g., enum values).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Markers should be added inside t...
null
DetachHead__basedpyright__1714
DetachHead/basedpyright
1,714
defect
206627d635c13cda872dd665cc9dd67452707749
8b4786fc8ad598d5d9585ad0037e841b66ae3148
fix $schema being reported as unrecognized setting in config files
## Summary - Added `$schema` to the list of recognized config options - Prevents spurious error when using JSON schema validation in config files - Fixes #1651
diff --git a/packages/pyright-internal/src/common/configOptions.ts b/packages/pyright-internal/src/common/configOptions.ts index fb861ea0d..3e8242337 100644 --- a/packages/pyright-internal/src/common/configOptions.ts +++ b/packages/pyright-internal/src/common/configOptions.ts @@ -1582,6 +1582,7 @@ export class ConfigOp...
2
2
0
[{"id": "G0", "claim": "The comment above the unused-config list should be split up so that each entry (extends, executionEnvironments, $schema) has a clear explanation next to it, per the attached suggestion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
DetachHead__basedpyright__1721
DetachHead/basedpyright
1,721
defect
ba43b2d33259b4b576e2929a700b052f31d55334
c89fa4312db5bb8938c471b941af032c1e985da9
add more quick fixes for specific error types
- `reportUnnecessaryCast`: remove unnecessary `cast` call - `reportUnusedCallResult`: assign to `_` - `reportSelfClsDefault`: remove default parameter fixes #687
diff --git a/packages/pyright-internal/src/languageService/codeActionProvider.ts b/packages/pyright-internal/src/languageService/codeActionProvider.ts index 0870b7228..25ed70773 100644 --- a/packages/pyright-internal/src/languageService/codeActionProvider.ts +++ b/packages/pyright-internal/src/languageService/codeActio...
5
5
2
[{"id": "G0", "claim": "The new reportUnnecessaryCast code action detects `cast` calls by comparing the callee's textual name against 'cast'/'typing', which is inconsistent with how reportUnnecessaryCast itself detects cast calls and won't work when the cast function isn't literally called `cast` (e.g. an alias like `f...
null
DetachHead__basedpyright__1724
DetachHead/basedpyright
1,724
defect
ba43b2d33259b4b576e2929a700b052f31d55334
4dfea00c1ca2143b251e38e13ff311963fbf4b73
fix: don't comment out return types in stub generation
## Summary Removes the logic that was adding inferred return types as comments when generating type stubs. This was unnecessarily creating less complete stubs by commenting out potentially useful type information. ## Changes - Removed the code block in `typeStubWriter.ts` (lines 293-304) that would: 1. Check if a ...
diff --git a/packages/pyright-internal/src/analyzer/typeStubWriter.ts b/packages/pyright-internal/src/analyzer/typeStubWriter.ts index 8387eb015..7521d9485 100644 --- a/packages/pyright-internal/src/analyzer/typeStubWriter.ts +++ b/packages/pyright-internal/src/analyzer/typeStubWriter.ts @@ -290,19 +290,6 @@ export cla...
2
2
2
[{"id": "G0", "claim": "The PR should keep the inferred-return-type logic it deleted in typeStubWriter.ts, only removing the part that emitted it as a comment.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The fourslash tests need to be updated now...
null
DetachHead__basedpyright__1726
DetachHead/basedpyright
1,726
defect
6b1d48e6ac6a9fb9361371b933a4eeca10aa3bc0
c6320d00a7343c05e04e032ea12f0b7262f54e9a
Allow `TYPE_CHECKING` guards in match statements
- Closes https://github.com/DetachHead/basedpyright/issues/1715
diff --git a/packages/pyright-internal/src/analyzer/binder.ts b/packages/pyright-internal/src/analyzer/binder.ts index 3fe4d8923..b29bfa3d1 100644 --- a/packages/pyright-internal/src/analyzer/binder.ts +++ b/packages/pyright-internal/src/analyzer/binder.ts @@ -2389,6 +2389,31 @@ export class Binder extends ParseTreeWal...
2
2
1
[{"id": "G0", "claim": "The PR's new match-statement guard handling in binder.ts potentially duplicates the existing if-statement binding code (binder.ts L1377-L1423), and the author offers to rework it if preferred.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
DetachHead__basedpyright__1740
DetachHead/basedpyright
1,740
defect
d9e88de73a9682663c40b668db6bc126edf24785
03d45f55469e1d613596c7ffa16ccba82b61300b
Improved semantic tokens for keyword arguments
This PR adds handling for the left-hand side of keyword arguments where there are no declarations for the parameter. Previously, there were no semantic tokens if the type of such a parameter was `Any` and the `parameter` modifier was missing for all such parameters. This is not all that noticeable in VS Code, which h...
diff --git a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts index 6a7ce91d6..a5e1cf8ab 100644 --- a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts +++ b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts @@ -226...
7
7
1
[{"id": "G0", "claim": "The pull request should add a comment (in the sample or the test) explaining what exactly the newly added test code is testing, since viewing the sample without the change shows nothing wrong.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
DetachHead__basedpyright__1741
DetachHead/basedpyright
1,741
defect
d9e88de73a9682663c40b668db6bc126edf24785
264b7af5c5c07983dbc0853a73f15aeff363309e
Hover messages and jump-to-definition for call expressions
Does what it says on the tin: Hover messages and jump-to-definitions are provided for call expressions, provided that basedpyright is able to determine the overload(s) which are called. It’s quite a simple implementation based on the improvements made for operator hover messages/jump-to-definition. There was alread...
diff --git a/packages/pyright-internal/src/languageService/definitionProvider.ts b/packages/pyright-internal/src/languageService/definitionProvider.ts index e72a30fed..099794e9b 100644 --- a/packages/pyright-internal/src/languageService/definitionProvider.ts +++ b/packages/pyright-internal/src/languageService/definitio...
2
2
1
[{"id": "G0", "claim": "Add a marker to the call-expression tests so they validate that the jump-to-definition range covers only the parentheses rather than the whole call expression.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move the duplicated he...
null
DetachHead__basedpyright__1748
DetachHead/basedpyright
1,748
defect
264b2472bf3c09522851bf7c7fa7d1c88bea044f
7e96fd7a7cd61c86972eac0e44ae788df2cfd459
flag abstract base classes with no abstract methods
- resolves #629 - depends on https://github.com/python/typeshed/pull/15488
diff --git a/packages/pyright-internal/src/analyzer/typeEvaluator.ts b/packages/pyright-internal/src/analyzer/typeEvaluator.ts index 09e782fe9..0dc39704d 100644 --- a/packages/pyright-internal/src/analyzer/typeEvaluator.ts +++ b/packages/pyright-internal/src/analyzer/typeEvaluator.ts @@ -10786,9 +10786,18 @@ export fun...
8
8
1
[{"id": "G0", "claim": "The new test's use of `# pyright: ignore` comments is inconsistent with how the other tests work and could use a comment explaining why there are no expected errors.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Flagging instant...
null
DetachHead__basedpyright__229
DetachHead/basedpyright
229
defect
e9e125616a4e46368944012636f14fa4e27c2bcf
af93f2eabbf71a72aeebd3a0a1a1aa8213699c16
Support `parameter` semantic token type
Fixes #216
diff --git a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts index d9f7baf6b5..b7f9c2f12b 100644 --- a/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts +++ b/packages/pyright-internal/src/analyzer/semanticTokensWalker.ts @@ -8...
5
3
1
[{"id": "G0", "claim": "The parameter-handling code added inside the `TypeCategory.Unknown` switch case leaks the `declarations` const into the other cases (eslint no-case-declarations) and duplicates the block below, so the case should instead be turned into a `break` handled by that block.", "category": "maintainabil...
null
DetachHead__basedpyright__34
DetachHead/basedpyright
34
defect
fe56f72a5689dea04e3a2677330dfa6a61bd6909
fa7bc4416700cfe81ef7c6fbaa466c56a14c793a
add `reportUnreachable` option
fixes #11 partially addresses #7. need to figure out why some unreachable code gets checked now but not others
diff --git a/.vscode/settings.json b/.vscode/settings.json index 0f14cc4d93..d74b5bfa81 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -16,6 +16,7 @@ "editor.formatOnSave": true }, "editor.defaultFormatter": "esbenp.prettier-vscode", + "typescript.enablePromptUseWorkspaceTsdk": ...
2
1
1
[{"id": "G0", "claim": "The docs' severity table should show reportUnreachable as enabled in strict mode, because it is enabled in strict.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It might be nice for unreachable2.py to additionally contain ...
null
DeterminateSystems__nix-installer__480
DeterminateSystems/nix-installer
480
defect
5d0e28fcfbd70502e43c15a633aa6b9538691086
cf8b4c1a9f7e13007f656fc03c5e72ca92e18523
Add time machine exclusions for Mac
##### Description Fixes https://github.com/DeterminateSystems/nix-installer/issues/479 most likely? ![image](https://github.com/DeterminateSystems/nix-installer/assets/130903/eea76590-958a-40bf-8327-31627cf77e6f) ##### Checklist - [ ] Formatted with `cargo fmt` - [ ] Built with `nix build` - [ ] Ran fla...
diff --git a/src/action/macos/create_nix_volume.rs b/src/action/macos/create_nix_volume.rs index 9c4fec5b1..f0327cc91 100644 --- a/src/action/macos/create_nix_volume.rs +++ b/src/action/macos/create_nix_volume.rs @@ -13,7 +13,10 @@ use std::{ use tokio::process::Command; use tracing::{span, Span}; -use super::{crea...
1
1
0
[{"id": "G0", "claim": "Add a note explaining that excluding /nix entirely did not work on their (managed) Macs, so future code-combers will know why the two subdirectories were excluded instead of their parent.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
DeterminateSystems__nix-installer__76
DeterminateSystems/nix-installer
76
defect
32dcfe73e76a2388a4d866051c9678883a29d3b5
f9ce67c1c0535efe21734c90cbe06f7f14bf9212
fish support
Based off #65 Closes #73
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e48f0487..f89a71916 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,31 +65,48 @@ jobs: runs-on: ubuntu-22.04 needs: build-x86_64-linux steps: + - run: sudo apt install fish zsh - uses: actions/...
7
3
0
[{"id": "G0", "claim": "The step in the mac CI jobs that runs `echo $GITHUB_PATH` and `cat $GITHUB_PATH` is leftover debugging and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mac job's `Test fish` step should not stay c...
null
DevExpress__testcafe__3588
DevExpress/testcafe
3,588
defect
d41c8481bb367c18ae06ea18041a2742acc02021
fde00bfd66fe316d474fc6d74faafedf42512daa
Improve page load error (closes #3492)
Closes #3492.
diff --git a/src/errors/test-run/index.js b/src/errors/test-run/index.js index 19f15c18ec2..e0143409021 100644 --- a/src/errors/test-run/index.js +++ b/src/errors/test-run/index.js @@ -89,9 +89,10 @@ export class CannotObtainInfoForElementSpecifiedBySelectorError extends Selector // Page errors //--------------------...
1
1
0
[{"id": "G0", "claim": "The rewritten uncaughtErrorOnPage template in src/errors/test-run/templates.js dropped the \" at:\" from the end of the sentence \"If this error does not occur, please write a new issue at:\" that introduces the issue URL.", "category": "documentation", "verdict": "supported", "priority": "P2", ...
null
DevExpress__testcafe__4043
DevExpress/testcafe
4,043
defect
aed489653d30f220843c5fb5889525b7c767b58a
0360ff5c43a7fa15ccf6c1151e2c5126a0c3578e
Enable downloading files to the default directory for Chrome Headless (closes #3127)
Closes #3127.
diff --git a/@types/chrome-remote-interface/index.d.ts b/@types/chrome-remote-interface/index.d.ts new file mode 100644 index 00000000000..cdd49045f96 --- /dev/null +++ b/@types/chrome-remote-interface/index.d.ts @@ -0,0 +1,33 @@ +declare module 'chrome-remote-interface' { + namespace chromeRemoteInterface { + ...
3
2
0
[{"id": "G0", "claim": "In getActiveTab the PR should use string.includes(browserId) instead of t.url.indexOf(browserId) > -1 because it is more readable and shorter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the {...
null
DevExpress__testcafe__5809
DevExpress/testcafe
5,809
defect
11011546017c20865ab7ae3e756514a841384da9
4402ca32965244cde854a5b2e450d5c83f3f543d
[docs] Add a note that cdpPort is required when you override the user dir
fixes #5627
diff --git a/docs/articles/documentation/guides/advanced-guides/screenshots-and-videos.md b/docs/articles/documentation/guides/advanced-guides/screenshots-and-videos.md index fe74e67200a..7ab865633df 100644 --- a/docs/articles/documentation/guides/advanced-guides/screenshots-and-videos.md +++ b/docs/articles/documentat...
2
2
0
[{"id": "G0", "claim": "The broken-link checker fails on Twitter links (HTTP 400), so the website doc tests fail, and a different user agent may need to be used for the checker.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The sentence 'Set the cdpP...
null
DevExpress__testcafe__6078
DevExpress/testcafe
6,078
defect
67db7725409b778f61361f3b1068e6762a9dbaaf
c9b7a07082c886991526c6d57532b0c63624096e
Don't create thumbnails by default
<!-- Thank you for your contribution. Before making a PR, please read our contributing guidelines at https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution We recommend creating a *draft* PR, so that you can mark it as 'ready for review' when you are done. --> ## Purpose Make ...
diff --git a/src/configuration/screenshot-option-names.ts b/src/configuration/screenshot-option-names.ts index 325d42736e5..935211379d2 100644 --- a/src/configuration/screenshot-option-names.ts +++ b/src/configuration/screenshot-option-names.ts @@ -2,7 +2,8 @@ enum SCREENSHOT_OPTION_NAMES { path = 'path', tak...
5
4
2
[{"id": "G0", "claim": "Disabling thumbnails by default can be considered a breaking change that would break users' scripts counting files in the screenshots directory, so the `thumbnails` option should default to `true`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
DevExpress__testcafe__6191
DevExpress/testcafe
6,191
defect
ff1af835e8fa5070d660e3ab62d9724f9cfce828
59086e3b235e0cab754487fc5e9620814bcdc418
feat: mask values typed into input[type=password] in a reporter
## Purpose Values typed into input[type=password] should be replaced by a placeholder before sending action logs with these values to a reporter. Also the `pressKey` and the `typeText` actions have the `confidential` flag. If it set to 'true', then any typed text & pressed keys would be replaced by a placeholder in ac...
diff --git a/src/client/driver/driver.js b/src/client/driver/driver.js index 4d637c082ad..5da2fbb044f 100644 --- a/src/client/driver/driver.js +++ b/src/client/driver/driver.js @@ -80,6 +80,8 @@ import DriverStatus from './status'; import generateId from './generate-id'; import ChildIframeDriverLink from './driver-li...
6
5
0
[{"id": "G0", "claim": "The replicator instance should be created once in the driver's constructor instead of inside _getActiveElement, because _getActiveElement can be called many times.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "_getActiveElem...
null
DevExpress__testcafe__6477
DevExpress/testcafe
6,477
defect
2156f2622b2e56fcef4308140412d98db2d4f9ce
1f809d2d73523e97ddc058555dd19cbd8046a66c
release: 1.15.3-rc.1
* deps: update testcafe-hammerhead@24.5.1 * fix: allow disabling http2 with --disable-http2 * fix: allow objects as an argument of setBody (closes #5180)
diff --git a/package.json b/package.json index 97e267a64d5..3271ee60228 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "testcafe", "description": "Automated browser testing for the modern web development stack.", "license": "MIT", - "version": "1.15.2", + "version": "1.15.3-rc.1", "a...
1
1
1
[{"id": "G0", "claim": "The ResponseMock.setBody type signature should be widened to `setBody(value: string|object|Buffer|null): void` instead of `setBody(value: string|object): void`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
DevExpress__testcafe__6800
DevExpress/testcafe
6,800
defect
c5b2f660dedf3eec8d62e0bed91fd51661d49a4d
290f1b2389007143fef25af51b728a7343cf35cd
fix: avoid browser hanging on close window while video is recording (closes #6037)
Closes #6037
diff --git a/src/browser/connection/gateway.ts b/src/browser/connection/gateway.ts index 4091464f899..a95305b2853 100644 --- a/src/browser/connection/gateway.ts +++ b/src/browser/connection/gateway.ts @@ -64,6 +64,8 @@ export default class BrowserConnectionGateway { this._dispatch('/browser/init-script/{id}', ...
3
3
2
[{"id": "G0", "claim": "Errors of `connection.provider.closeBrowserChildWindow` should be caught (error-handled) in the gateway's `_onCloseWindowRequest`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A more stable way than the fixed `delay(100)` s...
null
DevExpress__testcafe__7289
DevExpress/testcafe
7,289
defect
53a06132fdaedaa8c6ebfc1bce521794ec1bba55
f05a748a276ae896316fa8583f255f9ac2b3824a
feat: added sending warnings from client
<!-- Thank you for your contribution. Before making a PR, please read our contributing guidelines at https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution We recommend creating a *draft* PR, so that you can mark it as 'ready for review' when you are done. --> [closes #2930] ...
diff --git a/src/client/automation/types.d.ts b/src/client/automation/types.d.ts index 2434e033850..dbc69fb51de 100644 --- a/src/client/automation/types.d.ts +++ b/src/client/automation/types.d.ts @@ -12,6 +12,7 @@ export interface AutomationHandler { export interface Automation extends EventEmitter { run(strictE...
3
3
1
[{"id": "G0", "claim": "The new stringifyElement function needs more careful testing against complex pages, and client tests should be added for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G3", "claim": "The elementOverlapped warning text should be replaced wit...
null
DevExpress__testcafe__7491
DevExpress/testcafe
7,491
defect
5e0c96afdfdd1470ba9fa64324ba7628501b0c8a
e7ade436d92151dcec19a258f3884044e3b990a6
fix: fixed regression with using tests and fixture methods
<!-- Thank you for your contribution. Before making a PR, please read our contributing guidelines at https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution We recommend creating a *draft* PR, so that you can mark it as 'ready for review' when you are done. --> [closes #7482] ...
diff --git a/src/api/structure/fixture.ts b/src/api/structure/fixture.ts index ad95b16bcd5..e8c2bce8319 100644 --- a/src/api/structure/fixture.ts +++ b/src/api/structure/fixture.ts @@ -28,7 +28,7 @@ export default class Fixture extends TestingUnit { public globalBeforeFn: Function | null; public globalAfterFn...
2
2
0
[{"id": "G0", "claim": "The regression test name should not escape the apostrophe inside single quotes; surround the string in double quotes so the test can be found with Ctrl+C/Ctrl+F in an IDE.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
DevExpress__testcafe__7614
DevExpress/testcafe
7,614
defect
4ef0e17c4706c3229b27db3b88b81f55dfd30eaa
36d08c68ff97b4c62dee5bac3e2ed56e6cafa045
Add possibility to load config file from cjs file
[closes #6911] ## Purpose The newest NodeJS version requires indicating modules loading framework to use (CommonJS or ESM) by using extension file. `.js` extension is now for using ESM and `.cjs` for CommonJS. Currently, from newest NodeJS, it is not possible to use CommonJS framework for TestCafe global configura...
diff --git a/src/configuration/configuration-base.ts b/src/configuration/configuration-base.ts index 47a75888505..06bc80438ee 100644 --- a/src/configuration/configuration-base.ts +++ b/src/configuration/configuration-base.ts @@ -17,7 +17,7 @@ import renderTemplate from '../utils/render-template'; import WARNING_MESSAG...
2
2
0
[{"id": "G0", "claim": "Replace the extension constants in src/configuration/formats.ts with an exported enum and use that enum instead of the constants.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The excessive formatting changes in the current versi...
null