Skip to content

Commit

Permalink
[MISC] automatic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
seqan-actions committed May 15, 2024
1 parent 2a24057 commit 84aaa2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
9 changes: 5 additions & 4 deletions include/seqan3/alignment/pairwise/alignment_configurator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,18 @@ struct alignment_configurator
{
auto method_global_cfg = get<seqan3::align_cfg::method_global>(config_with_result_type);
// and ...
if (gap_cost.open_score == 0 && gap_cost.extension_score == -1 && // gap open score is not set and extension is -1,
if (gap_cost.open_score == 0 && gap_cost.extension_score == -1
&& // gap open score is not set and extension is -1,
!(method_global_cfg.free_end_gaps_sequence2_leading
|| method_global_cfg.free_end_gaps_sequence2_trailing)
|| method_global_cfg.free_end_gaps_sequence2_trailing)
&& // none of the free end gaps are set for second seq,
(method_global_cfg.free_end_gaps_sequence1_leading
== method_global_cfg
== method_global_cfg
.free_end_gaps_sequence1_trailing)) // free ends for leading and trailing gaps are equal in first seq.
{

return std::pair{configure_edit_distance<function_wrapper_t>(config_with_result_type),
config_with_result_type};
config_with_result_type};
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ namespace seqan3
class hamming_scoring_scheme
{
public:

//!\privatesection
//!\brief The alphabet type of the scoring scheme. This type is only used for the alignment configuration machinery.
using alphabet_type = char;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ TEST(hamming_scoring_scheme_test, default_constructor)
EXPECT_EQ(scheme.score('A', 'T'), -1);
}


TEST(hamming_scoring_scheme_test, models_scoring_scheme)
{
EXPECT_TRUE((seqan3::scoring_scheme_for<seqan3::hamming_scoring_scheme, seqan3::dna4, seqan3::dna4>));
Expand Down

0 comments on commit 84aaa2b

Please sign in to comment.