@ -37,6 +37,7 @@
parse_dep / 6 ,
parse_dep / 6 ,
expand_deps_sources / 2 ,
expand_deps_sources / 2 ,
dep_to_app / 7 ,
dep_to_app / 7 ,
lint_app_info / 1 ,
format_error / 1 ] ) .
format_error / 1 ] ) .
- include ( " rebar.hrl " ) .
- include ( " rebar.hrl " ) .
@ -101,7 +102,6 @@ validate_application_info(AppInfo, AppDetail) ->
undefined - >
undefined - >
false ;
false ;
AppFile - >
AppFile - >
lint_detail ( AppDetail , AppFile ) ,
case proplists : get_value ( modules , AppDetail ) of
case proplists : get_value ( modules , AppDetail ) of
undefined - >
undefined - >
? PRV_ERROR ( { module_list , AppFile } ) ;
? PRV_ERROR ( { module_list , AppFile } ) ;
@ -110,6 +110,11 @@ validate_application_info(AppInfo, AppDetail) ->
end
end
end .
end .
lint_app_info ( AppInfo ) - >
AppDetails = rebar_app_info : app_details ( AppInfo ) ,
AppFile = rebar_app_info : app_file ( AppInfo ) ,
lint_detail ( AppDetails , AppFile ) .
- spec lint_detail ( list ( ) , file : filename_all ( ) ) - > ok .
- spec lint_detail ( list ( ) , file : filename_all ( ) ) - > ok .
lint_detail ( AppDetail , AppFile ) - >
lint_detail ( AppDetail , AppFile ) - >
lint_description ( AppDetail , AppFile ) ,
lint_description ( AppDetail , AppFile ) ,