View | Details | Raw Unified | Return to bug 40541
Collapse All | Expand All

(-)a/Koha/Devel/Files.pm (+52 lines)
Lines 53-58 my $exceptions = { Link Here
53
                misc/cronjobs/build_browser_and_cloud.pl
53
                misc/cronjobs/build_browser_and_cloud.pl
54
            )
54
            )
55
        ],
55
        ],
56
        all => [],
56
    },
57
    },
57
    js => {
58
    js => {
58
        tidy => [
59
        tidy => [
Lines 71-76 my $exceptions = { Link Here
71
                koha-tmpl/opac-tmpl/bootstrap/js/Gettext.js
72
                koha-tmpl/opac-tmpl/bootstrap/js/Gettext.js
72
            )
73
            )
73
        ],
74
        ],
75
        all => [
76
            qw(
77
                koha-tmpl/intranet-tmpl/lib
78
                koha-tmpl/opac-tmpl/lib
79
            )
80
        ],
74
    },
81
    },
75
    tt => {
82
    tt => {
76
        tidy => [
83
        tidy => [
Lines 81-87 my $exceptions = { Link Here
81
            )
88
            )
82
        ],
89
        ],
83
        codespell => [],
90
        codespell => [],
91
        all       => [],
92
    },
93
    yml => {
94
        all => [],
95
    },
96
    css => {
97
        all => [
98
            qw(
99
                koha-tmpl/intranet-tmpl/lib
100
                koha-tmpl/opac-tmpl/lib
101
            )
102
        ],
84
    },
103
    },
104
85
};
105
};
86
106
87
=head1 METHODS
107
=head1 METHODS
Lines 167-172 sub ls_tt_files { Link Here
167
    return @files;
187
    return @files;
168
}
188
}
169
189
190
=head2 ls_yml_files
191
192
    my @yml_files = $file_manager->ls_yml_files();
193
194
Lists YAML files (with extensions .yml, .yaml) in the repository, excluding those specified in the exceptions.
195
196
=cut
197
198
sub ls_yml_files {
199
    my ($self) = @_;
200
    my $cmd    = sprintf q{git ls-files '*.yml' '*.yaml' %s}, $self->build_git_exclude('yml');
201
    my @files  = qx{$cmd};
202
    chomp for @files;
203
    return @files;
204
}
205
206
=head2 ls_css_files
207
208
    my @css_files = $file_manager->ls_css_files();
209
210
Lists CSS files (with extensions .css) in the repository, excluding those specified in the exceptions.
211
212
=cut
213
214
sub ls_css_files {
215
    my ($self) = @_;
216
    my $cmd    = sprintf q{git ls-files '*.css' %s}, $self->build_git_exclude('css');
217
    my @files  = qx{$cmd};
218
    chomp for @files;
219
    return @files;
220
}
221
170
=head2 get_filetype
222
=head2 get_filetype
171
223
172
    my $filetype = $file_manager->get_filetype($filename);
224
    my $filetype = $file_manager->get_filetype($filename);
(-)a/api/v1/swagger/definitions/basket.yaml (-1 / +1 lines)
Lines 84-87 properties: Link Here
84
      - null
84
      - null
85
    description: "When items should be created for orders in this basket (Options:
85
    description: "When items should be created for orders in this basket (Options:
86
      'ordering', 'receiving', 'cataloguing'. Null means system wide config)"
86
      'ordering', 'receiving', 'cataloguing'. Null means system wide config)"
87
additionalProperties: false
87
additionalProperties: false
(-)a/api/v1/swagger/definitions/circulation_rules.yaml (-1 / +1 lines)
Lines 16-19 properties: Link Here
16
    description: Context of the ruleset
16
    description: Context of the ruleset
17
additionalProperties: true
17
additionalProperties: true
18
required:
18
required:
19
  - context
19
  - context
(-)a/api/v1/swagger/definitions/edifact_file.yaml (-1 / +1 lines)
Lines 57-60 properties: Link Here
57
    description: EDIFACT file name
57
    description: EDIFACT file name
58
  errors:
58
  errors:
59
    type: array
59
    type: array
60
additionalProperties: false
60
additionalProperties: false
(-)a/api/v1/swagger/definitions/erm_counter_file.yaml (-1 / +1 lines)
Lines 33-36 additionalProperties: false Link Here
33
required:
33
required:
34
  - usage_data_provider_id
34
  - usage_data_provider_id
35
  - filename
35
  - filename
36
  - file_content
36
  - file_content
(-)a/api/v1/swagger/definitions/erm_counter_log.yaml (-1 / +1 lines)
Lines 44-47 additionalProperties: false Link Here
44
required:
44
required:
45
  - filename
45
  - filename
46
  - patron_id
46
  - patron_id
47
  - counter_files_id
47
  - counter_files_id
(-)a/api/v1/swagger/definitions/erm_custom_report.yaml (-1 / +1 lines)
Lines 61-64 properties: Link Here
61
    type: array
61
    type: array
62
    description: usage yus
62
    description: usage yus
63
    items:
63
    items:
64
      $ref: erm_usage_yus.yaml
64
      $ref: erm_usage_yus.yaml
(-)a/api/v1/swagger/definitions/erm_default_usage_report.yaml (-1 / +1 lines)
Lines 15-18 properties: Link Here
15
additionalProperties: false
15
additionalProperties: false
16
required:
16
required:
17
  - report_name
17
  - report_name
18
  - report_url_params
18
  - report_url_params
(-)a/api/v1/swagger/definitions/erm_license.yaml (-1 / +1 lines)
Lines 67-70 required: Link Here
67
  - license_id
67
  - license_id
68
  - name
68
  - name
69
  - status
69
  - status
70
  - type
70
  - type
(-)a/api/v1/swagger/definitions/erm_usage_mus.yaml (-1 / +1 lines)
Lines 69-72 properties: Link Here
69
additionalProperties: false
69
additionalProperties: false
70
required:
70
required:
71
  - title_id
71
  - title_id
72
  - usage_data_provider_id
72
  - usage_data_provider_id
(-)a/api/v1/swagger/definitions/erm_usage_yus.yaml (-1 / +1 lines)
Lines 65-68 properties: Link Here
65
additionalProperties: false
65
additionalProperties: false
66
required:
66
required:
67
  - title_id
67
  - title_id
68
  - usage_data_provider_id
68
  - usage_data_provider_id
(-)a/api/v1/swagger/definitions/extended_attribute_value.yaml (-1 / +1 lines)
Lines 15-18 properties: Link Here
15
    description: value of the additional field
15
    description: value of the additional field
16
    type: string
16
    type: string
17
17
18
additionalProperties: false
18
additionalProperties: false
(-)a/api/v1/swagger/paths/acquisitions_baskets.yaml (-1 / +1 lines)
Lines 107-110 Link Here
107
          $ref: "../swagger.yaml#/definitions/error"
107
          $ref: "../swagger.yaml#/definitions/error"
108
    x-koha-authorization:
108
    x-koha-authorization:
109
      permissions:
109
      permissions:
110
        acquisition: order_manage
110
        acquisition: order_manage
(-)a/api/v1/swagger/paths/acquisitions_edifiles.yaml (-1 / +1 lines)
Lines 68-71 Link Here
68
          $ref: "../swagger.yaml#/definitions/error"
68
          $ref: "../swagger.yaml#/definitions/error"
69
    x-koha-authorization:
69
    x-koha-authorization:
70
      permissions:
70
      permissions:
71
        acquisition: edi_manage
71
        acquisition: edi_manage
(-)a/api/v1/swagger/paths/article_requests.yaml (-1 / +1 lines)
Lines 112-115 Link Here
112
      "503":
112
      "503":
113
        description: Under maintenance
113
        description: Under maintenance
114
        schema:
114
        schema:
115
          $ref: "../swagger.yaml#/definitions/error"
115
          $ref: "../swagger.yaml#/definitions/error"
(-)a/api/v1/swagger/paths/biblios.yaml (-1 / +1 lines)
Lines 919-922 Link Here
919
      "503":
919
      "503":
920
        description: Under maintenance
920
        description: Under maintenance
921
        schema:
921
        schema:
922
          $ref: "../swagger.yaml#/definitions/error"
922
          $ref: "../swagger.yaml#/definitions/error"
(-)a/api/v1/swagger/paths/checkouts.yaml (-1 / +1 lines)
Lines 454-457 Link Here
454
      "503":
454
      "503":
455
        description: Under maintenance
455
        description: Under maintenance
456
        schema:
456
        schema:
457
          $ref: "../swagger.yaml#/definitions/error"
457
          $ref: "../swagger.yaml#/definitions/error"
(-)a/api/v1/swagger/paths/circulation_rules.yaml (-1 / +1 lines)
Lines 158-161 Link Here
158
          $ref: "../swagger.yaml#/definitions/error"
158
          $ref: "../swagger.yaml#/definitions/error"
159
    x-koha-authorization:
159
    x-koha-authorization:
160
      permissions:
160
      permissions:
161
        - circulate: circulate_remaining_permissions
161
        - circulate: circulate_remaining_permissions
(-)a/installer/data/mysql/en/mandatory/account_credit_types.yml (-1 / +1 lines)
Lines 78-81 tables: Link Here
78
        - code: "PROCESSING_FOUND"
78
        - code: "PROCESSING_FOUND"
79
          description: "Lost item processing fee refund"
79
          description: "Lost item processing fee refund"
80
          can_be_added_manually: "0"
80
          can_be_added_manually: "0"
81
          is_system: "1"
81
          is_system: "1"
(-)a/installer/data/mysql/en/mandatory/account_debit_types.yml (-1 / +1 lines)
Lines 135-138 tables: Link Here
135
          can_be_invoiced: "0"
135
          can_be_invoiced: "0"
136
          can_be_sold: "0"
136
          can_be_sold: "0"
137
          default_amount: ~
137
          default_amount: ~
138
          is_system: "1"
138
          is_system: "1"
(-)a/installer/data/mysql/en/mandatory/illbatch_statuses.yml (-1 / +1 lines)
Lines 39-42 tables: Link Here
39
39
40
        - code: "UNKNOWN"
40
        - code: "UNKNOWN"
41
          name: "Unknown"
41
          name: "Unknown"
42
          is_system: "1"
42
          is_system: "1"
(-)a/installer/data/mysql/en/marcflavour/marc21/optional/marc21_sample_fastadd_framework.yml (-1 / +1 lines)
Lines 97-100 sql_statements: Link Here
97
  - "UPDATE marc_subfield_structure SET hidden ='-5' WHERE tagfield = '952' AND tagsubfield = 'j' AND frameworkcode = 'FA';"
97
  - "UPDATE marc_subfield_structure SET hidden ='-5' WHERE tagfield = '952' AND tagsubfield = 'j' AND frameworkcode = 'FA';"
98
  - "UPDATE marc_subfield_structure SET hidden ='-6' WHERE tagfield = '952' AND tagsubfield = 't' AND frameworkcode = 'FA';"
98
  - "UPDATE marc_subfield_structure SET hidden ='-6' WHERE tagfield = '952' AND tagsubfield = 't' AND frameworkcode = 'FA';"
99
  - "UPDATE marc_subfield_structure SET hidden ='-6' WHERE tagfield = '952' AND tagsubfield = 'u' AND frameworkcode = 'FA';"
99
  - "UPDATE marc_subfield_structure SET hidden ='-6' WHERE tagfield = '952' AND tagsubfield = 'u' AND frameworkcode = 'FA';"
100
  - "UPDATE marc_subfield_structure SET hidden ='-6' WHERE tagfield = '952' AND tagsubfield = 'w' AND frameworkcode = 'FA';"
100
  - "UPDATE marc_subfield_structure SET hidden ='-6' WHERE tagfield = '952' AND tagsubfield = 'w' AND frameworkcode = 'FA';"
(-)a/installer/data/mysql/en/optional/marc21_relatorterms.yml (-1 / +1 lines)
Lines 1220-1223 tables: Link Here
1220
1220
1221
        - category: "RELTERMS"
1221
        - category: "RELTERMS"
1222
          authorised_value: "wts"
1222
          authorised_value: "wts"
1223
          lib: "Writer of television story"
1223
          lib: "Writer of television story"
(-)a/koha-tmpl/intranet-tmpl/prog/css/hierarchy.css (-1 / +1 lines)
Lines 102-105 Link Here
102
.parents{
102
.parents{
103
  display:inline;
103
  display:inline;
104
  cursor:crosshair;
104
  cursor:crosshair;
105
}
105
}
(-)a/koha-tmpl/intranet-tmpl/prog/css/print.css (-1 / +1 lines)
Lines 381-384 p#upload_image { Link Here
381
381
382
#catalog_detail .col-sm-push-2 {
382
#catalog_detail .col-sm-push-2 {
383
    left: 0;
383
    left: 0;
384
}
384
}
(-)a/koha-tmpl/intranet-tmpl/prog/css/spinelabel.css (-1 / +1 lines)
Lines 32-35 body { Link Here
32
    width: 100%;
32
    width: 100%;
33
    border-top: 1px solid #b9d8d9;
33
    border-top: 1px solid #b9d8d9;
34
    background-color: #e6f0f2;
34
    background-color: #e6f0f2;
35
}
35
}
(-)a/koha-tmpl/intranet-tmpl/prog/css/tinymce.css (-1 / +1 lines)
Lines 1-4 Link Here
1
body, td, pre {
1
body, td, pre {
2
    font-family: Arial,Helvetica,sans-serif;
2
    font-family: Arial,Helvetica,sans-serif;
3
    font-size: 13px;
3
    font-size: 13px;
4
}
4
}
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/hierarchy.css (-1 / +1 lines)
Lines 102-105 Link Here
102
.parents{
102
.parents{
103
  display:inline;
103
  display:inline;
104
  cursor:crosshair;
104
  cursor:crosshair;
105
}
105
}
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/oai.css (-1 / +1 lines)
Lines 19-22 pre { Link Here
19
.xmlverb-text             { color: #000000; font-weight: bold }
19
.xmlverb-text             { color: #000000; font-weight: bold }
20
.xmlverb-comment          { color: #006600; font-style: italic }
20
.xmlverb-comment          { color: #006600; font-style: italic }
21
.xmlverb-pi-name          { color: #006600; font-style: italic }
21
.xmlverb-pi-name          { color: #006600; font-style: italic }
22
.xmlverb-pi-content       { color: #006666; font-style: italic }
22
.xmlverb-pi-content       { color: #006666; font-style: italic }
(-)a/xt/find-missing-new-lines-at-the-end-of-file.t (-1 / +31 lines)
Line 0 Link Here
0
- 
1
#!/usr/bin/perl
2
use Modern::Perl;
3
use Test::PerlTidy;
4
use Test::More;
5
use Test::NoWarnings;
6
7
use Koha::Devel::Files;
8
9
my $dev_files = Koha::Devel::Files->new( { context => 'all' } );
10
my @files;
11
push @files, $dev_files->ls_perl_files;
12
push @files, $dev_files->ls_tt_files;
13
push @files, $dev_files->ls_js_files;
14
push @files, $dev_files->ls_yml_files;
15
push @files, $dev_files->ls_css_files;
16
17
plan tests => scalar @files + 1;
18
19
for my $file (@files) {
20
    if ( -z $file ) {
21
22
        # File is empty
23
        ok(1);
24
        next;
25
    }
26
    open my $fh, '<', $file or die "Can't open file ($file): $!";
27
    seek $fh, -1, 2 or die "Can't seek ($file): $!";
28
    read $fh, my $char, 1;
29
    close $fh;
30
    is( $char, "\n", "$file should end with a new line" );
31
}

Return to bug 40541